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 00019 #ifndef POSITIONEVENT_H_HEADER_INCLUDED_C184F366 00020 #define POSITIONEVENT_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 00031 //## 00032 //## Stores display position of the mouse and 3D world position in mm. 00033 //## @ingroup Interaction 00034 class MITK_CORE_EXPORT PositionEvent : 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 PositionEvent(BaseRenderer* sender, int type, int button, int buttonState, int key, const Point2D& displPosition, const Point3D& worldPosition); 00045 }; 00046 00047 } // namespace mitk 00048 00049 00050 00051 #endif /* POSITIONEVENT_H_HEADER_INCLUDED_C184F366 */