Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
QmitkAdaptiveRegionGrowingToolGUI. More...
#include <QmitkAdaptiveRegionGrowingToolGUI.h>
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 |
QmitkStdMultiWidget * | m_MultiWidget |
mitk::DataStorage * | m_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 *) |
QmitkAdaptiveRegionGrowingToolGUI.
Adaptive Region Growing View class of the segmentation.
Definition at line 45 of file QmitkAdaptiveRegionGrowingToolGUI.h.
QmitkAdaptiveRegionGrowingToolGUI::QmitkAdaptiveRegionGrowingToolGUI | ( | QWidget * | parent = 0 | ) |
Definition at line 49 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
|
protectedvirtual |
Destructor.
Definition at line 75 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References m_RegionGrow3DTool.
void QmitkAdaptiveRegionGrowingToolGUI::Activated | ( | ) |
Definition at line 967 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
|
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
new | value |
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 |
|
protectedslot |
Method to confirm the preview segmentation.
This method is called, when the "Confirm Segmentation" button is clicked.
Definition at line 691 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References AccessByItk, QmitkConfirmSegmentationDialog::CANCEL_SEGMENTATION, QmitkConfirmSegmentationDialog::CREATE_NEW_SEGMENTATION, mitk::DataStorage::GetNamedNode(), mitk::DataStorage::GetNamedObject(), m_Controls, m_DataStorage, m_InputImageNode, m_RegionGrow3DTool, QmitkConfirmSegmentationDialog::OVERWRITE_SEGMENTATION, and QmitkConfirmSegmentationDialog::SetSegmentationName().
Referenced by 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 | ( | ) |
Definition at line 953 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References mitk::DataStorage::GetNamedNode(), m_Controls, and m_DataStorage.
|
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.
enable/disable | controls |
Definition at line 822 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References mitk::DataStorage::GetNamedNode(), m_Controls, m_DataStorage, and m_RegionGrow3DTool.
Referenced by OnNewToolAssociated(), and RunSegmentation().
|
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 |
|
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().
|
protected |
Method to calculate parameter settings, when a seed point is set.
Definition at line 182 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References AccessPixel(), mitk::FastSinglePixelAccess(), mitk::Image::GetChannelDescriptor(), mitk::DataNode::GetData(), mitk::BaseData::GetGeometry(), mitk::BaseRenderer::GetInstance(), mitk::ChannelDescriptor::GetPixelType(), mitk::BaseRenderer::GetRenderWindowByName(), mitk::ImageStatisticsHolder::GetScalarValueMax(), mitk::ImageStatisticsHolder::GetScalarValueMin(), mitk::Image::GetStatistics(), mitk::BaseGeometry::IsIndexInside(), mitk::BaseGeometry::IsInside(), m_Controls, m_InputImageNode, m_RegionGrow3DTool, max(), min(), mitkPixelTypeMultiplex3, mitkPixelTypeMultiplex4, and mitk::BaseGeometry::WorldToIndex().
Referenced by OnNewToolAssociated().
|
protectedslot |
Method to start the segmentation.
This method is called, when the "Start Segmentation" button is clicked.
Definition at line 329 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References AccessByItk_2, EnableControls(), mitk::BaseData::GetGeometry(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderWindowByName(), mitk::BaseRenderer::GetTimeStep(), m_Controls, m_InputImageNode, m_RegionGrow3DTool, and mitk::ImageTimeSelector::New().
Referenced by CreateConnections().
void QmitkAdaptiveRegionGrowingToolGUI::SetDataNodeNames | ( | std::string | labledSegmentation, |
std::string | binaryImage, | ||
std::string | surface, | ||
std::string | maskedSegmentation | ||
) |
Method to set the name of a data node.
labledSegmentation | Name of the labeled segmentation |
binaryImage | Name of the binary image |
surface | Name of the surface |
Definition at line 138 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
|
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 | ) |
Method to set the input image node.
data | node |
Definition at line 159 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References mitk::ImageStatisticsHolder::GetScalarValueMax(), mitk::ImageStatisticsHolder::GetScalarValueMin(), mitk::Image::GetStatistics(), m_Controls, m_InputImageNode, max(), and min().
Referenced by OnNewToolAssociated().
|
protectedslot |
Method to set the lower threshold.
This method is called, when the minimum threshold slider has changed
lower | threshold |
Definition at line 943 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
Referenced by CreateConnections().
void QmitkAdaptiveRegionGrowingToolGUI::SetMultiWidget | ( | QmitkStdMultiWidget * | multiWidget | ) |
Method to set the used multiwidget.
multiWidget |
Definition at line 154 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
References m_MultiWidget.
|
protectedslot |
Method to set upper threshold.
This Method is called, when the maximum threshold slider has changed
upper | threshold |
Definition at line 948 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
Referenced by CreateConnections().
|
protectedslot |
Method to switch the volume rendering on/off.
on/off |
Definition at line 936 of file QmitkAdaptiveRegionGrowingToolGUI.cpp.
Referenced by CreateConnections().
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().
|
protected |
Definition at line 181 of file QmitkAdaptiveRegionGrowingToolGUI.h.
Referenced by ChangeLevelWindow(), ConfirmSegmentation(), Deactivated(), EnableControls(), OnNewToolAssociated(), and SetDataStorage().
|
protected |
Definition at line 183 of file QmitkAdaptiveRegionGrowingToolGUI.h.
Referenced by ConfirmSegmentation(), OnPointAdded(), RunSegmentation(), and SetInputImageNode().
|
protected |
Definition at line 179 of file QmitkAdaptiveRegionGrowingToolGUI.h.
Referenced by SetMultiWidget().
|
protected |
Definition at line 173 of file QmitkAdaptiveRegionGrowingToolGUI.h.
Referenced by ConfirmSegmentation(), EnableControls(), OnNewToolAssociated(), OnPointAdded(), RunSegmentation(), and ~QmitkAdaptiveRegionGrowingToolGUI().