Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkEditableContourToolGUIBase Class Reference

Base GUI class for editable contour-based segmentation tools. More...

#include <QmitkEditableContourToolGUIBase.h>

Inheritance diagram for QmitkEditableContourToolGUIBase:
Collaboration diagram for QmitkEditableContourToolGUIBase:

Public Types

enum class  Mode { Add , Subtract }
 Mode of operation for the contour tool. More...
 

Public Member Functions

 mitkClassMacro (QmitkEditableContourToolGUIBase, QmitkToolGUI)
 
- Public Member Functions inherited from QmitkToolGUI
 mitkClassMacroItkParent (QmitkToolGUI, itk::Object)
 
void SetTool (mitk::Tool *tool)
 Associates the given tool with this GUI, emitting NewToolAssociated. More...
 
void SetMultiLabelInspector (QmitkMultiLabelInspector *inspector)
 Provides the segmentation view's label inspector to this GUI. More...
 
QmitkMultiLabelInspector * GetMultiLabelInspector () const
 Returns the inspector associated with this GUI, or null if none. More...
 
void Register () const override
 Intentional no-op; prevents ITK reference counting from interfering with Qt ownership. More...
 
void UnRegister () const ITK_NOEXCEPT ITK_OVERRIDE
 Intentional no-op; prevents ITK reference counting from interfering with Qt ownership. More...
 
void SetReferenceCount (int) override
 Intentional no-op; prevents ITK reference counting from interfering with Qt ownership. More...
 
 ~QmitkToolGUI () override
 

Static Public Member Functions

static Pointer New ()
 

Protected Slots

void OnNewToolAssociated (mitk::Tool *)
 
void OnConfirmSegmentation ()
 
void OnClearContour ()
 
void OnAutoConfirm (bool on)
 
void OnModeToggled (Mode mode)
 
void OnShowInformation (bool on)
 

Protected Member Functions

 QmitkEditableContourToolGUIBase ()
 
 ~QmitkEditableContourToolGUIBase () override
 
- Protected Member Functions inherited from QmitkToolGUI
 QmitkToolGUI ()=default
 
virtual void BusyStateChanged (bool)
 Called when the tool's busy state changes. Override to enable/disable UI elements. More...
 

Protected Attributes

std::unique_ptr< Ui::QmitkEditableContourToolGUIControls > m_Controls
 
itk::SmartPointer< mitk::EditableContourTool > m_NewTool
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 
QmitkMultiLabelInspector * m_MultiLabelInspector
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 Emitted when a new tool is associated with this GUI via SetTool(). More...
 

Detailed Description

Base GUI class for editable contour-based segmentation tools.

Provides common UI controls for contour tools including confirm/clear buttons, auto-confirm toggle, add/subtract mode toggle, and an information panel. Used as the base class for tool GUIs such as QmitkLassoToolGUI and QmitkLiveWireTool2DGUI.

See also
mitk::EditableContourTool
QmitkLassoToolGUI
QmitkLiveWireTool2DGUI
QmitkToolGUI

Definition at line 42 of file QmitkEditableContourToolGUIBase.h.

Member Enumeration Documentation

◆ Mode

Mode of operation for the contour tool.

Enumerator
Add 

Add contour to the segmentation.

Subtract 

Subtract contour from the segmentation.

Definition at line 50 of file QmitkEditableContourToolGUIBase.h.

Constructor & Destructor Documentation

◆ QmitkEditableContourToolGUIBase()

QmitkEditableContourToolGUIBase::QmitkEditableContourToolGUIBase ( )
protected

◆ ~QmitkEditableContourToolGUIBase()

QmitkEditableContourToolGUIBase::~QmitkEditableContourToolGUIBase ( )
overrideprotected

Member Function Documentation

◆ mitkClassMacro()

QmitkEditableContourToolGUIBase::mitkClassMacro ( QmitkEditableContourToolGUIBase  ,
QmitkToolGUI   
)

◆ New()

static Pointer QmitkEditableContourToolGUIBase::New ( )
static

◆ OnAutoConfirm

void QmitkEditableContourToolGUIBase::OnAutoConfirm ( bool  on)
protectedslot

◆ OnClearContour

void QmitkEditableContourToolGUIBase::OnClearContour ( )
protectedslot

◆ OnConfirmSegmentation

void QmitkEditableContourToolGUIBase::OnConfirmSegmentation ( )
protectedslot

◆ OnModeToggled

void QmitkEditableContourToolGUIBase::OnModeToggled ( Mode  mode)
protectedslot

◆ OnNewToolAssociated

void QmitkEditableContourToolGUIBase::OnNewToolAssociated ( mitk::Tool *  )
protectedslot

◆ OnShowInformation

void QmitkEditableContourToolGUIBase::OnShowInformation ( bool  on)
protectedslot

Member Data Documentation

◆ m_Controls

std::unique_ptr<Ui::QmitkEditableContourToolGUIControls> QmitkEditableContourToolGUIBase::m_Controls
protected

Definition at line 72 of file QmitkEditableContourToolGUIBase.h.

◆ m_NewTool

itk::SmartPointer<mitk::EditableContourTool> QmitkEditableContourToolGUIBase::m_NewTool
protected

Definition at line 73 of file QmitkEditableContourToolGUIBase.h.


The documentation for this class was generated from the following file: