tomwer.gui.visualization.diffviewer.shiftwidget.Relative2FramesShift#

class tomwer.gui.visualization.diffviewer.shiftwidget.Relative2FramesShift(parent=None)#
DEFAULT_SINGLE_STEP = 0.5#
MAX_SINGLE_STEP = 1000#
MIN_SINGLE_STEP = 0.0001#
RANGE_MAX_VALUE = 1.7976931348623157e+308#
RANGE_MIN_VALUE = -1.7976931348623157e+308#
getFrameAShift()#
Return type:

tuple

Returns:

getFrameAXShift()#
getFrameAYShift()#
getFrameBShift()#
Return type:

tuple

Returns:

getFrameBXShift()#
getFrameBYShift()#
isFrameALRFlip()#
Return type:

bool

Returns:

True if the frame A should be left-right shift

isFrameBLRFlip()#
Return type:

bool

Returns:

True if the frame B should be left-right shift

keyPressEvent(self, a0: QKeyEvent | None)#
move(direction)#
move(self, ax: int, ay: int) None
setShiftStep(step)#
sigShiftsChanged#

Signal emit when the shift changed. Tuple contains shift_imgA, shift_imgB. Both are tuple of (x, y, lrflip) x and y are shift values as float. lrflip is a boolean notifying if we should flip image or not before applying the shift