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

#include "OVR_LatencyTestImpl.h"

Inheritance diagram for OVR::LatencyTestDeviceImpl:
Inheritance graph
Collaboration diagram for OVR::LatencyTestDeviceImpl:
Collaboration graph

Public Member Functions

 LatencyTestDeviceImpl (LatencyTestDeviceCreateDesc *createDesc)
 
 ~LatencyTestDeviceImpl ()
 
virtual bool Initialize (DeviceBase *parent)
 
virtual void Shutdown ()
 
virtual void OnInputReport (UByte *pData, UInt32 length)
 
virtual bool SetConfiguration (const OVR::LatencyTestConfiguration &configuration, bool waitFlag=false)
 
virtual bool GetConfiguration (OVR::LatencyTestConfiguration *configuration)
 
virtual bool SetCalibrate (const Color &calibrationColor, bool waitFlag=false)
 
virtual bool SetStartTest (const Color &targetColor, bool waitFlag=false)
 
virtual bool SetDisplay (const LatencyTestDisplay &display, bool waitFlag=false)
 
- Public Member Functions inherited from OVR::HIDDeviceImpl< OVR::LatencyTestDevice >
 HIDDeviceImpl (HIDDeviceCreateDesc *createDesc, DeviceBase *parent)
 
virtual void OnDeviceMessage (HIDDeviceMessageType messageType)
 
DeviceManager * GetDeviceManager ()
 
HIDDeviceManager * GetHIDDeviceManager ()
 
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::LatencyTestDevice >
 DeviceImpl (DeviceCreateDesc *createDesc, DeviceBase *parent)
 
DeviceManagerImpl * GetManagerImpl () const
 
DeviceImpl * getThis ()
 
virtual DeviceCommon * getDeviceCommon () const
 
- Public Member Functions inherited from OVR::LatencyTestDevice
 LatencyTestDevice ()
 
virtual DeviceType GetType () const
 
virtual DeviceBase * GetDevice ()
 
- 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 DeviceBase * GetParent () const
 
virtual DeviceManager * GetManager () const
 
virtual void AddMessageHandler (MessageHandler *handler)
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
virtual bool IsConnected ()
 
Lock * GetHandlerLock () const
 
- Public Member Functions inherited from OVR::DeviceCommon
 DeviceCommon (DeviceCreateDesc *createDesc, DeviceBase *device, DeviceBase *parent)
 
virtual ~DeviceCommon ()
 
void DeviceAddRef ()
 
void DeviceRelease ()
 
Lock * GetLock () const
 
- Public Member Functions inherited from OVR::HIDDevice::HIDHandler
virtual double OnTicks (double tickSeconds)
 

Protected Member Functions

bool openDevice (const char **errorFormatString)
 
void closeDevice ()
 
void closeDeviceOnIOError ()
 
bool initializeRead ()
 
bool processReadResult ()
 
bool setConfiguration (const OVR::LatencyTestConfiguration &configuration)
 
bool getConfiguration (OVR::LatencyTestConfiguration *configuration)
 
bool setCalibrate (const Color &calibrationColor)
 
bool setStartTest (const Color &targetColor)
 
bool setDisplay (const OVR::LatencyTestDisplay &display)
 
void onLatencyTestSamplesMessage (LatencyTestSamplesMessage *message)
 
void onLatencyTestButtonMessage (LatencyTestButtonMessage *message)
 
void onLatencyTestStartedMessage (LatencyTestStartedMessage *message)
 
void onLatencyTestColorDetectedMessage (LatencyTestColorDetectedMessage *message)
 
- Protected Member Functions inherited from OVR::HIDDeviceImpl< OVR::LatencyTestDevice >
HIDDevice * GetInternalDevice () const
 
HIDDeviceDesc * getHIDDesc () const
 
HIDDeviceCreateDesc * getCreateDesc () const
 

Additional Inherited Members

- Public Types inherited from OVR::LatencyTestDevice
enum  { EnumDeviceType = Device_LatencyTester }
 
- 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 }
 
- Data Fields inherited from OVR::DeviceCommon
AtomicInt< UInt32 > RefCount
 
Ptr< DeviceCreateDesc > pCreateDesc
 
Ptr< DeviceBase > pParent
 
volatile bool ConnectedFlag
 
MessageHandlerRef HandlerRef
 

Detailed Description

Definition at line 98 of file OVR_LatencyTestImpl.h.

Constructor & Destructor Documentation

OVR::LatencyTestDeviceImpl::LatencyTestDeviceImpl ( LatencyTestDeviceCreateDesc *  createDesc)

Definition at line 480 of file OVR_LatencyTestImpl.cpp.

OVR::LatencyTestDeviceImpl::~LatencyTestDeviceImpl ( )

Definition at line 485 of file OVR_LatencyTestImpl.cpp.

Member Function Documentation

void OVR::LatencyTestDeviceImpl::closeDevice ( )
protected
void OVR::LatencyTestDeviceImpl::closeDeviceOnIOError ( )
protected
bool OVR::LatencyTestDeviceImpl::GetConfiguration ( OVR::LatencyTestConfiguration *  configuration)
virtual

Implements OVR::LatencyTestDevice.

Definition at line 587 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::getConfiguration ( OVR::LatencyTestConfiguration *  configuration)
protected

Definition at line 598 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::Initialize ( DeviceBase *  parent)
virtual

Reimplemented from OVR::HIDDeviceImpl< OVR::LatencyTestDevice >.

Definition at line 492 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::initializeRead ( )
protected
void OVR::LatencyTestDeviceImpl::OnInputReport ( UByte *  pData,
UInt32  length 
)
virtual

Reimplemented from OVR::HIDDevice::HIDHandler.

Definition at line 510 of file OVR_LatencyTestImpl.cpp.

void OVR::LatencyTestDeviceImpl::onLatencyTestButtonMessage ( LatencyTestButtonMessage *  message)
protected

Definition at line 755 of file OVR_LatencyTestImpl.cpp.

void OVR::LatencyTestDeviceImpl::onLatencyTestColorDetectedMessage ( LatencyTestColorDetectedMessage *  message)
protected

Definition at line 715 of file OVR_LatencyTestImpl.cpp.

void OVR::LatencyTestDeviceImpl::onLatencyTestSamplesMessage ( LatencyTestSamplesMessage *  message)
protected

Definition at line 692 of file OVR_LatencyTestImpl.cpp.

void OVR::LatencyTestDeviceImpl::onLatencyTestStartedMessage ( LatencyTestStartedMessage *  message)
protected

Definition at line 736 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::openDevice ( const char **  errorFormatString)
protected
bool OVR::LatencyTestDeviceImpl::processReadResult ( )
protected
bool OVR::LatencyTestDeviceImpl::SetCalibrate ( const Color &  calibrationColor,
bool  waitFlag = false 
)
virtual

Implements OVR::LatencyTestDevice.

Definition at line 611 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::setCalibrate ( const Color &  calibrationColor)
protected

Definition at line 632 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::SetConfiguration ( const OVR::LatencyTestConfiguration &  configuration,
bool  waitFlag = false 
)
virtual

Implements OVR::LatencyTestDevice.

Definition at line 555 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::setConfiguration ( const OVR::LatencyTestConfiguration &  configuration)
protected

Definition at line 581 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::SetDisplay ( const LatencyTestDisplay &  display,
bool  waitFlag = false 
)
virtual

Implements OVR::LatencyTestDevice.

Definition at line 665 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::setDisplay ( const OVR::LatencyTestDisplay &  display)
protected

Definition at line 686 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::SetStartTest ( const Color &  targetColor,
bool  waitFlag = false 
)
virtual

Implements OVR::LatencyTestDevice.

Definition at line 638 of file OVR_LatencyTestImpl.cpp.

bool OVR::LatencyTestDeviceImpl::setStartTest ( const Color &  targetColor)
protected

Definition at line 659 of file OVR_LatencyTestImpl.cpp.

void OVR::LatencyTestDeviceImpl::Shutdown ( )
virtual

Reimplemented from OVR::HIDDeviceImpl< OVR::LatencyTestDevice >.

Definition at line 503 of file OVR_LatencyTestImpl.cpp.


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