Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkClippingPlaneInteractor3D.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 mitkClippingPlaneInteractor3D_h
14 #define mitkClippingPlaneInteractor3D_h
15 
17 #include <mitkBaseRenderer.h>
18 #include <mitkDataInteractor.h>
19 #include <mitkGeometry3D.h>
20 
21 namespace mitk
22 {
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
46  void ConnectActionsAndFunctions() override;
50  void DataNodeChanged() override;
51 
55  virtual bool CheckOverObject(const InteractionEvent *);
62 
63  private:
64  void ColorizeSurface(BaseRenderer::Pointer renderer, double scalar = 0.0);
65 
66  double m_InitialPickedWorldPoint[4];
67  Point2D m_InitialPickedDisplayPoint;
68 
69  Geometry3D::Pointer m_OriginalGeometry;
70 
71  Vector3D m_ObjectNormal;
72  };
73 }
74 #endif
#define MITKDATATYPESEXT_EXPORT
Specialized interactor for translating and rotating clipping planes in 3D.
virtual void InitTranslate(StateMachineAction *, InteractionEvent *)
void ConnectActionsAndFunctions() override
mitkClassMacro(ClippingPlaneInteractor3D, DataInteractor)
virtual void RotateObject(StateMachineAction *, InteractionEvent *)
virtual bool CheckOverObject(const InteractionEvent *)
virtual void SelectObject(StateMachineAction *, InteractionEvent *)
virtual void DeselectObject(StateMachineAction *, InteractionEvent *)
virtual void TranslateObject(StateMachineAction *, InteractionEvent *)
virtual void InitRotate(StateMachineAction *, InteractionEvent *)
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.
Find image slices visible on a given plane.