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

set_flip_x(flip_x)[source]

Set flip_x

Parameters:flip_x (bool) – True to flip x axis, otherwise, False
set_flip_y(flip_y)[source]

Set flip_y

Parameters:flip_y (bool) – True to flip y axis, otherwise, False
set_swap_xy(swap_xy)[source]

Set swap_xy

Parameters:swap_xy (bool) – True to swap x and y axis, otherwise, False
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

controller

TransformsController – The view’s controller

flip_x_label

QtWidgets.QLabel – Label for flip_x_box

flip_x_box

QtWidgets.QCheckBox – Flip x axis when checked

flip_y_label

QtWidgets.QLabel – Label for flip_y_box

flip_y_box

QtWidgets.QCheckBox – Flip y axis when checked

swap_xy_label

QtWidgets.QLabel – Label for swap_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)
flip_y_checked(state)[source]

Flip y 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)
swap_xy_checked(state)[source]

Swap x and y 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)