Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSurfaceDeformationDataInteractor3D.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 mitkSurfaceDeformationDataInteractor3D_h
14 #define mitkSurfaceDeformationDataInteractor3D_h
15 
17 #include <mitkDataInteractor.h>
18 #include <mitkSurface.h>
19 
20 namespace mitk
21 {
33  {
34  public:
36  itkFactorylessNewMacro(Self);
37  itkCloneMacro(Self);
38 
45  void ConnectActionsAndFunctions() override;
49  void DataNodeChanged() override;
50 
54  virtual bool CheckOverObject(const InteractionEvent *);
60 
61  enum
62  {
64  COLORIZATION_CONSTANT
65  };
66 
67  private:
68  void ColorizeSurface(
69  vtkPolyData *polyData, int timeStep, const Point3D &pickedPoint, int mode, double scalar = 0.0);
70 
71  double m_InitialPickedWorldPoint[4];
72  Point3D m_InitialPickedPoint;
73  Point3D m_SurfaceColorizationCenter;
74 
75  Surface *m_Surface;
76  vtkPolyData *m_OriginalPolyData;
77 
78  double m_GaussSigma;
79  Vector3D m_ObjectNormal;
80  };
81 }
82 #endif
#define MITKDATATYPESEXT_EXPORT
Base class for interactors that operate on DataNodes.
Base class for all interaction events in MITK.
Represents an action that is executed after a certain event in the state machine mechanism.
Interactive deformation of surface meshes in 3D render windows.
virtual void ScaleRadius(StateMachineAction *, InteractionEvent *)
mitkClassMacro(SurfaceDeformationDataInteractor3D, DataInteractor)
virtual void InitDeformation(StateMachineAction *, InteractionEvent *)
virtual void DeselectObject(StateMachineAction *, InteractionEvent *)
virtual bool CheckOverObject(const InteractionEvent *)
virtual void DeformObject(StateMachineAction *, InteractionEvent *)
virtual void SelectObject(StateMachineAction *, InteractionEvent *)
Data class for storing polygonal surfaces (vtkPolyData).
Definition: mitkSurface.h:37
Find image slices visible on a given plane.