Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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  itkCloneMacro(Self)
42 
43  virtual void SetEditingContourModelNode(mitk::DataNode *_arg);
44 
45  virtual void SetWorkingImage(mitk::Image *_arg);
46 
47  void ConnectActionsAndFunctions() override;
48 
49  protected:
52 
53  bool OnCheckPointClick(const InteractionEvent *interactionEvent) override;
54  bool IsHovering(const InteractionEvent *interactionEvent) override;
55 
56  void OnMovePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
57  void OnDeletePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
58  void OnFinishEditing(StateMachineAction *, InteractionEvent *interactionEvent) override;
59 
60  int SplitContourFromSelectedVertex(mitk::ContourModel *srcContour,
61  mitk::ContourModel *destContour,
62  bool fromSelectedUpwards,
63  int timestep);
64 
67 
70 
73 
74  std::vector<itk::Index<2>> m_ContourBeingModified;
75 
79  };
80 
81 } // namespace mitk
82 
83 #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
itk::SmartPointer< Self > Pointer
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:72
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64