Medical Imaging Interaction Toolkit  2018.4.99-c670e289
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);
47  itkCloneMacro(Self);
48 
49  bool CanHandle(const BaseData* referenceData, const BaseData* workingData) const override;
50 
55  const char **GetXPM() const override;
56 
61  const char *GetName() const override;
62 
67  us::ModuleResource GetIconResource() const override;
68 
74  void Activated() override;
75 
81  void Deactivated() override;
82 
87  virtual DataNode::Pointer GetPointSetNode();
88 
93  mitk::DataNode *GetReferenceData();
94 
99  mitk::DataNode *GetWorkingData();
100 
105  mitk::DataStorage *GetDataStorage();
106 
107  void ConfirmSegmentation();
108 
109  protected:
113  AdaptiveRegionGrowingTool(); // purposely hidden
114 
118  ~AdaptiveRegionGrowingTool() override;
119 
120  private:
121  PointSet::Pointer m_PointSet;
122  SinglePointDataInteractor::Pointer m_SeedPointInteractor;
123  DataNode::Pointer m_PointSetNode;
124  };
125 
126 } // namespace
127 
128 #endif
Data management class that handles 'was created by' relations.
Base of all data objects.
Definition: mitkBaseData.h:42
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...
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57
Super-class that provides the functionality of a StateMachine to DataInteractors. ...