00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QMITKEVENTADAPTER_H_ 00019 #define QMITKEVENTADAPTER_H_ 00020 00021 #include <QMouseEvent> 00022 #include <QKeyEvent> 00023 #include <mitkKeyEvent.h> 00024 #include <mitkWheelEvent.h> 00025 #include <mitkDisplayPositionEvent.h> 00026 00027 class QMITK_EXPORT QmitkEventAdapter 00028 { 00029 public: 00030 00031 static mitk::MouseEvent AdaptMouseEvent(mitk::BaseRenderer* sender, QMouseEvent* mouseEvent); 00032 static mitk::WheelEvent AdaptWheelEvent(mitk::BaseRenderer* sender, QWheelEvent* wheelEvent); 00033 static mitk::KeyEvent AdaptKeyEvent(mitk::BaseRenderer* sender, QKeyEvent* keyEvent, const QPoint& point); 00034 }; 00035 00036 #endif /*QMITKEVENTADAPTER_H_*/