Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkEventAdapter.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 QMITKEVENTADAPTER_H_
18 #define QMITKEVENTADAPTER_H_
19 
20 #include <QMouseEvent>
21 #include <QKeyEvent>
22 #include <QWheelEvent>
23 #include <mitkKeyEvent.h>
24 #include <mitkWheelEvent.h>
25 #include <mitkDisplayPositionEvent.h>
26 
35 {
36 public:
37 
38  static mitk::MouseEvent AdaptMouseEvent(mitk::BaseRenderer* sender, QMouseEvent* mouseEvent);
39  static mitk::WheelEvent AdaptWheelEvent(mitk::BaseRenderer* sender, QWheelEvent* wheelEvent);
40  static mitk::KeyEvent AdaptKeyEvent(mitk::BaseRenderer* sender, QKeyEvent* keyEvent, const QPoint& point);
41 };
42 
43 #endif /*QMITKEVENTADAPTER_H_*/
Organizes the rendering process.
static mitk::WheelEvent AdaptWheelEvent(mitk::BaseRenderer *sender, QWheelEvent *wheelEvent)
static mitk::MouseEvent AdaptMouseEvent(mitk::BaseRenderer *sender, QMouseEvent *mouseEvent)
static mitk::KeyEvent AdaptKeyEvent(mitk::BaseRenderer *sender, QKeyEvent *keyEvent, const QPoint &point)