Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkAdaptiveRegionGrowingTool_h_Included
14 #define mitkAdaptiveRegionGrowingTool_h_Included
15 
17 #include "mitkCommon.h"
18 #include "mitkDataStorage.h"
19 #include "mitkPointSet.h"
22 
23 namespace us
24 {
25  class ModuleResource;
26 }
27 
28 namespace mitk
29 {
40  {
41  public:
46  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
47 
48  bool CanHandle(BaseData *referenceData) const override;
49 
54  const char **GetXPM() const override;
55 
60  const char *GetName() const override;
61 
66  us::ModuleResource GetIconResource() const override;
67 
73  void Activated() override;
74 
80  void Deactivated() override;
81 
86  virtual DataNode::Pointer GetPointSetNode();
87 
92  mitk::DataNode *GetReferenceData();
93 
98  mitk::DataNode *GetWorkingData();
99 
104  mitk::DataStorage *GetDataStorage();
105 
106  void ConfirmSegmentation();
107 
108  protected:
112  AdaptiveRegionGrowingTool(); // purposely hidden
113 
117  ~AdaptiveRegionGrowingTool() override;
118 
119  private:
120  PointSet::Pointer m_PointSet;
121  SinglePointDataInteractor::Pointer m_SeedPointInteractor;
122  DataNode::Pointer m_PointSetNode;
123  };
124 
125 } // namespace
126 
127 #endif
Data management class that handles 'was created by' relations.
Base of all data objects.
Definition: mitkBaseData.h:37
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.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
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:64
Super-class that provides the functionality of a StateMachine to DataInteractors. ...