Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkWatershedToolGUI Class Reference

GUI for mitk::WatershedTool. More...

#include <QmitkWatershedToolGUI.h>

Inheritance diagram for QmitkWatershedToolGUI:
Collaboration diagram for QmitkWatershedToolGUI:

Public Member Functions

 mitkClassMacro (QmitkWatershedToolGUI, QmitkToolGUI)
 
Pointer Clone () 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 OnNewToolAssociated (mitk::Tool *)
 
void OnSliderValueThresholdChanged (int value)
 Passes the chosen threshold value directly to the watershed tool. More...
 
void OnSliderValueLevelChanged (int value)
 Passes the chosen level value directly to the watershed tool. More...
 
void OnCreateSegmentation ()
 Starts segmentation algorithm in the watershed tool. More...
 

Protected Member Functions

 QmitkWatershedToolGUI ()
 
 ~QmitkWatershedToolGUI () override
 
- Protected Member Functions inherited from QmitkToolGUI
virtual void BusyStateChanged (bool)
 

Protected Attributes

QSlider * m_SliderThreshold
 
QSlider * m_SliderLevel
 
QLabel * m_ThresholdLabel
 Label showing the current threshold value. More...
 
QLabel * m_LevelLabel
 Label showing the current level value. More...
 
QLabel * m_InformationLabel
 Label showing additional informations. More...
 
QFrame * m_Frame
 
mitk::WatershedTool::Pointer m_WatershedTool
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 

Additional Inherited Members

- Signals inherited from QmitkToolGUI
void NewToolAssociated (mitk::Tool *)
 

Detailed Description

GUI for mitk::WatershedTool.

See also
mitk::WatershedTool

This GUI shows two sliders to change the watershed parameters. It executes the watershed algorithm by clicking on the button.

Definition at line 33 of file QmitkWatershedToolGUI.h.

Constructor & Destructor Documentation

◆ QmitkWatershedToolGUI()

QmitkWatershedToolGUI::QmitkWatershedToolGUI ( )
protected

Definition at line 27 of file QmitkWatershedToolGUI.cpp.

◆ ~QmitkWatershedToolGUI()

QmitkWatershedToolGUI::~QmitkWatershedToolGUI ( )
overrideprotected

Definition at line 87 of file QmitkWatershedToolGUI.cpp.

References m_WatershedTool.

Member Function Documentation

◆ Clone()

Pointer QmitkWatershedToolGUI::Clone ( ) const

◆ mitkClassMacro()

QmitkWatershedToolGUI::mitkClassMacro ( QmitkWatershedToolGUI  ,
QmitkToolGUI   
)

◆ New()

static Pointer QmitkWatershedToolGUI::New ( )
static

◆ OnCreateSegmentation

void QmitkWatershedToolGUI::OnCreateSegmentation ( )
protectedslot

Starts segmentation algorithm in the watershed tool.

Definition at line 135 of file QmitkWatershedToolGUI.cpp.

References mitk::ProgressBar::GetInstance(), m_InformationLabel, m_WatershedTool, and mitk::ProgressBar::Progress().

◆ OnNewToolAssociated

void QmitkWatershedToolGUI::OnNewToolAssociated ( mitk::Tool tool)
protectedslot

◆ OnSliderValueLevelChanged

void QmitkWatershedToolGUI::OnSliderValueLevelChanged ( int  value)
protectedslot

Passes the chosen level value directly to the watershed tool.

Definition at line 125 of file QmitkWatershedToolGUI.cpp.

References m_LevelLabel, m_WatershedTool, and Json::realValue.

Referenced by OnNewToolAssociated().

◆ OnSliderValueThresholdChanged

void QmitkWatershedToolGUI::OnSliderValueThresholdChanged ( int  value)
protectedslot

Passes the chosen threshold value directly to the watershed tool.

Definition at line 115 of file QmitkWatershedToolGUI.cpp.

References m_ThresholdLabel, m_WatershedTool, and Json::realValue.

Referenced by OnNewToolAssociated().

Member Data Documentation

◆ m_Frame

QFrame* QmitkWatershedToolGUI::m_Frame
protected

Definition at line 67 of file QmitkWatershedToolGUI.h.

◆ m_InformationLabel

QLabel* QmitkWatershedToolGUI::m_InformationLabel
protected

Label showing additional informations.

Definition at line 65 of file QmitkWatershedToolGUI.h.

Referenced by OnCreateSegmentation().

◆ m_LevelLabel

QLabel* QmitkWatershedToolGUI::m_LevelLabel
protected

Label showing the current level value.

Definition at line 63 of file QmitkWatershedToolGUI.h.

Referenced by OnSliderValueLevelChanged().

◆ m_SliderLevel

QSlider* QmitkWatershedToolGUI::m_SliderLevel
protected

Definition at line 58 of file QmitkWatershedToolGUI.h.

◆ m_SliderThreshold

QSlider* QmitkWatershedToolGUI::m_SliderThreshold
protected

Definition at line 57 of file QmitkWatershedToolGUI.h.

◆ m_ThresholdLabel

QLabel* QmitkWatershedToolGUI::m_ThresholdLabel
protected

Label showing the current threshold value.

Definition at line 61 of file QmitkWatershedToolGUI.h.

Referenced by OnSliderValueThresholdChanged().

◆ m_WatershedTool


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