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

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

 ~QmitkAdaptiveRegionGrowingToolGUI () override
 Destructor. More...
 
void OnPointAdded ()
 Method to calculate parameter settings, when a seed point is set. More...
 
mitk::Image::ConstPointer GetImageByTimePoint (const mitk::Image *image, mitk::TimePointType timePoint) const
 Method to extract a 3D image based on a given time point that can be taken from the SliceNavigationController. More...
 
- Protected Member Functions inherited from QmitkToolGUI
virtual void BusyStateChanged (bool)
 

Protected Attributes

mitk::AdaptiveRegionGrowingTool::Pointer m_RegionGrow3DTool
 
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 40 of file QmitkAdaptiveRegionGrowingToolGUI.h.

Constructor & Destructor Documentation

◆ QmitkAdaptiveRegionGrowingToolGUI()

QmitkAdaptiveRegionGrowingToolGUI::QmitkAdaptiveRegionGrowingToolGUI ( QWidget *  parent = nullptr)

◆ ~QmitkAdaptiveRegionGrowingToolGUI()

QmitkAdaptiveRegionGrowingToolGUI::~QmitkAdaptiveRegionGrowingToolGUI ( )
overrideprotected

Destructor.

Member Function Documentation

◆ Activated()

void QmitkAdaptiveRegionGrowingToolGUI::Activated ( )

◆ ChangeLevelWindow

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
newValuenew value

◆ Clone()

Pointer QmitkAdaptiveRegionGrowingToolGUI::Clone ( ) const

◆ ConfirmSegmentation

void QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation ( )
protectedslot

Method to confirm the preview segmentation.

This method is called, when the "Confirm Segmentation" button is clicked.

◆ CreateConnections()

virtual void QmitkAdaptiveRegionGrowingToolGUI::CreateConnections ( )
virtual

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

◆ Deactivated()

void QmitkAdaptiveRegionGrowingToolGUI::Deactivated ( )

◆ DecreaseSlider

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

◆ EnableControls()

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
enableenable/disable controls

◆ GetImageByTimePoint()

mitk::Image::ConstPointer QmitkAdaptiveRegionGrowingToolGUI::GetImageByTimePoint ( const mitk::Image image,
mitk::TimePointType  timePoint 
) const
protected

Method to extract a 3D image based on a given time point that can be taken from the SliceNavigationController.

This ensures that the seed point is taken from the current selected 3D image

◆ IncreaseSlider

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

◆ mitkClassMacro()

QmitkAdaptiveRegionGrowingToolGUI::mitkClassMacro ( QmitkAdaptiveRegionGrowingToolGUI  ,
QmitkToolGUI   
)

mitkClassMacro

◆ New()

static Pointer QmitkAdaptiveRegionGrowingToolGUI::New ( )
static

◆ OnNewToolAssociated

void QmitkAdaptiveRegionGrowingToolGUI::OnNewToolAssociated ( mitk::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

◆ OnPointAdded()

void QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded ( )
protected

Method to calculate parameter settings, when a seed point is set.

◆ RunSegmentation

void QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation ( )
protectedslot

Method to start the segmentation.

This method is called, when the "Start Segmentation" button is clicked.

◆ SetDataNodeNames()

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
maskedSegmentation

◆ SetDataStorage()

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

Method to set the default data storage.

◆ SetInputImageNode()

void QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode ( mitk::DataNode node)

Method to set the input image node.

Parameters
nodedata node

◆ SetLowerThresholdValue

void QmitkAdaptiveRegionGrowingToolGUI::SetLowerThresholdValue ( double  lowerThreshold)
protectedslot

Method to set the lower threshold.

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

Parameters
lowerThresholdlower threshold

◆ SetUpperThresholdValue

void QmitkAdaptiveRegionGrowingToolGUI::SetUpperThresholdValue ( double  upperThreshold)
protectedslot

Method to set upper threshold.

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

Parameters
upperThresholdupper threshold

◆ UseVolumeRendering

void QmitkAdaptiveRegionGrowingToolGUI::UseVolumeRendering ( bool  on)
protectedslot

Method to switch the volume rendering on/off.

Parameters
on

Member Data Documentation

◆ m_Controls

Ui::QmitkAdaptiveRegionGrowingToolGUIControls QmitkAdaptiveRegionGrowingToolGUI::m_Controls

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

Definition at line 95 of file QmitkAdaptiveRegionGrowingToolGUI.h.

◆ m_DataStorage

mitk::DataStorage* QmitkAdaptiveRegionGrowingToolGUI::m_DataStorage
protected

Definition at line 170 of file QmitkAdaptiveRegionGrowingToolGUI.h.

◆ m_InputImageNode

mitk::DataNode::Pointer QmitkAdaptiveRegionGrowingToolGUI::m_InputImageNode
protected

Definition at line 172 of file QmitkAdaptiveRegionGrowingToolGUI.h.

◆ m_RegionGrow3DTool

mitk::AdaptiveRegionGrowingTool::Pointer QmitkAdaptiveRegionGrowingToolGUI::m_RegionGrow3DTool
protected

Definition at line 165 of file QmitkAdaptiveRegionGrowingToolGUI.h.


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