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]) None [source]#
Add a new row to the ROI table
@param name: The name of the ROI @param colour: The colour of the ROI
- bin_size_spinBox: QSpinBox#
- bin_step_spinBox: QSpinBox#
- exportButton: QPushButton#
- exportTabs: QTabWidget#
- find_row_for_roi(roi_name: str) int | None [source]#
Returns row index for ROI name, or None if not found. @param roi_name: Name ROI find. @return: Row index ROI or None.
- flightPathSpinBox: QDoubleSpinBox#
- imageLayout: QVBoxLayout#
- image_output_mode_combobox: QComboBox#
- 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
- roiPropertiesGroupBox: QGroupBox#
- roiPropertiesTableWidget: QTableWidget#
- property roi_table_model: TableModel#
- sampleStackSelector: DatasetSelectorWidgetView#
- set_roi_alpha(alpha: float, roi_name: str) None [source]#
Set the alpha value 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 alpha: The alpha value
- 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#
- tableView: RemovableRowTableView#
- timeDelaySpinBox: QDoubleSpinBox#
- tofPropertiesGroupBox: QGroupBox#
- transmission_error_mode_combobox: QComboBox#