Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkAdaptiveRegionGrowingToolGUI Class Reference

QmitkAdaptiveRegionGrowingToolGUI. More...

#include <QmitkAdaptiveRegionGrowingToolGUI.h>

Inheritance diagram for QmitkAdaptiveRegionGrowingToolGUI:
Collaboration diagram for QmitkAdaptiveRegionGrowingToolGUI:

Public Member Functions

 mitkClassMacro (QmitkAdaptiveRegionGrowingToolGUI, QmitkToolGUI)
 mitkClassMacro More...
 
Pointer Clone () const
 
 QmitkAdaptiveRegionGrowingToolGUI (QWidget *parent=0)
 
virtual void CreateConnections ()
 Method to create the connections for the component. This Method is obligatory even if no connections is needed. More...
 
virtual void SetDataStorage (mitk::DataStorage *dataStorage)
 Method to set the default data storage. More...
 
void SetMultiWidget (QmitkStdMultiWidget *multiWidget)
 Method to set the used multiwidget. More...
 
void SetDataNodeNames (std::string labledSegmentation, std::string binaryImage, std::string surface, std::string maskedSegmentation)
 Method to set the name of a data node. More...
 
void EnableControls (bool enable)
 Method to enable/disable controls for region growing. More...
 
void SetInputImageNode (mitk::DataNode *node)
 Method to set the input image node. More...
 
void Deactivated ()
 
void Activated ()
 
- 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 ()
 

Public Attributes

Ui::QmitkAdaptiveRegionGrowingToolGUIControls m_Controls
 The created GUI from the .ui-File. This Attribute is obligatory. More...
 

Protected Slots

void RunSegmentation ()
 Method to start the segmentation. More...
 
void ChangeLevelWindow (double newValue)
 Method to change the level window. More...
 
void IncreaseSlider ()
 Method to increase the preview slider. More...
 
void DecreaseSlider ()
 Method to decrease the preview slider. More...
 
void ConfirmSegmentation ()
 Method to confirm the preview segmentation. More...
 
void UseVolumeRendering (bool on)
 Method to switch the volume rendering on/off. More...
 
void SetLowerThresholdValue (double lowerThreshold)
 Method to set the lower threshold. More...
 
void SetUpperThresholdValue (double upperThreshold)
 Method to set upper threshold. More...
 
void OnNewToolAssociated (mitk::Tool *)
 Method to determine which tool to activate. More...
 

Protected Member Functions

virtual ~QmitkAdaptiveRegionGrowingToolGUI ()
 Destructor. More...
 
void OnPointAdded ()
 Method to calculate parameter settings, when a seed point is set. More...
 
- Protected Member Functions inherited from QmitkToolGUI
virtual void BusyStateChanged (bool)
 

Protected Attributes

mitk::AdaptiveRegionGrowingTool::Pointer m_RegionGrow3DTool
 
QmitkStdMultiWidgetm_MultiWidget
 
mitk::DataStoragem_DataStorage
 
mitk::DataNode::Pointer m_InputImageNode
 
- Protected Attributes inherited from QmitkToolGUI
mitk::Tool::Pointer m_Tool
 

Additional Inherited Members

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

Detailed Description

QmitkAdaptiveRegionGrowingToolGUI.

Adaptive Region Growing View class of the segmentation.

Definition at line 45 of file QmitkAdaptiveRegionGrowingToolGUI.h.

Constructor & Destructor Documentation

QmitkAdaptiveRegionGrowingToolGUI::QmitkAdaptiveRegionGrowingToolGUI ( QWidget *  parent = 0)

Definition at line 49 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

QmitkAdaptiveRegionGrowingToolGUI::~QmitkAdaptiveRegionGrowingToolGUI ( )
protectedvirtual

Destructor.

Definition at line 75 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References m_RegionGrow3DTool.

Member Function Documentation

void QmitkAdaptiveRegionGrowingToolGUI::Activated ( )

Definition at line 967 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

void QmitkAdaptiveRegionGrowingToolGUI::ChangeLevelWindow ( double  newValue)
protectedslot

Method to change the level window.

This method is called, when the level window slider is changed via the slider in the control widget

Parameters
newvalue

Definition at line 631 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References mitk::RenderingManager::GetInstance(), mitk::DataStorage::GetNamedNode(), m_DataStorage, mitk::RenderingManager::RequestUpdateAll(), and mitk::LevelWindow::SetLevelWindow().

Referenced by CreateConnections(), DecreaseSlider(), and IncreaseSlider().

Pointer QmitkAdaptiveRegionGrowingToolGUI::Clone ( ) const
void QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation ( )
protectedslot
void QmitkAdaptiveRegionGrowingToolGUI::CreateConnections ( )
virtual

Method to create the connections for the component. This Method is obligatory even if no connections is needed.

Definition at line 125 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References ChangeLevelWindow(), ConfirmSegmentation(), m_Controls, RunSegmentation(), SetLowerThresholdValue(), SetUpperThresholdValue(), and UseVolumeRendering().

void QmitkAdaptiveRegionGrowingToolGUI::Deactivated ( )
void QmitkAdaptiveRegionGrowingToolGUI::DecreaseSlider ( )
protectedslot

Method to decrease the preview slider.

This method is called, when the - button is clicked and decreases the value by 1

Definition at line 669 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References ChangeLevelWindow(), and m_Controls.

void QmitkAdaptiveRegionGrowingToolGUI::EnableControls ( bool  enable)

Method to enable/disable controls for region growing.

This method checks if a seed point is set and a segmentation exists.

Parameters
enable/disablecontrols

Definition at line 822 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References mitk::DataStorage::GetNamedNode(), m_Controls, m_DataStorage, and m_RegionGrow3DTool.

Referenced by OnNewToolAssociated(), and RunSegmentation().

void QmitkAdaptiveRegionGrowingToolGUI::IncreaseSlider ( )
protectedslot

Method to increase the preview slider.

This method is called, when the + button is clicked and increases the value by 1

Definition at line 680 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References ChangeLevelWindow(), and m_Controls.

QmitkAdaptiveRegionGrowingToolGUI::mitkClassMacro ( QmitkAdaptiveRegionGrowingToolGUI  ,
QmitkToolGUI   
)

mitkClassMacro

static Pointer QmitkAdaptiveRegionGrowingToolGUI::New ( )
static
void QmitkAdaptiveRegionGrowingToolGUI::OnNewToolAssociated ( mitk::Tool tool)
protectedslot

Method to determine which tool to activate.

This method listens to the tool manager and activates this tool if requested otherwise disables this view

Definition at line 86 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References EnableControls(), m_DataStorage, m_RegionGrow3DTool, mitk::New(), OnPointAdded(), and SetInputImageNode().

void QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation ( )
protectedslot
void QmitkAdaptiveRegionGrowingToolGUI::SetDataNodeNames ( std::string  labledSegmentation,
std::string  binaryImage,
std::string  surface,
std::string  maskedSegmentation 
)

Method to set the name of a data node.

Parameters
labledSegmentationName of the labeled segmentation
binaryImageName of the binary image
surfaceName of the surface

Definition at line 138 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

void QmitkAdaptiveRegionGrowingToolGUI::SetDataStorage ( mitk::DataStorage dataStorage)
virtual

Method to set the default data storage.

Definition at line 149 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References m_DataStorage.

void QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode ( mitk::DataNode node)
void QmitkAdaptiveRegionGrowingToolGUI::SetLowerThresholdValue ( double  lowerThreshold)
protectedslot

Method to set the lower threshold.

This method is called, when the minimum threshold slider has changed

Parameters
lowerthreshold

Definition at line 943 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

Referenced by CreateConnections().

void QmitkAdaptiveRegionGrowingToolGUI::SetMultiWidget ( QmitkStdMultiWidget multiWidget)

Method to set the used multiwidget.

Parameters
multiWidget

Definition at line 154 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

References m_MultiWidget.

void QmitkAdaptiveRegionGrowingToolGUI::SetUpperThresholdValue ( double  upperThreshold)
protectedslot

Method to set upper threshold.

This Method is called, when the maximum threshold slider has changed

Parameters
upperthreshold

Definition at line 948 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

Referenced by CreateConnections().

void QmitkAdaptiveRegionGrowingToolGUI::UseVolumeRendering ( bool  on)
protectedslot

Method to switch the volume rendering on/off.

Parameters
on/off

Definition at line 936 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.

Referenced by CreateConnections().

Member Data Documentation

Ui::QmitkAdaptiveRegionGrowingToolGUIControls QmitkAdaptiveRegionGrowingToolGUI::m_Controls

The created GUI from the .ui-File. This Attribute is obligatory.

Definition at line 103 of file QmitkAdaptiveRegionGrowingToolGUI.h.

Referenced by ConfirmSegmentation(), CreateConnections(), Deactivated(), DecreaseSlider(), EnableControls(), IncreaseSlider(), OnPointAdded(), RunSegmentation(), and SetInputImageNode().

mitk::DataStorage* QmitkAdaptiveRegionGrowingToolGUI::m_DataStorage
protected
mitk::DataNode::Pointer QmitkAdaptiveRegionGrowingToolGUI::m_InputImageNode
protected
QmitkStdMultiWidget* QmitkAdaptiveRegionGrowingToolGUI::m_MultiWidget
protected

Definition at line 179 of file QmitkAdaptiveRegionGrowingToolGUI.h.

Referenced by SetMultiWidget().


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