Go to the documentation of this file.00001 #ifndef MITK_WIIMOTEADDON_H_
00002 #define MITK_WIIMOTEADDON_H_
00003
00004 #include <mitkEventMapperAddon.h>
00005 #include <mitkInputDevicesExports.h>
00006
00007 #include "mitkWiiMoteIREvent.h"
00008 #include "mitkWiiMoteButtonEvent.h"
00009 #include "mitkWiiMoteCalibrationEvent.h"
00010
00011
00012 #include "mitkVector.h"
00013
00014 namespace mitk {
00015
00016 class WiiMoteThread;
00017
00025 class mitkInputDevices_EXPORT WiiMoteAddOn : public EventMapperAddOn
00026 {
00027
00028 public:
00029
00030 WiiMoteAddOn();
00031 ~WiiMoteAddOn();
00032
00033
00034 static WiiMoteAddOn* GetInstance();
00035
00039 void ForwardEvent(const mitk::StateEvent* e);
00040
00044 void ActivateWiiMotes();
00045
00049 void DeactivateWiiMotes();
00050
00055 void WiiMoteInput(const itk::EventObject& e);
00056
00061 void WiiMoteButtonPressed(const itk::EventObject& e);
00062
00067 void WiiMoteCalibrationInput(const itk::EventObject& e);
00068
00069 protected:
00070
00071 private:
00072
00073 WiiMoteThread* m_WiiMoteThread;
00074
00075 };
00076 }
00077
00078 #endif // MITK_WIIMOTEADDON_H_