pdsspect_view¶
Window to pan the main image and open other dialog windows
-
class
pdsspect.pdsspect_view.
PDSSpectViewController
(model, view)[source]¶ Bases:
object
Controller for the
PDSSpectView
Parameters: - image_set (
PDSSpectImageSet
) – pdsspect model - view (
PDSpectView
) – View to control
- image_set (
-
class
pdsspect.pdsspect_view.
PDSSpectView
(image_set)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
,pdsspect.pdsspect_image_set.PDSSpectImageSetViewBase
View to pan the main image
Parameters: image_set ( PDSSpectImageSet
) – pdsspect model-
image_set
¶ PDSSpectImageSet
– pdsspect model
-
controller
¶
-
main_layout
¶
-
zoom_layout
¶ QtWidgets.QHBoxLayout
– Layout forzoom_label
andzoom_text
-
zoom_label
¶ QtWidgets.QLabel
– Label thezoom_text
text box
-
zoom_text
¶ QtWidgets.QLineEdit
– Text box to enter the zoom factor. Zoom will change onreturn key
-
view_canvas
¶ PDSImageViewCanvas
– canvas to place the image on
-
pan
¶ ginga.canvas.types.basic.Box
– Pan that represents the pan. Data inside the pan is displayed inPanView
-
arrow_key_move_center
(view_canvas, keyname)[source]¶ Adjust center with arrow press by a single pixel
Parameters: - view_canvas (
view_canvas
) – The view canvas - keyname (
str
) – Name of the key
- view_canvas (
-
change_center
(view_canvas, button, data_x, data_y)[source]¶ Adjust center to mouse position. Arguments supplied by callback
Parameters: - view_canvas (
view_canvas
) – The view canvas - button (
qtpy.QtCore.QMouseButton
) – The mouse button pressed - data_x (
float
) – x coordinate of mouse - data_y (
float
) – y coordinate of the mouse
- view_canvas (
-
redraw
()[source]¶ Redraw the
view_canvas
-
set_image
()[source]¶ Set image on
view_canvas
-
zoom_with_scroll
(view_canvas, zoom_event)[source]¶ Change the zoom by 1 with the mouse wheel
Parameters: - view_canvas (
view_canvas
) – The view canvas - zoom_event (
ginga.Bindings.ScrollEvent
) – The zoom event
- view_canvas (
-
-
class
pdsspect.pdsspect_view.
PDSSpectViewWidget
(image_set)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
Widget to hold the the differen
PDSSpectView
Parameters: image_set ( PDSSpectImageSet
) – pdsspect model-
image_set
¶ PDSSpectImageSet
– pdsspect model
-
create_spect_view
(image_set)[source]¶ Create a
PDSSpectView
and add to the widgetParameters: image_set ( PDSSpectImageSet
) – pdsspect modelReturns: spect_view – PDSSpectView
added to the widgetReturn type: PDSSpectView
-