Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef MITKINTERACTIONPOSITIONEVENT_H_
18 #define MITKINTERACTIONPOSITIONEVENT_H_
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "mitkCommon.h"
23 #include "mitkInteractionEvent.h"
25 #include <MitkCoreExports.h>
26 #include <string>
27 
28 namespace mitk
29 {
41  {
42  public:
45 
46  Point2D GetPointerPositionOnScreen() const;
48 
49  virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
50 
51  protected:
52  InteractionPositionEvent(BaseRenderer *baseRenderer, const Point2D &mousePosition);
53  virtual ~InteractionPositionEvent();
54 
55  virtual bool IsEqual(const InteractionEvent &) const override;
56 
57  private:
58  const Point2D m_PointerPosition;
59  };
60 
61 } /* namespace mitk */
62 
63 #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:89
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
static std::string GetPositionInWorld(mitk::InteractionEvent *event)
GetPosition Return World Position as String.