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

Base GUI for mitk::BinaryThresholdTool. More...

#include <QmitkBinaryThresholdToolGUIBase.h>

Inheritance diagram for QmitkBinaryThresholdToolGUIBase:
Collaboration diagram for QmitkBinaryThresholdToolGUIBase:

Public Member Functions

 mitkClassMacro (QmitkBinaryThresholdToolGUIBase, QmitkSegWithPreviewToolGUIBase)
 
void OnThresholdingIntervalBordersChanged (double lower, double upper, bool isFloat)
 
void OnThresholdingValuesChanged (mitk::ScalarType lower, mitk::ScalarType upper)
 
- 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
 

Protected Slots

void OnThresholdRangeChanged (double min, double max)
 
void OnThresholdSliderChanged (double value)
 
- Protected Slots inherited from QmitkSegWithPreviewToolGUIBase
void OnNewToolAssociated (mitk::Tool *)
 
void OnAcceptPreview ()
 

Protected Member Functions

 QmitkBinaryThresholdToolGUIBase (bool ulMode)
 
 ~QmitkBinaryThresholdToolGUIBase () override
 
void DisconnectOldTool (mitk::SegWithPreviewTool *oldTool) override
 
void ConnectNewTool (mitk::SegWithPreviewTool *newTool) override
 
void InitializeUI (QBoxLayout *mainLayout) override
 
void BusyStateChanged (bool) override
 
- Protected Member Functions inherited from QmitkSegWithPreviewToolGUIBase
 QmitkSegWithPreviewToolGUIBase (bool mode2D)
 
 ~QmitkSegWithPreviewToolGUIBase () override
 
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 Member Functions inherited from QmitkToolGUI
 QmitkToolGUI ()=default
 

Protected Attributes

ctkRangeWidget * m_ThresholdRange
 
ctkSliderWidget * m_ThresholdSlider
 
bool m_ULMode
 
bool m_InternalUpdate
 
- Protected Attributes inherited from QmitkSegWithPreviewToolGUIBase
EnableConfirmSegBtnFunctionType m_EnableConfirmSegBtnFnc
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 

Additional Inherited Members

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

Detailed Description

Base GUI for mitk::BinaryThresholdTool.

This GUI shows a slider to change the tool's threshold and an OK button to accept a preview for actual thresholding.

Definition at line 28 of file QmitkBinaryThresholdToolGUIBase.h.

Constructor & Destructor Documentation

◆ QmitkBinaryThresholdToolGUIBase()

QmitkBinaryThresholdToolGUIBase::QmitkBinaryThresholdToolGUIBase ( bool  ulMode)
protected

◆ ~QmitkBinaryThresholdToolGUIBase()

QmitkBinaryThresholdToolGUIBase::~QmitkBinaryThresholdToolGUIBase ( )
overrideprotected

Member Function Documentation

◆ BusyStateChanged()

void QmitkBinaryThresholdToolGUIBase::BusyStateChanged ( bool  )
overrideprotectedvirtual

Reimplemented from QmitkToolGUI.

◆ ConnectNewTool()

void QmitkBinaryThresholdToolGUIBase::ConnectNewTool ( mitk::SegWithPreviewTool newTool)
overrideprotectedvirtual

Reimplemented from QmitkSegWithPreviewToolGUIBase.

◆ DisconnectOldTool()

void QmitkBinaryThresholdToolGUIBase::DisconnectOldTool ( mitk::SegWithPreviewTool oldTool)
overrideprotectedvirtual

Reimplemented from QmitkSegWithPreviewToolGUIBase.

◆ InitializeUI()

void QmitkBinaryThresholdToolGUIBase::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()

QmitkBinaryThresholdToolGUIBase::mitkClassMacro ( QmitkBinaryThresholdToolGUIBase  ,
QmitkSegWithPreviewToolGUIBase   
)

◆ OnThresholdingIntervalBordersChanged()

void QmitkBinaryThresholdToolGUIBase::OnThresholdingIntervalBordersChanged ( double  lower,
double  upper,
bool  isFloat 
)

◆ OnThresholdingValuesChanged()

void QmitkBinaryThresholdToolGUIBase::OnThresholdingValuesChanged ( mitk::ScalarType  lower,
mitk::ScalarType  upper 
)

◆ OnThresholdRangeChanged

void QmitkBinaryThresholdToolGUIBase::OnThresholdRangeChanged ( double  min,
double  max 
)
protectedslot

◆ OnThresholdSliderChanged

void QmitkBinaryThresholdToolGUIBase::OnThresholdSliderChanged ( double  value)
protectedslot

Member Data Documentation

◆ m_InternalUpdate

bool QmitkBinaryThresholdToolGUIBase::m_InternalUpdate
protected

Definition at line 60 of file QmitkBinaryThresholdToolGUIBase.h.

◆ m_ThresholdRange

ctkRangeWidget* QmitkBinaryThresholdToolGUIBase::m_ThresholdRange
protected

Definition at line 53 of file QmitkBinaryThresholdToolGUIBase.h.

◆ m_ThresholdSlider

ctkSliderWidget* QmitkBinaryThresholdToolGUIBase::m_ThresholdSlider
protected

Definition at line 54 of file QmitkBinaryThresholdToolGUIBase.h.

◆ m_ULMode

bool QmitkBinaryThresholdToolGUIBase::m_ULMode
protected

Indicates if the tool UI is used for a tool with upper an lower threshold (true) or only with one threshold (false)

Definition at line 58 of file QmitkBinaryThresholdToolGUIBase.h.


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