mantidimaging.gui.windows.main.view module¶
- class mantidimaging.gui.windows.main.view.MainWindowView(open_dialogs: bool = True)[source]¶
Bases:
BaseMainWindowView
- LOAD_PROJECTION_ANGLES_DIALOG_MESSAGE = 'Which stack are the projection angles in DEGREES being loaded for?'¶
- LOAD_PROJECTION_ANGLES_FILE_DIALOG_CAPTION = 'File with projection angles in DEGREES'¶
- NOT_THE_LATEST_VERSION = 'This is not the latest version'¶
- UNCAUGHT_EXCEPTION = 'Uncaught exception'¶
- actionCompareImages: QAction¶
- actionExit: QAction¶
- actionFilters: QAction¶
- actionLoad180deg: QAction¶
- actionLoadDataset: QAction¶
- actionLoadImages: QAction¶
- actionLoadNeXusFile: QAction¶
- actionLoadProjectionAngles: QAction¶
- actionRecon: QAction¶
- actionSampleLoadLog: QAction¶
- actionSaveImages: QAction¶
- actionSaveNeXusFile: QAction¶
- actionSpectrumViewer: QAction¶
- static add_recon_group(dataset_item: QTreeDatasetWidgetItem, recon_id: UUID) QTreeDatasetWidgetItem [source]¶
Adds a recon group to a dataset item in the tree view. :param dataset_item: The dataset item. :return: The recon group that was added.
- add_recon_to_dataset(recon_data: ImageStack, stack_id: UUID)[source]¶
- ask_to_use_closest_to_180(diff_rad: float)[source]¶
Asks the user if they want to use the projection that is closest to 180 degrees as the 180deg. :param diff_rad: The difference from the closest projection to 180 in radians. :return: True if the answer wants to use the closest projection, False otherwise.
- backend_message¶
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.
- static create_child_tree_item(parent: QTreeDatasetWidgetItem, dataset_id: UUID, name: str)[source]¶
- create_dataset_tree_widget_item(title: str, id: UUID) QTreeDatasetWidgetItem [source]¶
- create_new_stack(images: ImageStack)[source]¶
- create_stack_window(stack: ImageStack, position: DockWidgetArea = 2, floating: bool = False) StackVisualiserView [source]¶
- current_showing_stack() StackVisualiserView | None [source]¶
- filters: FiltersWindowView | None = None¶
- get_all_stacks() List[ImageStack] [source]¶
- get_dataset(dataset_id: UUID) MixedDataset | StrictDataset | None [source]¶
- get_dataset_tree_view_item(dataset_id: UUID) QTreeDatasetWidgetItem [source]¶
Looks for the dataset tree view item matching a given ID. :param dataset_id: The dataset ID. :return: The tree view item if found.
- get_images_from_stack_uuid(stack_uuid) ImageStack [source]¶
- static get_recon_group(dataset_item: QTreeDatasetWidgetItem) QTreeDatasetWidgetItem | None [source]¶
Looks for an existing recon group in a dataset tree view item. :param dataset_item: The dataset item to look for the recon group in. :return: The recon group if found.
- static get_sinograms_item(parent: QTreeDatasetWidgetItem) QTreeDatasetWidgetItem | None [source]¶
Tries to look for a sinograms entry in a dataset tree view item. :return: The sinograms entry if found, None otherwise.
- get_stack(stack_uuid: UUID) ImageStack [source]¶
- get_stack_with_images(images: ImageStack) StackVisualiserView [source]¶
- image_load_dialog: ImageLoadDialog | None = None¶
- image_save_dialog: ImageSaveDialog | None = None¶
- model_changed¶
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.
- nexus_load_dialog: NexusLoadDialog | None = None¶
- nexus_save_dialog: NexusSaveDialog | None = None¶
- recon: ReconstructWindowView | None = None¶
- spectrum_viewer: SpectrumViewerWindowView | None = None¶
- stack_changed¶
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.
- property stack_list¶
- property stack_names¶
- property strict_dataset_list¶