Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkContourModelLiveWireInteractor_h_Included
18 #define mitkContourModelLiveWireInteractor_h_Included
19 
20 #include "mitkCommon.h"
23 
25 
26 namespace mitk
27 {
42  {
43  public:
45  itkCloneMacro(Self)
46 
47  virtual void SetEditingContourModelNode(mitk::DataNode *_arg);
48 
49  virtual void SetWorkingImage(mitk::Image *_arg);
50 
51  virtual void ConnectActionsAndFunctions() override;
52 
53  protected:
56 
57  virtual bool OnCheckPointClick(const InteractionEvent *interactionEvent) override;
58  virtual bool IsHovering(const InteractionEvent *interactionEvent) override;
59 
60  virtual void OnMovePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
61  virtual void OnDeletePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
62  virtual void OnFinishEditing(StateMachineAction *, InteractionEvent *interactionEvent) override;
63 
64  int SplitContourFromSelectedVertex(mitk::ContourModel *srcContour,
65  mitk::ContourModel *destContour,
66  bool fromSelectedUpwards,
67  int timestep);
68 
71 
74 
77 
78  std::vector<itk::Index<2>> m_ContourBeingModified;
79 
83  };
84 
85 } // namespace mitk
86 
87 #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...
virtual void ConnectActionsAndFunctions() override
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:42
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66