Medical Imaging Interaction Toolkit  2016.11.0
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)
 
virtual void Register () const override
 
virtual void UnRegister () const ITK_NOEXCEPT ITK_OVERRIDE
 
virtual void SetReferenceCount (int) override
 
virtual ~QmitkToolGUI ()
 

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 ()
 
virtual ~QmitkWatershedToolGUI ()
 
- 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 37 of file QmitkWatershedToolGUI.h.

Constructor & Destructor Documentation

QmitkWatershedToolGUI::QmitkWatershedToolGUI ( )
protected

Definition at line 31 of file QmitkWatershedToolGUI.cpp.

QmitkWatershedToolGUI::~QmitkWatershedToolGUI ( )
protectedvirtual

Definition at line 91 of file QmitkWatershedToolGUI.cpp.

References m_WatershedTool.

Member Function Documentation

Pointer QmitkWatershedToolGUI::Clone ( ) const
QmitkWatershedToolGUI::mitkClassMacro ( QmitkWatershedToolGUI  ,
QmitkToolGUI   
)
static Pointer QmitkWatershedToolGUI::New ( )
static
void QmitkWatershedToolGUI::OnCreateSegmentation ( )
protectedslot

Starts segmentation algorithm in the watershed tool.

Definition at line 139 of file QmitkWatershedToolGUI.cpp.

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

void QmitkWatershedToolGUI::OnNewToolAssociated ( mitk::Tool tool)
protectedslot
void QmitkWatershedToolGUI::OnSliderValueLevelChanged ( int  value)
protectedslot

Passes the chosen level value directly to the watershed tool.

Definition at line 129 of file QmitkWatershedToolGUI.cpp.

References m_LevelLabel, m_WatershedTool, and Json::realValue.

Referenced by OnNewToolAssociated().

void QmitkWatershedToolGUI::OnSliderValueThresholdChanged ( int  value)
protectedslot

Passes the chosen threshold value directly to the watershed tool.

Definition at line 119 of file QmitkWatershedToolGUI.cpp.

References m_ThresholdLabel, m_WatershedTool, and Json::realValue.

Referenced by OnNewToolAssociated().

Member Data Documentation

QFrame* QmitkWatershedToolGUI::m_Frame
protected

Definition at line 70 of file QmitkWatershedToolGUI.h.

QLabel* QmitkWatershedToolGUI::m_InformationLabel
protected

Label showing additional informations.

Definition at line 68 of file QmitkWatershedToolGUI.h.

Referenced by OnCreateSegmentation().

QLabel* QmitkWatershedToolGUI::m_LevelLabel
protected

Label showing the current level value.

Definition at line 66 of file QmitkWatershedToolGUI.h.

Referenced by OnSliderValueLevelChanged().

QSlider* QmitkWatershedToolGUI::m_SliderLevel
protected

Definition at line 61 of file QmitkWatershedToolGUI.h.

QSlider* QmitkWatershedToolGUI::m_SliderThreshold
protected

Definition at line 60 of file QmitkWatershedToolGUI.h.

QLabel* QmitkWatershedToolGUI::m_ThresholdLabel
protected

Label showing the current threshold value.

Definition at line 64 of file QmitkWatershedToolGUI.h.

Referenced by OnSliderValueThresholdChanged().


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