mantidimaging.gui.windows.operations.presenter module

class mantidimaging.gui.windows.operations.presenter.FiltersWindowPresenter(view: FiltersWindowView, main_window: MainWindowView)[source]

Bases: BasePresenter

divider = '------------------------------------'
do_apply_filter()[source]
do_apply_filter_to_all()[source]
do_register_active_filter()[source]
do_scroll_preview(offset)[source]
do_update_previews()[source]
filter_uses_parameter(parameter)[source]
get_filter_module_name(filter_idx)[source]
init_crop_coords(roi_field: QLineEdit)[source]

Sets the initial value of the crop coordinates line edit widget so that it doesn’t contain values that are larger than the image. :param roi_field: The ROI field line edit widget.

is_a_proj180deg(stack_to_check: ImageStack)[source]
property main_window: MainWindowView
property max_preview_image_idx
notify(signal)[source]
set_filter_by_name(filter_menu_name: str)[source]
set_preview_image_index(image_idx: int)[source]

Sets the current preview image index.

set_stack(stack: ImageStack | None)[source]
set_stack_uuid(uuid: UUID | None)[source]
stack: ImageStack | None = None
view: FiltersWindowView
class mantidimaging.gui.windows.operations.presenter.Notification(value)[source]

Bases: Enum

An enumeration.

APPLY_FILTER = 2
APPLY_FILTER_TO_ALL = 3
REGISTER_ACTIVE_FILTER = 1
SCROLL_PREVIEW_DOWN = 6
SCROLL_PREVIEW_UP = 5
UPDATE_PREVIEWS = 4
mantidimaging.gui.windows.operations.presenter.sub(x: Tuple[int, int]) int[source]

Subtracts two tuples. Helper method for generating the negative slice list. :param x: The int tuple. :return: The first value subtracted from the second value.