Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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;
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 /* MITKINTERACTIONPOSITIONEVENT_H_ */
Super class for all position events.
#define MITKCORE_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
static std::string GetPositionInWorld(mitk::InteractionEvent *event)
GetPosition Return World Position as String.