FlashpointSource.h

Go to the documentation of this file.
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 // CLASS: FlashpointSource
00025 //
00026 // This class creats a flashpoint device, and updates the tracker tree with
00027 // information from the flashpoint device whenever it is called upon.
00028 //--------------------------------------------------------------------------------
00029 class OPENTRACKER_API FlashpointSource : public Node {
00030 public:
00031 
00032   /* probe number */
00033   int number;
00034 
00035   /* Container for tracking data*/
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

Generated on Wed Feb 28 15:18:49 2007 for NaviTrack by  doxygen 1.4.6