Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkAdaptiveRegionGrowingTool.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkAdaptiveRegionGrowingTool_h_Included
18 #define mitkAdaptiveRegionGrowingTool_h_Included
19 
21 #include "mitkCommon.h"
22 #include "mitkDataStorage.h"
23 #include "mitkPointSet.h"
26 
27 namespace us
28 {
29  class ModuleResource;
30 }
31 
32 namespace mitk
33 {
44  {
45  public:
50  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
51 
52  bool CanHandle(BaseData *referenceData) const override;
53 
58  virtual const char **GetXPM() const override;
59 
64  virtual const char *GetName() const override;
65 
70  us::ModuleResource GetIconResource() const override;
71 
77  virtual void Activated() override;
78 
84  virtual void Deactivated() override;
85 
90  virtual DataNode::Pointer GetPointSetNode();
91 
96  mitk::DataNode *GetReferenceData();
97 
102  mitk::DataNode *GetWorkingData();
103 
109 
110  void ConfirmSegmentation();
111 
112  protected:
116  AdaptiveRegionGrowingTool(); // purposely hidden
117 
121  virtual ~AdaptiveRegionGrowingTool();
122 
123  private:
124  PointSet::Pointer m_PointSet;
125  SinglePointDataInteractor::Pointer m_SeedPointInteractor;
126  DataNode::Pointer m_PointSetNode;
127  };
128 
129 } // namespace
130 
131 #endif
Data management class that handles 'was created by' relations.
Base of all data objects.
Definition: mitkBaseData.h:39
Dummy Tool for AdaptiveRegionGrowingToolGUI to get Tool functionality for AdaptiveRegionGrowing. The actual logic is implemented in QmitkAdaptiveRegionGrowingToolGUI.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::DataStorage::Pointer GetDataStorage()
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Superclass for tool that create a new segmentation without user interaction in render windows...
static std::string GetName(std::string fileName, std::string suffix)
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66
Super-class that provides the functionality of a StateMachine to DataInteractors. ...