Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkBinaryThresholdToolGUI Class Reference

GUI for mitk::BinaryThresholdTool. More...

#include <QmitkBinaryThresholdToolGUI.h>

Inheritance diagram for QmitkBinaryThresholdToolGUI:
Collaboration diagram for QmitkBinaryThresholdToolGUI:

Public Member Functions

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

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 QmitkBinaryThresholdToolGUI ()
 
 ~QmitkBinaryThresholdToolGUI () override
 
- Protected Member Functions inherited from QmitkBinaryThresholdToolGUIBase
 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
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 
- Protected Types inherited from QmitkSegWithPreviewToolGUIBase
using EnableConfirmSegBtnFunctionType = std::function< bool(bool)>
 
- Protected Slots inherited from QmitkBinaryThresholdToolGUIBase
void OnThresholdRangeChanged (double min, double max)
 
void OnThresholdSliderChanged (double value)
 
- Protected Slots inherited from QmitkSegWithPreviewToolGUIBase
void OnNewToolAssociated (mitk::Tool *)
 
void OnAcceptPreview ()
 
- Protected Attributes inherited from QmitkBinaryThresholdToolGUIBase
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
 

Detailed Description

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.

There is only a slider for INT values in QT. So, if the working image has a float/double pixeltype, we need to convert the original float intensity into a respective int value for the slider. The slider range is then between 0 and 99.

If the pixeltype is INT, then we do not need any conversion.

Last contributor: $Author$

Definition at line 36 of file QmitkBinaryThresholdToolGUI.h.

Constructor & Destructor Documentation

◆ QmitkBinaryThresholdToolGUI()

QmitkBinaryThresholdToolGUI::QmitkBinaryThresholdToolGUI ( )
protected

◆ ~QmitkBinaryThresholdToolGUI()

QmitkBinaryThresholdToolGUI::~QmitkBinaryThresholdToolGUI ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer QmitkBinaryThresholdToolGUI::Clone ( ) const

◆ mitkClassMacro()

QmitkBinaryThresholdToolGUI::mitkClassMacro ( QmitkBinaryThresholdToolGUI  ,
QmitkBinaryThresholdToolGUIBase   
)

◆ New()

static Pointer QmitkBinaryThresholdToolGUI::New ( )
static

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