ALBA
albaDeviceTrackerWIIMote.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaDeviceTrackerWIIMote
5 Authors: Daniele Giunchi
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaDeviceTrackerWIIMote_h
18#define __albaDeviceTrackerWIIMote_h
19
21
22#include "Utils.h"
23#include "Wiimote.h"
24
25#include <vector>
26using namespace std;
27//----------------------------------------------------------------------------
28// forward declarations :
29//----------------------------------------------------------------------------
30class albaMatrix;
31class Wiimote;
32
39{
40public:
42
43protected:
46
49
51 virtual int InternalInitialize();
53 virtual void InternalShutdown();
54
56 void SetTranlationAndRotation(MotionData p);
57
59 vector<Wiimote> m_Wiimotes;
60
61
64
65 double m_Angle;
66
67 vector<MotionData> m_LastPositions;
68
69
70private:
71 albaDeviceTrackerWIIMote(const albaDeviceTrackerWIIMote&); // Not implemented.
72 void operator=(const albaDeviceTrackerWIIMote&); // Not implemented.
73};
74
75#endif
76
Generic spatial position tracking device.
class supporting device WII Mote from Nintendo WII Console.
albaTypeMacro(albaDeviceTrackerWIIMote, albaDeviceButtonsPadTracker)
virtual int InternalInitialize()
initialize P5DLL
virtual void InternalShutdown()
close P5DLL
int InternalUpdate()
performs polling of P5 glove
void SetTranlationAndRotation(MotionData p)
virtual ~albaDeviceTrackerWIIMote()
vector< MotionData > m_LastPositions
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44