Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkToolGUI Class Reference

Base class for GUIs belonging to mitk::Tool classes. More...

#include <QmitkToolGUI.h>

Inheritance diagram for QmitkToolGUI:
Collaboration diagram for QmitkToolGUI:

Signals

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

Public Member Functions

 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
 

Protected Member Functions

 QmitkToolGUI ()=default
 
virtual void BusyStateChanged (bool)
 Called when the tool's busy state changes. Override to enable/disable UI elements. More...
 

Protected Attributes

mitk::Tool::Pointer m_Tool
 
QmitkMultiLabelInspector * m_MultiLabelInspector
 

Detailed Description

Base class for GUIs belonging to mitk::Tool classes.

Created through ITK object factory.

Definition at line 31 of file QmitkToolGUI.h.

Constructor & Destructor Documentation

◆ ~QmitkToolGUI()

QmitkToolGUI::~QmitkToolGUI ( )
override

◆ QmitkToolGUI()

QmitkToolGUI::QmitkToolGUI ( )
protecteddefault

Member Function Documentation

◆ BusyStateChanged()

virtual void QmitkToolGUI::BusyStateChanged ( bool  )
inlineprotectedvirtual

Called when the tool's busy state changes. Override to enable/disable UI elements.

Reimplemented in QmitkBinaryThresholdToolGUIBase, and QmitkSegWithPreviewToolGUIBase.

Definition at line 74 of file QmitkToolGUI.h.

◆ GetMultiLabelInspector()

QmitkMultiLabelInspector* QmitkToolGUI::GetMultiLabelInspector ( ) const

Returns the inspector associated with this GUI, or null if none.

◆ mitkClassMacroItkParent()

QmitkToolGUI::mitkClassMacroItkParent ( QmitkToolGUI  ,
itk::Object   
)

◆ NewToolAssociated

void QmitkToolGUI::NewToolAssociated ( mitk::Tool *  )
signal

Emitted when a new tool is associated with this GUI via SetTool().

◆ Register()

void QmitkToolGUI::Register ( ) const
override

Intentional no-op; prevents ITK reference counting from interfering with Qt ownership.

◆ SetMultiLabelInspector()

void QmitkToolGUI::SetMultiLabelInspector ( QmitkMultiLabelInspector *  inspector)

Provides the segmentation view's label inspector to this GUI.

Set by QmitkToolSelectionBox right after SetTool(). Tool GUIs that need to interact with the host's label-management UI (e.g. to create labels honoring the user's naming preferences) can read it via GetMultiLabelInspector(). May be null if the GUI is hosted outside a segmentation view; callers must handle that case.

◆ SetReferenceCount()

void QmitkToolGUI::SetReferenceCount ( int  )
override

Intentional no-op; prevents ITK reference counting from interfering with Qt ownership.

◆ SetTool()

void QmitkToolGUI::SetTool ( mitk::Tool *  tool)

Associates the given tool with this GUI, emitting NewToolAssociated.

◆ UnRegister()

void QmitkToolGUI::UnRegister ( ) const

Intentional no-op; prevents ITK reference counting from interfering with Qt ownership.

Member Data Documentation

◆ m_MultiLabelInspector

QmitkMultiLabelInspector* QmitkToolGUI::m_MultiLabelInspector
protected

Definition at line 71 of file QmitkToolGUI.h.

◆ m_Tool

mitk::Tool::Pointer QmitkToolGUI::m_Tool
protected

Definition at line 70 of file QmitkToolGUI.h.


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