Medical Imaging Interaction Toolkit  2018.4.99-c670e289
Medical Imaging Interaction Toolkit
mitkContourModelLiveWireInteractor.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 mitkContourModelLiveWireInteractor_h_Included
14 #define mitkContourModelLiveWireInteractor_h_Included
15 
16 #include "mitkCommon.h"
19 
21 
22 namespace mitk
23 {
38  {
39  public:
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
44  virtual void SetEditingContourModelNode(mitk::DataNode *_arg);
45 
46  virtual void SetWorkingImage(mitk::Image *_arg);
47 
48  void ConnectActionsAndFunctions() override;
49 
50  protected:
53 
54  bool OnCheckPointClick(const InteractionEvent *interactionEvent) override;
55  bool IsHovering(const InteractionEvent *interactionEvent) override;
56 
57  void OnMovePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
58  void OnDeletePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
59  void OnFinishEditing(StateMachineAction *, InteractionEvent *interactionEvent) override;
60 
61  int SplitContourFromSelectedVertex(mitk::ContourModel *srcContour,
62  mitk::ContourModel *destContour,
63  bool fromSelectedUpwards,
64  int timestep);
65 
68 
71 
74 
75  std::vector<itk::Index<2>> m_ContourBeingModified;
76 
80  };
81 
82 } // namespace mitk
83 
84 #endif // mitkContourModelLiveWireInteractor_h_Included
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
mitk::ContourModel::VertexIterator m_NextActiveVertexUpIter
mitk::ContourElement::VertexIterator VertexIterator
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::ImageLiveWireContourModelFilter::Pointer m_LiveWireFilter
Base class from with interactors that handle DataNodes are to be derived.
mitk::ContourModel::VertexIterator m_NextActiveVertexDownIter
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:73
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57