00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12 Mai 2009) $ 00006 Version: $Revision: 17179 $ 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 00019 #ifndef WheelEvent_H_HEADER_INCLUDED_C184F366 00020 #define WheelEvent_H_HEADER_INCLUDED_C184F366 00021 00022 #include "mitkCommon.h" 00023 #include "mitkDisplayPositionEvent.h" 00024 #include "mitkVector.h" 00025 00026 00027 namespace mitk { 00028 00029 //##Documentation 00030 //## @brief Event that stores coordinates and rotation on mouse wheel events 00031 //## 00032 //## Stores display position of the mouse and 3D world position in mm. 00033 //## @ingroup Interaction 00034 class MITK_CORE_EXPORT WheelEvent : public DisplayPositionEvent 00035 { 00036 public: 00037 //##Documentation 00038 //## @brief Constructor with all necessary arguments. 00039 //## 00040 //## @param sender: the widget, that caused that event, so that it can be asked for worldCoordinates. changed later to a focus 00041 //## @param type, button, buttonState, key: information from the Event 00042 //## @param displPosition: the 2D Position e.g. from the mouse 00043 //## @param worldPosition: the 3D position e.g. from a picking 00044 //## @param delta: the movement of the mousewheel 00045 WheelEvent(BaseRenderer* sender, int type, int button, int buttonState, int key, const Point2D& displPosition, int delta); 00046 00047 int GetDelta() const; 00048 protected: 00049 int m_Delta; 00050 }; 00051 00052 } // namespace mitk 00053 00054 00055 00056 #endif /* WheelEvent_H_HEADER_INCLUDED_C184F366 */