Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkPickingToolGUI Class Reference

GUI for mitk::PickingTool. More...

#include <QmitkPickingToolGUI.h>

Inheritance diagram for QmitkPickingToolGUI:
Collaboration diagram for QmitkPickingToolGUI:

Public Member Functions

 mitkClassMacro (QmitkPickingToolGUI, QmitkSegWithPreviewToolGUIBase)
 
Pointer Clone () const
 
- Public Member Functions inherited from QmitkSegWithPreviewToolGUIBase
 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
 

Static Public Member Functions

static Pointer New ()
 

Protected Slots

void OnResetPicksClicked ()
 
void OnRadioPickClicked (bool checked)
 
- Protected Slots inherited from QmitkSegWithPreviewToolGUIBase
void OnNewToolAssociated (mitk::Tool *)
 
void OnAcceptPreview ()
 

Protected Member Functions

 QmitkPickingToolGUI ()
 
 ~QmitkPickingToolGUI () override
 
void InitializeUI (QBoxLayout *mainLayout) override
 
void EnableWidgets (bool enabled) override
 
- Protected Member Functions inherited from QmitkSegWithPreviewToolGUIBase
 QmitkSegWithPreviewToolGUIBase (bool mode2D)
 
 ~QmitkSegWithPreviewToolGUIBase () override
 
virtual void DisconnectOldTool (mitk::SegWithPreviewTool *oldTool)
 
virtual void ConnectNewTool (mitk::SegWithPreviewTool *newTool)
 
void BusyStateChanged (bool isBusy) override
 
template<class TTool >
TTool * GetConnectedToolAs ()
 
void SetMergeStyle (mitk::MultiLabelSegmentation::MergeStyle mergeStyle)
 
void SetOverwriteStyle (mitk::MultiLabelSegmentation::OverwriteStyle overwriteStyle)
 
- Protected Member Functions inherited from QmitkToolGUI
 QmitkToolGUI ()=default
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 
- Protected Types inherited from QmitkSegWithPreviewToolGUIBase
using EnableConfirmSegBtnFunctionType = std::function< bool(bool)>
 
- Protected Attributes inherited from QmitkSegWithPreviewToolGUIBase
EnableConfirmSegBtnFunctionType m_EnableConfirmSegBtnFnc
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 

Detailed Description

GUI for mitk::PickingTool.

See also
mitk::PickingTool

Definition at line 24 of file QmitkPickingToolGUI.h.

Constructor & Destructor Documentation

◆ QmitkPickingToolGUI()

QmitkPickingToolGUI::QmitkPickingToolGUI ( )
protected

◆ ~QmitkPickingToolGUI()

QmitkPickingToolGUI::~QmitkPickingToolGUI ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer QmitkPickingToolGUI::Clone ( ) const

◆ EnableWidgets()

void QmitkPickingToolGUI::EnableWidgets ( bool  enabled)
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.

◆ InitializeUI()

void QmitkPickingToolGUI::InitializeUI ( QBoxLayout *  mainLayout)
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.

◆ mitkClassMacro()

QmitkPickingToolGUI::mitkClassMacro ( QmitkPickingToolGUI  ,
QmitkSegWithPreviewToolGUIBase   
)

◆ New()

static Pointer QmitkPickingToolGUI::New ( )
static

◆ OnRadioPickClicked

void QmitkPickingToolGUI::OnRadioPickClicked ( bool  checked)
protectedslot

◆ OnResetPicksClicked

void QmitkPickingToolGUI::OnResetPicksClicked ( )
protectedslot

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