transforms¶
Apply simple tranformations to the views
-
class
pdsspect.transforms.
TransformsController
(image_set, view)[source]¶ Bases:
object
Controller for
Transforms
Parameters: - image_set (
PDSSpectImageSet
) – pdsspect model - view (
Transforms
) – View to control
-
image_set
¶ PDSSpectImageSet
– pdsspect model
-
view
¶ Transforms
– View to control
-
set_flip_x
(flip_x)[source]¶ Set
flip_x
Parameters: flip_x ( bool
) – True to flip x axis, otherwise, False
- image_set (
-
class
pdsspect.transforms.
Transforms
(image_set, view_canvas)[source]¶ Bases:
PyQt5.QtWidgets.QDialog
,pdsspect.pdsspect_image_set.PDSSpectImageSetViewBase
Window to apply simple transformations
Parameters: - image_set (
PDSSpectImageSet
) – pdsspect model - view_canvas (
pds_image_view_canvas.PDSImageViewCanvas
) – The view canvas to apply transformations to
-
image_set
¶ PDSSpectImageSet
– pdsspect model
-
view_canvas
¶ pds_image_view_canvas.PDSImageViewCanvas
– The view canvas to apply transformations to
-
controller
¶ TransformsController
– The view’s controller
-
flip_x_label
¶ QtWidgets.QLabel
– Label forflip_x_box
-
flip_x_box
¶ QtWidgets.QCheckBox
– Flip x axis when checked
-
flip_y_label
¶ QtWidgets.QLabel
– Label forflip_y_box
-
flip_y_box
¶ QtWidgets.QCheckBox
– Flip y axis when checked
-
swap_xy_label
¶ QtWidgets.QLabel
– Label forswap_xy_box
-
swap_xy_box
¶ QtWidgets.QCheckBox
– Swap x and y axis when checked
-
layout
¶ QtWidgets.QGridLayout
– Layout for widget
-
flip_x_checked
(state)[source]¶ Flip x axis when checked
Parameters: state ( int
) – The state of the checkbox (this argument is ignored and the state is checked in a more explicit way)
- image_set (