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 EVENTDESCRIPTION_H_HEADER_INCLUDED_C188FC4D 00020 #define EVENTDESCRIPTION_H_HEADER_INCLUDED_C188FC4D 00021 00022 #include "mitkCommon.h" 00023 #include "mitkEvent.h" 00024 #include <string> 00025 00026 namespace mitk { 00027 00028 //##Documentation 00029 //## @brief adds additional Information (Name and EventID) to an Event 00030 //## 00031 //## A name and an ID is added to the information of an event, so the event can 00032 //## be processed futher on. 00033 //## @ingroup Interaction 00034 class MITK_CORE_EXPORT EventDescription : public Event 00035 { 00036 public: 00037 EventDescription(int type, int button, int buttonState,int key, std::string name, int id); 00038 00039 std::string GetName() const; 00040 00041 int GetId() const; 00042 00043 private: 00044 std::string m_Name; 00045 00046 int m_Id; 00047 }; 00048 00049 } // namespace mitk 00050 00051 00052 00053 #endif /* EVENTDESCRIPTION_H_HEADER_INCLUDED_C188FC4D */