Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 {
37  {
38  public:
41 
42  Point2D GetPointerPositionOnScreen() const;
43  Point3D GetPositionInWorld() const;
44 
45  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
46 
47  protected:
48  InteractionPositionEvent(BaseRenderer *baseRenderer, const Point2D &mousePosition);
49  ~InteractionPositionEvent() override;
50 
51  bool IsEqual(const InteractionEvent &) const override;
52 
53  private:
54  const Point2D m_PointerPosition;
55  };
56 
57 } /* namespace mitk */
58 
59 #endif
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitkInteractionEvent.h
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::InteractionPositionEvent
Super class for all position events.
Definition: mitkInteractionPositionEvent.h:36
MitkCoreExports.h
mitk::Point< ScalarType, 2 >
mitkCommon.h
mitkInteractionEventConst.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15