00001 00016 #ifndef TRACKERDEVICE_H 00017 #define TRACKERDEVICE_H 00018 00019 #include "IS3DCommon.H" 00020 00021 class TrackerDevice 00022 { 00023 public: 00024 00025 virtual int getNumTrackers() = 0; 00026 virtual std::string getEventName(int trackerNumber) = 0; 00027 virtual int getTrackerNumber(std::string trackerEventName) { 00028 for (int i=0;i<getNumTrackers();i++) { 00029 if (getEventName(i) == trackerEventName) 00030 return i; 00031 } 00032 return -1; 00033 } 00034 00035 virtual void setDeviceCalibrationSample(CoordinateFrame sample) = 0; 00036 virtual void setTrackerOffsetCalibrationSample(int trackerNum, CoordinateFrame sample) = 0; 00037 00038 virtual CoordinateFrame getDeviceCalibrationSample() = 0; 00039 virtual CoordinateFrame getTrackerOffsetCalibrationSample(int trackerNum) = 0; 00040 00041 virtual void setReportDeviceRegisteredData(bool b) = 0; 00042 virtual void setReportTrackerRegisteredData(bool b) = 0; 00043 00044 virtual bool getReportDeviceRegisteredData() = 0; 00045 virtual bool getReportTrackerRegisteredData() = 0; 00046 00047 }; 00048 00049 00050 #endif