Medical Imaging Interaction Toolkit  2021.02.99-9e0e53e2
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, QmitkAutoSegmentationToolGUIBase)
 
void OnThresholdingIntervalBordersChanged (double lower, double upper, bool isFloat)
 
void OnThresholdingValuesChanged (mitk::ScalarType lower, mitk::ScalarType upper)
 
- Public Member Functions inherited from QmitkAutoSegmentationToolGUIBase
 mitkClassMacro (QmitkAutoSegmentationToolGUIBase, 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::AutoSegmentationWithPreviewTool *oldTool) override
 
void ConnectNewTool (mitk::AutoSegmentationWithPreviewTool *newTool) override
 
void InitializeUI (QBoxLayout *mainLayout) override
 
void BusyStateChanged (bool) override
 
- Protected Member Functions inherited from QmitkAutoSegmentationToolGUIBase
 QmitkAutoSegmentationToolGUIBase (bool mode2D)
 
 ~QmitkAutoSegmentationToolGUIBase () override
 
virtual void EnableWidgets (bool enabled)
 
template<class TTool >
TTool * GetConnectedToolAs ()
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 
- Protected Types inherited from QmitkAutoSegmentationToolGUIBase
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 QmitkAutoSegmentationToolGUIBase
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 QmitkAutoSegmentationToolGUIBase
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: