Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkInteractionPositionEvent.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 mitkInteractionPositionEvent_h
14 #define mitkInteractionPositionEvent_h
15 
16 #include <itkObject.h>
17 #include <itkObjectFactory.h>
18 #include <mitkCommon.h>
19 #include <mitkInteractionEvent.h>
21 #include <MitkCoreExports.h>
22 #include <string>
23 
24 namespace mitk
25 {
41  {
42  public:
45 
51 
60 
66  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
67 
68  protected:
69  InteractionPositionEvent(BaseRenderer *baseRenderer, const Point2D &mousePosition);
71 
72  bool IsEqual(const InteractionEvent &) const override;
73 
74  private:
75  const Point2D m_PointerPosition;
76  };
77 
78 } /* namespace mitk */
79 
80 #endif
#define MITKCORE_EXPORT
Organizes the rendering process.
Base class for all interaction events in MITK.
Super class for all position-aware interaction events.
Point3D GetPositionInWorld() const
Get the pointer position converted to 3D world coordinates.
bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override
Check if the provided event is an InteractionPositionEvent or derived.
mitkClassMacro(InteractionPositionEvent, InteractionEvent)
mitkNewMacro2Param(Self, BaseRenderer *, const Point2D &)
Point2D GetPointerPositionOnScreen() const
Get the pointer position in display (screen) coordinates.
bool IsEqual(const InteractionEvent &) const override
InteractionPositionEvent(BaseRenderer *baseRenderer, const Point2D &mousePosition)
Find image slices visible on a given plane.