7 #ifndef __vtkPlusPhidgetSpatialTracker_h 8 #define __vtkPlusPhidgetSpatialTracker_h 10 #include "vtkPlusDataCollectionExport.h" 56 #define PHIDGET_NUMBER_OF_COMPASS_CORRECTION_PARAMETERS 13 64 void PrintSelf( ostream& os, vtkIndent indent );
96 vtkSetMacro(ZeroGyroscopeOnConnect,
bool);
101 vtkSetMacro(SerialNumber,
int);
102 vtkGetMacro(SerialNumber,
int);
104 friend class PhidgetSpatialCallbackClass;
124 void ZeroGyroscope();
126 vtkSetVector2Macro(AhrsAlgorithmGain,
double);
127 vtkSetVector2Macro(FilteredTiltSensorAhrsAlgorithmGain,
double);
132 bool IsCompassCorrectionParametersDefined();
143 void* SpatialDeviceHandle;
150 double TrackerTimeToSystemTimeSec;
151 bool TrackerTimeToSystemTimeComputed;
153 vtkMatrix4x4* LastAccelerometerToTrackerTransform;
154 vtkMatrix4x4* LastGyroscopeToTrackerTransform;
155 vtkMatrix4x4* LastMagnetometerToTrackerTransform;
156 vtkMatrix4x4* LastTiltSensorToTrackerTransform;
157 vtkMatrix4x4* LastFilteredTiltSensorToTrackerTransform;
158 vtkMatrix4x4* LastOrientationSensorToTrackerTransform;
173 AhrsAlgo* FilteredTiltSensorAhrsAlgo;
182 bool AhrsUseMagnetometer;
188 double AhrsAlgorithmGain[2];
189 double FilteredTiltSensorAhrsAlgorithmGain[2];
192 double AhrsLastUpdateTime;
193 double FilteredTiltSensorAhrsLastUpdateTime;
203 int TiltSensorWestAxisIndex;
204 int FilteredTiltSensorWestAxisIndex;
207 bool ZeroGyroscopeOnConnect;
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStopRecording()
Abstract interface for tracker and video devices.
virtual PlusStatus InternalConnect()
#define PHIDGET_NUMBER_OF_COMPASS_CORRECTION_PARAMETERS
virtual PlusStatus Probe()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus Reset()
unsigned long FrameNumber
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
virtual PlusStatus InternalStartRecording()
Interface for the Phidget 3/3/3 tracker.
virtual bool IsTracker() const
virtual PlusStatus InternalDisconnect()
virtual bool IsResettable()
static vtkPlusDevice * New()
Interface to a 3D positioning tool, video source, or generalized data stream.