mantidimaging.gui.widgets.spectrum_widgets.roi_form_widget module#
- class mantidimaging.gui.widgets.spectrum_widgets.roi_form_widget.ROIFormWidget(parent=None)[source]#
Bases:
BaseWidgetCollection of widgets for adding, removing and adjusting ROIs in the spectrum viewer
- addBtn: QPushButton#
- bin_size_spinBox: QSpinBox#
- bin_step_spinBox: QSpinBox#
- binningChanged#
Emitted when the binning parameters change.
- exportButton: QPushButton#
- exportButtonRITS: QPushButton#
- exportTabs: QTabWidget#
- image_output_mode_combobox: QComboBox#
- image_tab: QWidget#
- loadBtn: QPushButton#
- removeBtn: QPushButton#
- roi_properties_widget: ROIPropertiesTableWidget#
- table_view: ROITableWidget#
- transmission_error_mode_combobox: QComboBox#
- class mantidimaging.gui.widgets.spectrum_widgets.roi_form_widget.ROIPropertiesTableWidget(parent=None)[source]#
Bases:
BaseWidgetWidget for manually adjusting the current selected ROI
- group_box: QGroupBox#
- label_height: QLabel#
- label_width: QLabel#
- roi_changed#
Emitted when the ROI properties are changed.
- set_roi_values(roi: SensibleROI) None[source]#
- spin_bottom: QSpinBox#
- spin_left: QSpinBox#
- spin_right: QSpinBox#
- spin_top: QSpinBox#
- to_roi() SensibleROI[source]#
- update_roi_limits(roi: SensibleROI) None[source]#
- class mantidimaging.gui.widgets.spectrum_widgets.roi_form_widget.ROITableWidget(parent=None)[source]#
Bases:
RemovableRowTableViewA class to represent the ROI table widget in the spectrum viewer window.
- ElementType = str | tuple[int, int, int] | bool#
- add_row(name: str, colour: tuple[int, int, int, int], roi_names: list[str]) None[source]#
Add a new row to the ROI table
- find_row_for_roi(roi_name: str) int | None[source]#
Returns row index for ROI name, or None if not found.
- get_roi_visibility_by_row(row: int) bool[source]#
Retrieve the visibility status of an ROI by its row index.
- name_changed#
Emitted when the name of an ROI is changed.
- selection_changed#
Emitted when the selected row in the ROI table changes.
- update_roi_color(roi_name: str, new_color: tuple[int, int, int, int]) None[source]#
Finds ROI by name in table and updates it’s colour (R, G, B) format.
- visibility_changed#
Emitted when the visibility of an ROI is changed.