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 STATEEVENT_H_HEADER_INCLUDED_C188E5BF 00020 #define STATEEVENT_H_HEADER_INCLUDED_C188E5BF 00021 00022 #include "mitkCommon.h" 00023 00024 namespace mitk { 00025 00026 class Event; 00027 //##Documentation 00028 //## @brief Class holding an mitk-event and the mitk-event-number for a statechange 00029 //## 00030 //## Holds an event, with which a statechange of a statemachine shall be 00031 //## done. iD represents the mitk-event-number, event all further necessary information like 00032 //## the MousePosition or a key. 00033 //## Not derived from event to hold only one object stateevent, pass it to the statemachines, 00034 //## set the next event and reuse this object 00035 //## @ingroup Interaction 00036 class MITK_CORE_EXPORT StateEvent 00037 { 00038 public: 00039 StateEvent(); 00040 //##Documentation 00041 //## @brief Constructor 00042 //## @param id: mitk internal EventID 00043 //## @param event: the information about the appeared event 00044 StateEvent(int id, Event const* event = NULL ); 00045 00046 ~StateEvent(); 00047 00048 //##Documentation 00049 //## @brief to set the params and reuse an object 00050 void Set(int id, Event const* event); 00051 00052 int GetId() const; 00053 00054 mitk::Event const* GetEvent() const; 00055 00056 private: 00057 int m_Id; 00058 00059 mitk::Event const* m_Event; 00060 00061 }; 00062 00063 } // namespace mitk 00064 00065 00066 00067 #endif /* STATEEVENT_H_HEADER_INCLUDED_C188E5BF */