Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
GUI base clase for tools derived from mitk::SegWithPreviewTool. More...
#include <QmitkSegWithPreviewToolGUIBase.h>
Public Member Functions | |
mitkClassMacro (QmitkSegWithPreviewToolGUIBase, QmitkToolGUI) | |
Pointer | Clone () const |
virtual bool | GetMode2D () const |
Public Member Functions inherited from QmitkToolGUI | |
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 Types | |
using | EnableConfirmSegBtnFunctionType = std::function< bool(bool)> |
Protected Slots | |
void | OnNewToolAssociated (mitk::Tool *) |
void | OnAcceptPreview () |
Protected Member Functions | |
QmitkSegWithPreviewToolGUIBase (bool mode2D) | |
~QmitkSegWithPreviewToolGUIBase () override | |
virtual void | DisconnectOldTool (mitk::SegWithPreviewTool *oldTool) |
virtual void | ConnectNewTool (mitk::SegWithPreviewTool *newTool) |
virtual void | InitializeUI (QBoxLayout *mainLayout) |
void | BusyStateChanged (bool isBusy) override |
virtual void | EnableWidgets (bool enabled) |
template<class TTool > | |
TTool * | GetConnectedToolAs () |
void | SetMergeStyle (mitk::MultiLabelSegmentation::MergeStyle mergeStyle) |
void | SetOverwriteStyle (mitk::MultiLabelSegmentation::OverwriteStyle overwriteStyle) |
Protected Attributes | |
EnableConfirmSegBtnFunctionType | m_EnableConfirmSegBtnFnc |
Protected Attributes inherited from QmitkToolGUI | |
mitk::Tool::Pointer | m_Tool |
Additional Inherited Members | |
Signals inherited from QmitkToolGUI | |
void | NewToolAssociated (mitk::Tool *) |
GUI base clase for tools derived from mitk::SegWithPreviewTool.
Definition at line 30 of file QmitkSegWithPreviewToolGUIBase.h.
|
protected |
Definition at line 63 of file QmitkSegWithPreviewToolGUIBase.h.
|
protected |
|
overrideprotected |
|
overrideprotectedvirtual |
Reimplemented from QmitkToolGUI.
Pointer QmitkSegWithPreviewToolGUIBase::Clone | ( | ) | const |
|
protectedvirtual |
Reimplemented in QmitknnUNetToolGUI, QmitkTotalSegmentatorToolGUI, QmitkOtsuTool3DGUI, QmitkGrowCutToolGUI, and QmitkBinaryThresholdToolGUIBase.
|
protectedvirtual |
Reimplemented in QmitkBinaryThresholdToolGUIBase.
|
protectedvirtual |
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 implmentation, 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 in QmitknnUNetToolGUI, QmitkGrowCutToolGUI, QmitkOtsuTool3DGUI, QmitkMultiLabelSegWithPreviewToolGUIBase, and QmitkPickingToolGUI.
|
inlineprotected |
Definition at line 74 of file QmitkSegWithPreviewToolGUIBase.h.
|
virtual |
|
protectedvirtual |
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 in QmitknnUNetToolGUI, QmitkTotalSegmentatorToolGUI, QmitkOtsuTool3DGUI, QmitkGrowCutToolGUI, QmitkBinaryThresholdToolGUIBase, QmitkMultiLabelSegWithPreviewToolGUIBase, and QmitkPickingToolGUI.
QmitkSegWithPreviewToolGUIBase::mitkClassMacro | ( | QmitkSegWithPreviewToolGUIBase | , |
QmitkToolGUI | |||
) |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
Definition at line 64 of file QmitkSegWithPreviewToolGUIBase.h.