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

#include "OVR_Device.h"

Inheritance diagram for OVR::SensorDevice:
Inheritance graph
Collaboration diagram for OVR::SensorDevice:
Collaboration graph

Public Types

enum  { EnumDeviceType = Device_Sensor }
 
enum  CoordinateFrame { Coord_Sensor = 0, Coord_HMD = 1 }
 
- Public Types inherited from OVR::DeviceBase
enum  { EnumDeviceType = Device_All }
 

Public Member Functions

 SensorDevice ()
 
virtual DeviceType GetType () const
 
virtual UByte GetDeviceInterfaceVersion ()=0
 
virtual void SetCoordinateFrame (CoordinateFrame coordframe)=0
 
virtual CoordinateFrame GetCoordinateFrame () const =0
 
virtual void SetReportRate (unsigned rateHz)=0
 
virtual unsigned GetReportRate () const =0
 
virtual bool SetRange (const SensorRange &range, bool waitFlag=false)=0
 
virtual void GetRange (SensorRange *range) const =0
 
virtual void GetFactoryCalibration (Vector3f *AccelOffset, Vector3f *GyroOffset, Matrix4f *AccelMatrix, Matrix4f *GyroMatrix, float *Temperature)=0
 
virtual void SetOnboardCalibrationEnabled (bool enabled)=0
 
virtual bool IsMagCalibrated ()
 
virtual bool SetSerialReport (const SerialReport &)
 
virtual bool GetSerialReport (SerialReport *)
 
virtual bool SetTrackingReport (const TrackingReport &)
 
virtual bool GetTrackingReport (TrackingReport *)
 
virtual bool SetDisplayReport (const DisplayReport &)
 
virtual bool GetDisplayReport (DisplayReport *)
 
virtual bool SetMagCalibrationReport (const MagCalibrationReport &)
 
virtual bool GetMagCalibrationReport (MagCalibrationReport *)
 
virtual bool SetPositionCalibrationReport (const PositionCalibrationReport &)
 
virtual bool GetAllPositionCalibrationReports (Array< PositionCalibrationReport > *)
 
virtual bool SetCustomPatternReport (const CustomPatternReport &)
 
virtual bool GetCustomPatternReport (CustomPatternReport *)
 
virtual bool SetKeepAliveMuxReport (const KeepAliveMuxReport &)
 
virtual bool GetKeepAliveMuxReport (KeepAliveMuxReport *)
 
virtual bool SetManufacturingReport (const ManufacturingReport &)
 
virtual bool GetManufacturingReport (ManufacturingReport *)
 
virtual bool SetUUIDReport (const UUIDReport &)
 
virtual bool GetUUIDReport (UUIDReport *)
 
virtual bool SetTemperatureReport (const TemperatureReport &)
 
virtual bool GetAllTemperatureReports (Array< Array< TemperatureReport > > *)
 
virtual bool GetGyroOffsetReport (GyroOffsetReport *)
 
virtual bool SetLensDistortionReport (const LensDistortionReport &)
 
virtual bool GetLensDistortionReport (LensDistortionReport *)
 
- Public Member Functions inherited from OVR::HIDDeviceBase
virtual ~HIDDeviceBase ()
 
virtual bool SetFeatureReport (UByte *data, UInt32 length)=0
 
virtual bool GetFeatureReport (UByte *data, UInt32 length)=0
 
- Public Member Functions inherited from OVR::DeviceBase
virtual ~DeviceBase ()
 
virtual void AddRef ()
 
virtual void Release ()
 
virtual DeviceBaseGetParent () const
 
virtual DeviceManagerGetManager () const
 
virtual void AddMessageHandler (MessageHandler *handler)
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
virtual bool IsConnected ()
 
LockGetHandlerLock () const
 

Additional Inherited Members

- Protected Member Functions inherited from OVR::DeviceBase
virtual DeviceCommongetDeviceCommon () const =0
 

Detailed Description

Definition at line 964 of file OVR_Device.h.

Member Enumeration Documentation

anonymous enum
Enumerator
EnumDeviceType 

Definition at line 971 of file OVR_Device.h.

Enumerator
Coord_Sensor 
Coord_HMD 

Definition at line 981 of file OVR_Device.h.

Constructor & Destructor Documentation

OVR::SensorDevice::SensorDevice ( )
inline

Definition at line 967 of file OVR_Device.h.

Member Function Documentation

virtual bool OVR::SensorDevice::GetAllPositionCalibrationReports ( Array< PositionCalibrationReport > *  )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1039 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetAllTemperatureReports ( Array< Array< TemperatureReport > > *  )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1054 of file OVR_Device.h.

virtual CoordinateFrame OVR::SensorDevice::GetCoordinateFrame ( ) const
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual bool OVR::SensorDevice::GetCustomPatternReport ( CustomPatternReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1042 of file OVR_Device.h.

virtual UByte OVR::SensorDevice::GetDeviceInterfaceVersion ( )
pure virtual
virtual bool OVR::SensorDevice::GetDisplayReport ( DisplayReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1033 of file OVR_Device.h.

virtual void OVR::SensorDevice::GetFactoryCalibration ( Vector3f AccelOffset,
Vector3f GyroOffset,
Matrix4f AccelMatrix,
Matrix4f GyroMatrix,
float *  Temperature 
)
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual bool OVR::SensorDevice::GetGyroOffsetReport ( GyroOffsetReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1056 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetKeepAliveMuxReport ( KeepAliveMuxReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1045 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetLensDistortionReport ( LensDistortionReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1059 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetMagCalibrationReport ( MagCalibrationReport )
inlinevirtual

Reimplemented in OVR::SensorDeviceImpl, and OVR::Sensor2DeviceImpl.

Definition at line 1036 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetManufacturingReport ( ManufacturingReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1048 of file OVR_Device.h.

virtual void OVR::SensorDevice::GetRange ( SensorRange range) const
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual unsigned OVR::SensorDevice::GetReportRate ( ) const
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual bool OVR::SensorDevice::GetSerialReport ( SerialReport )
inlinevirtual

Reimplemented in OVR::SensorDeviceImpl.

Definition at line 1026 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetTrackingReport ( TrackingReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1030 of file OVR_Device.h.

virtual DeviceType OVR::SensorDevice::GetType ( ) const
inlinevirtual

Reimplemented from OVR::DeviceBase.

Definition at line 973 of file OVR_Device.h.

virtual bool OVR::SensorDevice::GetUUIDReport ( UUIDReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1051 of file OVR_Device.h.

virtual bool OVR::SensorDevice::IsMagCalibrated ( )
inlinevirtual

Reimplemented in OVR::SensorDeviceImpl.

Definition at line 1022 of file OVR_Device.h.

virtual void OVR::SensorDevice::SetCoordinateFrame ( CoordinateFrame  coordframe)
pure virtual
virtual bool OVR::SensorDevice::SetCustomPatternReport ( const CustomPatternReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1041 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetDisplayReport ( const DisplayReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1032 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetKeepAliveMuxReport ( const KeepAliveMuxReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1044 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetLensDistortionReport ( const LensDistortionReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1058 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetMagCalibrationReport ( const MagCalibrationReport )
inlinevirtual

Reimplemented in OVR::SensorDeviceImpl, and OVR::Sensor2DeviceImpl.

Definition at line 1035 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetManufacturingReport ( const ManufacturingReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1047 of file OVR_Device.h.

virtual void OVR::SensorDevice::SetOnboardCalibrationEnabled ( bool  enabled)
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual bool OVR::SensorDevice::SetPositionCalibrationReport ( const PositionCalibrationReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1038 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetRange ( const SensorRange range,
bool  waitFlag = false 
)
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual void OVR::SensorDevice::SetReportRate ( unsigned  rateHz)
pure virtual

Implemented in OVR::SensorDeviceImpl.

virtual bool OVR::SensorDevice::SetSerialReport ( const SerialReport )
inlinevirtual

Reimplemented in OVR::SensorDeviceImpl.

Definition at line 1025 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetTemperatureReport ( const TemperatureReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1053 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetTrackingReport ( const TrackingReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1029 of file OVR_Device.h.

virtual bool OVR::SensorDevice::SetUUIDReport ( const UUIDReport )
inlinevirtual

Reimplemented in OVR::Sensor2DeviceImpl.

Definition at line 1050 of file OVR_Device.h.


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