Medical Imaging Interaction Toolkit
2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
|
#include <QmitkMonaiLabelToolGUI.h>
Public Member Functions | |
mitkClassMacro (QmitkMonaiLabelToolGUI, QmitkMultiLabelSegWithPreviewToolGUIBase) | |
Pointer | Clone () const |
![]() | |
mitkClassMacro (QmitkMultiLabelSegWithPreviewToolGUIBase, QmitkSegWithPreviewToolGUIBase) | |
![]() | |
mitkClassMacro (QmitkSegWithPreviewToolGUIBase, QmitkToolGUI) | |
Pointer | Clone () const |
virtual bool | GetMode2D () const |
![]() | |
mitkClassMacroItkParent (QmitkToolGUI, itk::Object) | |
void | SetTool (mitk::Tool *tool) |
void | Register () const override |
void | UnRegister () const ITK_NOEXCEPT ITK_OVERRIDE |
void | SetReferenceCount (int) override |
~QmitkToolGUI () override | |
Protected Slots | |
void | OnPreviewBtnClicked () |
void | OnFetchBtnClicked () |
void | OnModelChanged (const QString &) |
![]() | |
void | OnLabelSelectionChanged (const QmitkSimpleLabelSetListWidget::LabelVectorType &selectedLabels) |
void | OnRadioTransferAllClicked (bool checked) |
![]() | |
void | OnNewToolAssociated (mitk::Tool *) |
void | OnAcceptPreview () |
Protected Member Functions | |
QmitkMonaiLabelToolGUI (int dimension) | |
~QmitkMonaiLabelToolGUI () | |
void | ConnectNewTool (mitk::SegWithPreviewTool *newTool) override |
void | InitializeUI (QBoxLayout *mainLayout) override |
void | EnableWidgets (bool enabled) override |
virtual void | DisplayWidgets (bool enabled) |
void | WriteStatusMessage (const QString &) |
Writes any message in white on the tool pane. More... | |
void | WriteErrorMessage (const QString &) |
Writes any message in red on the tool pane. More... | |
void | ShowErrorMessage (const std::string &message) |
Creates a QMessage object and shows on screen. More... | |
void | StatusMessageListener (const bool status) |
Function to listen to tool class status emitters. More... | |
void | OnPreferenceChangedEvent (const mitk::IPreferences::ChangeEvent &event) |
Function to listen to Preference changes. More... | |
void | PopulateModelBox (QString appName, std::vector< mitk::MonaiModelInfo > models, bool allowAllModels) |
Helper function to write MONAI model info in to model combo box. More... | |
void | PopulateUI (bool allowAllModels) |
Helper function to populate required server metadata into UI. More... | |
![]() | |
QmitkMultiLabelSegWithPreviewToolGUIBase () | |
~QmitkMultiLabelSegWithPreviewToolGUIBase ()=default | |
void | InitializeUI (QBoxLayout *mainLayout) override |
void | EnableWidgets (bool enabled) override |
void | SetLabelSetPreview (const mitk::MultiLabelSegmentation *preview) |
void | ActualizePreviewLabelVisibility () |
void | DisplayTransferWidgets (bool enabled) |
To toggle visibility of "Transfer all labels" and "Transfer selected labels" radio buttons. More... | |
![]() | |
QmitkSegWithPreviewToolGUIBase (bool mode2D, bool enableProcessingOfAllTimeSteps=true) | |
~QmitkSegWithPreviewToolGUIBase () override | |
virtual void | DisconnectOldTool (mitk::SegWithPreviewTool *oldTool) |
void | BusyStateChanged (bool isBusy) override |
template<class TTool > | |
TTool * | GetConnectedToolAs () |
void | SetMergeStyle (mitk::MultiLabelSegmentation::MergeStyle mergeStyle) |
void | SetOverwriteStyle (mitk::MultiLabelSegmentation::OverwriteStyle overwriteStyle) |
QPushButton * | GetConfirmSegmentationButton () const |
![]() | |
QmitkToolGUI ()=default | |
Additional Inherited Members | |
![]() | |
void | NewToolAssociated (mitk::Tool *) |
![]() | |
using | EnableConfirmSegBtnFunctionType = std::function< bool(bool)> |
![]() | |
EnableConfirmSegBtnFunctionType | m_EnableConfirmSegBtnFnc |
![]() | |
mitk::Tool::Pointer | m_Tool |
Definition at line 24 of file QmitkMonaiLabelToolGUI.h.
|
protected |
|
protected |
Pointer QmitkMonaiLabelToolGUI::Clone | ( | ) | const |
|
overrideprotectedvirtual |
Reimplemented from QmitkSegWithPreviewToolGUIBase.
|
protectedvirtual |
|
overrideprotectedvirtual |
This method is used to control/set the enabled state of the tool UI widgets. It is e.g. used if the busy state is changed (see BusyStateChanged). Override the default implementation, e.g. if a tool adds his own UI elements (normally by overriding InitializeUI()) and wants to control how the widgets are enabled/disabled.
Reimplemented from QmitkSegWithPreviewToolGUIBase.
|
overrideprotectedvirtual |
This method is called by OnNewToolAssociated if the UI is initialized the first time to allow derived classes to introduce own UI code. Overwrite to change. The implementation should ensure that alle widgets needed for the tool UI are properly allocated. If one needs to eecute time (e.g. to connect events between the tool and the UI) each time the tool changes, override the functions ConnectNewTool() and DisconnectOldTool().
Reimplemented from QmitkSegWithPreviewToolGUIBase.
QmitkMonaiLabelToolGUI::mitkClassMacro | ( | QmitkMonaiLabelToolGUI | , |
QmitkMultiLabelSegWithPreviewToolGUIBase | |||
) |
|
protectedslot |
|
protectedslot |
|
protected |
Function to listen to Preference changes.
|
protectedslot |
|
protected |
Helper function to write MONAI model info in to model combo box.
|
protected |
Helper function to populate required server metadata into UI.
|
protected |
Creates a QMessage object and shows on screen.
|
protected |
Function to listen to tool class status emitters.
|
protected |
Writes any message in red on the tool pane.
|
protected |
Writes any message in white on the tool pane.