Medical Imaging Interaction Toolkit  2018.04.99-c3229764
Medical Imaging Interaction Toolkit
mitkPickingTool.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 mitkPickingTool_h_Included
14 #define mitkPickingTool_h_Included
15 
16 #include "itkImage.h"
18 #include "mitkCommon.h"
19 #include "mitkDataStorage.h"
20 #include "mitkPointSet.h"
23 
24 namespace us
25 {
26  class ModuleResource;
27 }
28 
29 namespace mitk
30 {
44  {
45  public:
47  itkFactorylessNewMacro(Self);
48  itkCloneMacro(Self);
49 
50  const char **GetXPM() const override;
51  const char *GetName() const override;
52  us::ModuleResource GetIconResource() const override;
53 
54  void Activated() override;
55  void Deactivated() override;
56 
57  virtual DataNode::Pointer GetPointSetNode();
58 
59  mitk::DataNode *GetReferenceData();
60  mitk::DataNode *GetWorkingData();
61  mitk::DataStorage *GetDataStorage();
62 
63  void ConfirmSegmentation();
64 
65  protected:
66  PickingTool(); // purposely hidden
67  ~PickingTool() override;
68 
69  // Callback for point add event of PointSet
70  void OnPointAdded();
71 
72  // Observer id
74 
76 
77  // itk regrowing
78  template <typename TPixel, unsigned int VImageDimension>
79  void StartRegionGrowing(itk::Image<TPixel, VImageDimension> *itkImage,
80  mitk::BaseGeometry *imageGeometry,
81  mitk::PointSet::PointType seedPoint);
82 
83  // seed point
87 
89  };
90 
91 } // namespace
92 
93 #endif
mitk::DataNode::Pointer m_ResultNode
SinglePointDataInteractor::Pointer m_SeedPointInteractor
Data management class that handles &#39;was created by&#39; relations.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
DataNode::Pointer m_PointSetNode
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Superclass for tool that create a new segmentation without user interaction in render windows...
Extracts a single region from a segmentation image and creates a new image with same geometry of the ...
PointSet::Pointer m_PointSet
DataNode * m_WorkingData
BaseGeometry Describes the geometry of a data object.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57
Super-class that provides the functionality of a StateMachine to DataInteractors. ...