mantidimaging.gui.windows.live_viewer.presenter module#
- exception mantidimaging.gui.windows.live_viewer.presenter.ImageLoadFailError(image_path: Path, source_error, message: str = '')[source]#
Bases:
Exception
Exception raised when an image is not loaded correctly
- class mantidimaging.gui.windows.live_viewer.presenter.LiveViewerWindowPresenter(view: LiveViewerWindowView, main_window: MainWindowView)[source]#
Bases:
BasePresenter
The presenter for the Live Viewer window.
This presenter is responsible for handling user interaction with the view and updating the model and view accordingly to look after the state of the window.
- convert_image_to_imagestack(image_data) ImageStack [source]#
Convert the single image to an imagestack so the Operations framework can be used
- display_image(image_data_obj: Image_Data) None [source]#
Display image in the view after validating contents
- static load_image_from_path(image_path: Path) ndarray [source]#
Load a .Tif, .Tiff or .Fits file only if it exists and returns as an ndarray
- model: LiveViewerWindowModel#
- op_func: Callable#
- thread: QThread#
- update_image_list(images_list: list[Image_Data]) None [source]#
Update the image in the view.
- update_image_modified(image_path: Path) None [source]#
Update the displayed image when the file is modified
- update_image_operation() None [source]#
Reload the current image if an operation has been performed on the current image
- view: LiveViewerWindowView#
- class mantidimaging.gui.windows.live_viewer.presenter.Worker(presenter: LiveViewerWindowPresenter)[source]#
Bases:
QObject
- finished#
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.