Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkInteractionPositionEvent.cpp
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 
18 #include <string>
19 
21  const mitk::Point2D &mousePosition)
22  : InteractionEvent(baseRenderer), m_PointerPosition(mousePosition)
23 {
24 }
25 
27 {
28  return m_PointerPosition;
29 }
30 
32 {
33  Point3D worldPos;
34  this->GetSender()->DisplayToWorld(m_PointerPosition, worldPos);
35  return worldPos;
36 }
37 
39 {
40  return Superclass::IsEqual(other);
41 }
42 
44 {
45 }
46 
48 {
49  return (dynamic_cast<InteractionPositionEvent *>(baseClass.GetPointer()) != NULL);
50 }
Organizes the rendering process.
virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override
InteractionPositionEvent(BaseRenderer *baseRenderer, const Point2D &mousePosition)
virtual bool IsEqual(const InteractionEvent &) const override