Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Sensor2DeviceImpl Class Reference

#include "OVR_Sensor2Impl.h"

Inheritance diagram for OVR::Sensor2DeviceImpl:
Inheritance graph
Collaboration diagram for OVR::Sensor2DeviceImpl:
Collaboration graph

Public Member Functions

 Sensor2DeviceImpl (SensorDeviceCreateDesc *createDesc)
 
 ~Sensor2DeviceImpl ()
 
virtual void OnInputReport (UByte *pData, UInt32 length)
 
virtual double OnTicks (double tickSeconds)
 
virtual bool SetTrackingReport (const TrackingReport &data)
 
virtual bool GetTrackingReport (TrackingReport *data)
 
virtual bool SetDisplayReport (const DisplayReport &data)
 
virtual bool GetDisplayReport (DisplayReport *data)
 
virtual bool SetMagCalibrationReport (const MagCalibrationReport &data)
 
virtual bool GetMagCalibrationReport (MagCalibrationReport *data)
 
virtual bool SetPositionCalibrationReport (const PositionCalibrationReport &data)
 
virtual bool GetAllPositionCalibrationReports (Array< PositionCalibrationReport > *data)
 
virtual bool SetCustomPatternReport (const CustomPatternReport &data)
 
virtual bool GetCustomPatternReport (CustomPatternReport *data)
 
virtual bool SetKeepAliveMuxReport (const KeepAliveMuxReport &data)
 
virtual bool GetKeepAliveMuxReport (KeepAliveMuxReport *data)
 
virtual bool SetManufacturingReport (const ManufacturingReport &data)
 
virtual bool GetManufacturingReport (ManufacturingReport *data)
 
virtual bool SetUUIDReport (const UUIDReport &data)
 
virtual bool GetUUIDReport (UUIDReport *data)
 
virtual bool SetTemperatureReport (const TemperatureReport &data)
 
virtual bool GetAllTemperatureReports (Array< Array< TemperatureReport > > *)
 
virtual bool GetGyroOffsetReport (GyroOffsetReport *data)
 
virtual bool SetLensDistortionReport (const LensDistortionReport &data)
 
virtual bool GetLensDistortionReport (LensDistortionReport *data)
 
- Public Member Functions inherited from OVR::SensorDeviceImpl
 SensorDeviceImpl (SensorDeviceCreateDesc *createDesc)
 
 ~SensorDeviceImpl ()
 
virtual bool Initialize (DeviceBase *parent)
 
virtual void Shutdown ()
 
virtual void AddMessageHandler (MessageHandler *handler)
 
virtual void SetCoordinateFrame (CoordinateFrame coordframe)
 
virtual CoordinateFrame GetCoordinateFrame () const
 
virtual bool SetRange (const SensorRange &range, bool waitFlag)
 
virtual void GetRange (SensorRange *range) const
 
virtual void GetFactoryCalibration (Vector3f *AccelOffset, Vector3f *GyroOffset, Matrix4f *AccelMatrix, Matrix4f *GyroMatrix, float *Temperature)
 
virtual void SetOnboardCalibrationEnabled (bool enabled)
 
virtual bool IsMagCalibrated ()
 
virtual void SetReportRate (unsigned rateHz)
 
virtual unsigned GetReportRate () const
 
bool SetSerialReport (const SerialReport &data)
 
bool GetSerialReport (SerialReport *data)
 
- Public Member Functions inherited from OVR::HIDDeviceImpl< OVR::SensorDevice >
 HIDDeviceImpl (HIDDeviceCreateDesc *createDesc, DeviceBase *parent)
 
virtual void OnDeviceMessage (HIDDeviceMessageType messageType)
 
DeviceManagerGetDeviceManager ()
 
HIDDeviceManagerGetHIDDeviceManager ()
 
bool SetFeatureReport (UByte *data, UInt32 length)
 
bool setFeatureReport (UByte *data, UInt32 length)
 
bool GetFeatureReport (UByte *data, UInt32 length)
 
bool getFeatureReport (UByte *data, UInt32 length)
 
UByte GetDeviceInterfaceVersion ()
 
- Public Member Functions inherited from OVR::DeviceImpl< OVR::SensorDevice >
 DeviceImpl (DeviceCreateDesc *createDesc, DeviceBase *parent)
 
DeviceManagerImplGetManagerImpl () const
 
DeviceImplgetThis ()
 
virtual DeviceCommongetDeviceCommon () const
 
- Public Member Functions inherited from OVR::SensorDevice
 SensorDevice ()
 
virtual DeviceType GetType () const
 
virtual void SetCoordinateFrame (CoordinateFrame coordframe)=0
 
- Public Member Functions inherited from OVR::HIDDeviceBase
virtual ~HIDDeviceBase ()
 
- Public Member Functions inherited from OVR::DeviceBase
virtual ~DeviceBase ()
 
virtual void AddRef ()
 
virtual void Release ()
 
virtual DeviceBaseGetParent () const
 
virtual DeviceManagerGetManager () const
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
virtual bool IsConnected ()
 
LockGetHandlerLock () const
 
- Public Member Functions inherited from OVR::DeviceCommon
 DeviceCommon (DeviceCreateDesc *createDesc, DeviceBase *device, DeviceBase *parent)
 
virtual ~DeviceCommon ()
 
void DeviceAddRef ()
 
void DeviceRelease ()
 
LockGetLock () const
 

Protected Member Functions

virtual void openDevice ()
 
bool decodeTracker2Message (Tracker2Message *message, UByte *buffer, int size)
 
bool setTrackingReport (const TrackingReport &data)
 
bool getTrackingReport (TrackingReport *data)
 
bool setDisplayReport (const DisplayReport &data)
 
bool getDisplayReport (DisplayReport *data)
 
bool setMagCalibrationReport (const MagCalibrationReport &data)
 
bool getMagCalibrationReport (MagCalibrationReport *data)
 
bool setPositionCalibrationReport (const PositionCalibrationReport &data)
 
bool getPositionCalibrationReport (PositionCalibrationReport *data)
 
bool getAllPositionCalibrationReports (Array< PositionCalibrationReport > *data)
 
bool setCustomPatternReport (const CustomPatternReport &data)
 
bool getCustomPatternReport (CustomPatternReport *data)
 
bool setKeepAliveMuxReport (const KeepAliveMuxReport &data)
 
bool getKeepAliveMuxReport (KeepAliveMuxReport *data)
 
bool setManufacturingReport (const ManufacturingReport &data)
 
bool getManufacturingReport (ManufacturingReport *data)
 
bool setUUIDReport (const UUIDReport &data)
 
bool getUUIDReport (UUIDReport *data)
 
bool setTemperatureReport (const TemperatureReport &data)
 
bool getTemperatureReport (TemperatureReport *data)
 
bool getAllTemperatureReports (Array< Array< TemperatureReport > > *)
 
bool getGyroOffsetReport (GyroOffsetReport *data)
 
bool setLensDistortionReport (const LensDistortionReport &data)
 
bool getLensDistortionReport (LensDistortionReport *data)
 
void onTrackerMessage (Tracker2Message *message)
 
- Protected Member Functions inherited from OVR::SensorDeviceImpl
void closeDeviceOnError ()
 
Void setCoordinateFrame (CoordinateFrame coordframe)
 
bool setRange (const SensorRange &range)
 
Void setReportRate (unsigned rateHz)
 
Void setOnboardCalibrationEnabled (bool enabled)
 
bool setSerialReport (const SerialReport &data)
 
bool getSerialReport (SerialReport *data)
 
void onTrackerMessage (TrackerMessage *message)
 
bool decodeTrackerMessage (TrackerMessage *message, UByte *buffer, int size)
 
- Protected Member Functions inherited from OVR::HIDDeviceImpl< OVR::SensorDevice >
HIDDeviceGetInternalDevice () const
 
HIDDeviceDescgetHIDDesc () const
 
HIDDeviceCreateDescgetCreateDesc () const
 

Protected Attributes

UByte LastNumSamples
 
UInt16 LastRunningSampleCount
 
UInt32 FullCameraFrameCount
 
SensorTimestampMapping LastCameraTime
 
SensorTimestampMapping LastFrameTime
 
SensorTimestampMapping LastSensorTime
 
UInt32 LastFrameTimestamp
 
SensorCalibrationpCalibration
 
- Protected Attributes inherited from OVR::SensorDeviceImpl
CoordinateFrame Coordinates
 
CoordinateFrame HWCoordinates
 
double NextKeepAliveTickSeconds
 
bool SequenceValid
 
UInt16 LastTimestamp
 
UByte LastSampleCount
 
float LastTemperature
 
Vector3f LastAcceleration
 
Vector3f LastRotationRate
 
Vector3f LastMagneticField
 
UInt32 FullTimestamp
 
SensorRange MaxValidRange
 
SensorRange CurrentRange
 
Vector3f AccelCalibrationOffset
 
Vector3f GyroCalibrationOffset
 
Matrix4f AccelCalibrationMatrix
 
Matrix4f GyroCalibrationMatrix
 
float CalibrationTemperature
 
UInt16 OldCommandId
 
SensorTimeFilter TimeFilter
 
double PrevAbsoluteTime
 

Additional Inherited Members

- Public Types inherited from OVR::SensorDevice
enum  { EnumDeviceType = Device_Sensor }
 
enum  CoordinateFrame { Coord_Sensor = 0, Coord_HMD = 1 }
 
- Public Types inherited from OVR::DeviceBase
enum  { EnumDeviceType = Device_All }
 
- Public Types inherited from OVR::HIDDevice::HIDHandler
enum  HIDDeviceMessageType { HIDDeviceMessage_DeviceAdded = 0, HIDDeviceMessage_DeviceRemoved = 1 }
 
- Static Public Member Functions inherited from OVR::SensorDeviceImpl
static void EnumerateHMDFromSensorDisplayInfo (const SensorDisplayInfoImpl &displayInfo, DeviceFactory::EnumerateVisitor &visitor)
 
- Data Fields inherited from OVR::DeviceCommon
AtomicInt< UInt32RefCount
 
Ptr< DeviceCreateDescpCreateDesc
 
Ptr< DeviceBasepParent
 
volatile bool ConnectedFlag
 
MessageHandlerRef HandlerRef
 

Detailed Description

Definition at line 53 of file OVR_Sensor2Impl.h.

Constructor & Destructor Documentation

OVR::Sensor2DeviceImpl::Sensor2DeviceImpl ( SensorDeviceCreateDesc createDesc)

Definition at line 178 of file OVR_Sensor2Impl.cpp.

OVR::Sensor2DeviceImpl::~Sensor2DeviceImpl ( )

Definition at line 194 of file OVR_Sensor2Impl.cpp.

Member Function Documentation

bool OVR::Sensor2DeviceImpl::decodeTracker2Message ( Tracker2Message message,
UByte buffer,
int  size 
)
protected

Definition at line 151 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetAllPositionCalibrationReports ( Array< PositionCalibrationReport > *  data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 439 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getAllPositionCalibrationReports ( Array< PositionCalibrationReport > *  data)
protected

Definition at line 451 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetAllTemperatureReports ( Array< Array< TemperatureReport > > *  data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 729 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getAllTemperatureReports ( Array< Array< TemperatureReport > > *  data)
protected

Definition at line 747 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetCustomPatternReport ( CustomPatternReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 495 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getCustomPatternReport ( CustomPatternReport data)
protected

Definition at line 507 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetDisplayReport ( DisplayReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 313 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getDisplayReport ( DisplayReport data)
protected

Definition at line 325 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetGyroOffsetReport ( GyroOffsetReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 773 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getGyroOffsetReport ( GyroOffsetReport data)
protected

Definition at line 791 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetKeepAliveMuxReport ( KeepAliveMuxReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 667 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getKeepAliveMuxReport ( KeepAliveMuxReport data)
protected

Definition at line 679 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetLensDistortionReport ( LensDistortionReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 581 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getLensDistortionReport ( LensDistortionReport data)
protected

Definition at line 593 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetMagCalibrationReport ( MagCalibrationReport data)
virtual

Reimplemented from OVR::SensorDeviceImpl.

Definition at line 356 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getMagCalibrationReport ( MagCalibrationReport data)
protected

Definition at line 374 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetManufacturingReport ( ManufacturingReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 538 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getManufacturingReport ( ManufacturingReport data)
protected

Definition at line 550 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getPositionCalibrationReport ( PositionCalibrationReport data)
protected

Definition at line 412 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getTemperatureReport ( TemperatureReport data)
protected

Definition at line 716 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetTrackingReport ( TrackingReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 270 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getTrackingReport ( TrackingReport data)
protected

Definition at line 282 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::GetUUIDReport ( UUIDReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 624 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::getUUIDReport ( UUIDReport data)
protected

Definition at line 636 of file OVR_Sensor2Impl.cpp.

void OVR::Sensor2DeviceImpl::OnInputReport ( UByte pData,
UInt32  length 
)
virtual

Reimplemented from OVR::SensorDeviceImpl.

Definition at line 1017 of file OVR_Sensor2Impl.cpp.

double OVR::Sensor2DeviceImpl::OnTicks ( double  tickSeconds)
virtual

Reimplemented from OVR::SensorDeviceImpl.

Definition at line 1094 of file OVR_Sensor2Impl.cpp.

void OVR::Sensor2DeviceImpl::onTrackerMessage ( Tracker2Message message)
protected

Definition at line 804 of file OVR_Sensor2Impl.cpp.

void OVR::Sensor2DeviceImpl::openDevice ( )
protectedvirtual

Reimplemented from OVR::SensorDeviceImpl.

Definition at line 199 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetCustomPatternReport ( const CustomPatternReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 477 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setCustomPatternReport ( const CustomPatternReport data)
protected

Definition at line 489 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetDisplayReport ( const DisplayReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 295 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setDisplayReport ( const DisplayReport data)
protected

Definition at line 307 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetKeepAliveMuxReport ( const KeepAliveMuxReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 649 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setKeepAliveMuxReport ( const KeepAliveMuxReport data)
protected

Definition at line 661 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetLensDistortionReport ( const LensDistortionReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 563 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setLensDistortionReport ( const LensDistortionReport data)
protected

Definition at line 575 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetMagCalibrationReport ( const MagCalibrationReport data)
virtual

Reimplemented from OVR::SensorDeviceImpl.

Definition at line 338 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setMagCalibrationReport ( const MagCalibrationReport data)
protected

Definition at line 350 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetManufacturingReport ( const ManufacturingReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 520 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setManufacturingReport ( const ManufacturingReport data)
protected

Definition at line 532 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetPositionCalibrationReport ( const PositionCalibrationReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 387 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setPositionCalibrationReport ( const PositionCalibrationReport data)
protected

Definition at line 399 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetTemperatureReport ( const TemperatureReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 692 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setTemperatureReport ( const TemperatureReport data)
protected

Definition at line 710 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetTrackingReport ( const TrackingReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 252 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setTrackingReport ( const TrackingReport data)
protected

Definition at line 264 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::SetUUIDReport ( const UUIDReport data)
virtual

Reimplemented from OVR::SensorDevice.

Definition at line 606 of file OVR_Sensor2Impl.cpp.

bool OVR::Sensor2DeviceImpl::setUUIDReport ( const UUIDReport data)
protected

Definition at line 618 of file OVR_Sensor2Impl.cpp.

Field Documentation

UInt32 OVR::Sensor2DeviceImpl::FullCameraFrameCount
protected

Definition at line 140 of file OVR_Sensor2Impl.h.

SensorTimestampMapping OVR::Sensor2DeviceImpl::LastCameraTime
protected

Definition at line 142 of file OVR_Sensor2Impl.h.

SensorTimestampMapping OVR::Sensor2DeviceImpl::LastFrameTime
protected

Definition at line 143 of file OVR_Sensor2Impl.h.

UInt32 OVR::Sensor2DeviceImpl::LastFrameTimestamp
protected

Definition at line 146 of file OVR_Sensor2Impl.h.

UByte OVR::Sensor2DeviceImpl::LastNumSamples
protected

Definition at line 138 of file OVR_Sensor2Impl.h.

UInt16 OVR::Sensor2DeviceImpl::LastRunningSampleCount
protected

Definition at line 139 of file OVR_Sensor2Impl.h.

SensorTimestampMapping OVR::Sensor2DeviceImpl::LastSensorTime
protected

Definition at line 144 of file OVR_Sensor2Impl.h.

SensorCalibration* OVR::Sensor2DeviceImpl::pCalibration
protected

Definition at line 148 of file OVR_Sensor2Impl.h.


The documentation for this class was generated from the following files: