Medical Imaging Interaction Toolkit  2023.12.00
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 (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
14 #define mitkContourModelLiveWireInteractor_h
15 
16 #include "mitkCommon.h"
19 
21 
22 namespace mitk
23 {
38  {
39  public:
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
44  virtual void SetWorkingImage(mitk::Image *_arg);
45 
46  void ConnectActionsAndFunctions() override;
47 
48  protected:
51 
53  bool OnCheckPointClick(const InteractionEvent *interactionEvent) override;
54 
56  void OnMovePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
58  void OnAddPoint(StateMachineAction*, InteractionEvent* interactionEvent) override;
60  void OnDeletePoint(StateMachineAction *, InteractionEvent *interactionEvent) override;
62  void OnFinishEditing(StateMachineAction *, InteractionEvent *interactionEvent) override;
63 
65  void SplitContourFromSelectedVertex(mitk::ContourModel *srcContour,
66  const mitk::ContourModel::VertexType *nextPoint,
67  const mitk::ContourModel::VertexType *previousPoint,
68  int timestep);
70  void SetRepulsivePoints(const mitk::ContourModel::VertexType *nextPoint,
71  mitk::ContourModel *contour,
72  int timestep);
73 
76 
79 
82 
83  std::vector<itk::Index<2>> m_ContourBeingModified;
84 
87  };
88 
89 } // namespace mitk
90 
91 #endif
mitk::ContourModelLiveWireInteractor::m_ContourLeft
mitk::ContourModel::Pointer m_ContourLeft
Definition: mitkContourModelLiveWireInteractor.h:85
mitk::ContourModelLiveWireInteractor::m_ContourBeingModified
std::vector< itk::Index< 2 > > m_ContourBeingModified
Definition: mitkContourModelLiveWireInteractor.h:83
mitk::ContourElement::ContourModelVertex
Represents a single vertex of a contour.
Definition: mitkContourElement.h:47
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitk::ContourModelLiveWireInteractor::m_NextActiveVertexUpIter
mitk::ContourModel::VertexIterator m_NextActiveVertexUpIter
Definition: mitkContourModelLiveWireInteractor.h:81
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitkContourModelInteractor.h
itk::SmartPointer< Self >
mitk::ContourModelLiveWireInteractor
Definition: mitkContourModelLiveWireInteractor.h:37
mitk::ContourModelInteractor
Definition: mitkContourModelInteractor.h:34
mitk::ContourModelLiveWireInteractor::m_LiveWireFilter
mitk::ImageLiveWireContourModelFilter::Pointer m_LiveWireFilter
Definition: mitkContourModelLiveWireInteractor.h:74
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ContourModelLiveWireInteractor::m_NextActiveVertexDownIter
mitk::ContourModel::VertexIterator m_NextActiveVertexDownIter
Definition: mitkContourModelLiveWireInteractor.h:80
mitk::ContourModelLiveWireInteractor::m_ContourRight
mitk::ContourModel::Pointer m_ContourRight
Definition: mitkContourModelLiveWireInteractor.h:86
mitk::Point< ScalarType, 3 >
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition: mitkContourModel.h:47
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::ContourModelLiveWireInteractor::m_NextActiveVertexUp
mitk::Point3D m_NextActiveVertexUp
Definition: mitkContourModelLiveWireInteractor.h:78
mitk::ContourModelLiveWireInteractor::m_NextActiveVertexDown
mitk::Point3D m_NextActiveVertexDown
Definition: mitkContourModelLiveWireInteractor.h:77
mitkImageLiveWireContourModelFilter.h
mitk::ContourModelLiveWireInteractor::m_WorkingSlice
mitk::Image::Pointer m_WorkingSlice
Definition: mitkContourModelLiveWireInteractor.h:75
mitk::StateMachineAction
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Definition: mitkStateMachineAction.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h
mitk::ContourModel::VertexIterator
ContourElement::VertexIterator VertexIterator
Definition: mitkContourModel.h:59
mitk::DataInteractor
Base class from with interactors that handle DataNodes are to be derived.
Definition: mitkDataInteractor.h:48