00001 #ifndef _FLASHPOINT_SOURCE_H
00002 #define _FLASHPOINT_SOURCE_H
00003
00004 #ifndef PLATFORM_WIN32
00005
00006 #include <string>
00007 #include <math.h>
00008 #include <OpenTracker/dllinclude.h>
00009
00010 #define sign(a,b) a>b?1.0f:-1.0f
00011 #define MAXLENGTH 1000
00012
00013 using namespace std;
00014 namespace ot {
00015
00016 struct track_data {
00017 bool reliable;
00018 float POSITION[3];
00019 float ORIENTATION[4];
00020 long button;
00021 };
00022
00023
00024
00025
00026
00027
00028
00029 class OPENTRACKER_API FlashpointSource : public Node {
00030 public:
00031
00032
00033 int number;
00034
00035
00036 Event event;
00037 int changed;
00038
00039 FlashpointSource(int number_) : Node(), number(number_), changed(1) {
00040 }
00041 int isEventGenerator() {
00042 return 1;
00043 }
00044
00045 protected:
00046
00047 private:
00048
00049
00050 };
00051 }
00052 #endif
00053 #endif // _FLASHPOINT_SOURCE_H