mantidimaging.gui.windows.spectrum_viewer.view module#
- class mantidimaging.gui.windows.spectrum_viewer.view.SpectrumViewerWindowView(main_window: MainWindowView)[source]#
Bases:
BaseMainWindowView
- add_roi_table_row(name: str, colour: tuple[int, int, int, int]) None [source]#
Add a new row to the ROI table
@param name: The name of the ROI @param colour: The colour of the ROI
- experimentSetupFormWidget: ExperimentSetupFormWidget#
- experimentSetupGroupBox: QGroupBox#
- exportLayout: QVBoxLayout#
- fittingLayout: QVBoxLayout#
- imageLayout: QVBoxLayout#
- normaliseCheckBox: QCheckBox#
- normaliseErrorIcon: QLabel#
- normaliseStackSelector: DatasetSelectorWidgetView#
- normalise_ShutterCount_CheckBox: QCheckBox#
- on_visibility_change() None [source]#
When the visibility of an ROI is changed, update the visibility of the ROI in the spectrum widget
- roi_form: ROIFormWidget#
- sampleStackSelector: DatasetSelectorWidgetView#
- set_roi_visibility_flags(roi_name: str, visible: bool) None [source]#
Set the visibility for the selected ROI and update the spectrum to reflect the change. A check is made on the spectrum to see if it exists as it may not have been created yet. @param visible: Whether the ROI is visible.
- set_spectrum(name: str, spectrum_data: ndarray) None [source]#
Try to set the spectrum data for a given ROI assuming the roi may not exist in the spectrum widget yet depending on when method is called
- shuttercountErrorIcon: QLabel#
- spectrum_widget: SpectrumWidget#
- property table_view: ROITableWidget#