mantidimaging.gui.windows.spectrum_viewer.presenter module¶
- class mantidimaging.gui.windows.spectrum_viewer.presenter.SpectrumViewerWindowPresenter(view: SpectrumViewerWindowView, main_window: MainWindowView)[source]¶
Bases:
BasePresenter
The presenter for the spectrum 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.
- do_add_roi_to_table(roi_name: str) None [source]¶
Add a given ROI to the table by ROI name
@param roi_name: Name of the ROI to add
- do_remove_roi(roi_name=None) None [source]¶
Remove a given ROI from the table by ROI name or all ROIs from the table if no name is passed as an argument
@param roi_name: Name of the ROI to remove
- handle_export_button_enabled() None [source]¶
Enable the export button if the current stack is not None
- model: SpectrumViewerWindowModel¶
- rename_roi(old_name: str, new_name: str) None [source]¶
Rename a given ROI from the table by ROI name
@param old_name: Name of the ROI to rename @param new_name: New name of the ROI