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

#include "CAPI_HMDState.h"

Inheritance diagram for OVR::CAPI::HMDState:
Inheritance graph
Collaboration diagram for OVR::CAPI::HMDState:
Collaboration graph

Data Structures

struct  HMDInfoWrapper
 

Public Member Functions

 HMDState (HMDDevice *device)
 
 HMDState (ovrHmdType hmdType)
 
virtual ~HMDState ()
 
bool StartSensor (unsigned supportedCaps, unsigned requiredCaps)
 
void StopSensor ()
 
void ResetSensor ()
 
ovrSensorState PredictedSensorState (double absTime)
 
bool GetSensorDesc (ovrSensorDesc *descOut)
 
void SetEnabledHmdCaps (unsigned caps)
 
bool ProcessLatencyTest (unsigned char rgbColorOut[3])
 
void ProcessLatencyTest2 (unsigned char rgbColorOut[3], double startTime)
 
bool ConfigureRendering (ovrEyeRenderDesc eyeRenderDescOut[2], const ovrFovPort eyeFovIn[2], const ovrRenderAPIConfig *apiConfig, unsigned distortionCaps)
 
ovrPosef BeginEyeRender (ovrEyeType eye)
 
void EndEyeRender (ovrEyeType eye, ovrPosef renderPose, ovrTexture *eyeTexture)
 
const char * GetLastError ()
 
void NotifyAddDevice (DeviceType deviceType)
 
bool checkCreateSensor ()
 
void applyProfileToSensorFusion ()
 
void checkBeginFrameScope (const char *functionName)
 
void checkRenderingConfigured (const char *functionName)
 
void checkBeginFrameTimingScope (const char *functionName)
 
HMDStategetThis ()
 
void updateLowPersistenceMode (bool lowPersistence) const
 
void updateLatencyTestForHmd (bool latencyTesting)
 
void updateDK2FeaturesTiedToSensor (bool sensorCreatedJustNow)
 
float getFloatValue (const char *propertyName, float defaultVal)
 
bool setFloatValue (const char *propertyName, float value)
 
unsigned getFloatArray (const char *propertyName, float values[], unsigned arraySize)
 
bool setFloatArray (const char *propertyName, float values[], unsigned arraySize)
 
const char * getString (const char *propertyName, const char *defaultVal)
 
 OVR_CAPI_VISION_CODE (Vision::PoseTracker *pPoseTracker;) Ptr< LatencyTestDevice > pLatencyTester
 
- Public Member Functions inherited from OVR::ListNode< HMDState >
void RemoveNode ()
 
void ReplaceNodeWith (HMDState *pnew)
 
void InsertNodeAfter (HMDState *p)
 
void InsertNodeBefore (HMDState *p)
 
void Alloc_MoveTo (ListNode< HMDState > *pdest)
 

Data Fields

Ptr< HMDDevicepHMD
 
const HMDInfoWrapper HMDInfoW
 
const OVR::HMDInfoHMDInfo
 
const char * pLastError
 
unsigned EnabledHmdCaps
 
unsigned HmdCapsAppliedToSensor
 
Lock DevicesLock
 
AtomicInt< int > AddSensorCount
 
volatile bool SensorStarted
 
volatile bool SensorCreated
 
Ptr< SensorDevicepSensor
 
unsigned SensorCaps
 
SensorFusion SFusion
 
Util::LatencyTest LatencyUtil
 
AtomicInt< int > AddLatencyTestCount
 
bool LatencyTestActive
 
unsigned char LatencyTestDrawColor [3]
 
Ptr< LatencyTestDevicepLatencyTesterDisplay
 
AtomicInt< int > AddLatencyTestDisplayCount
 
Util::LatencyTest2 LatencyUtil2
 
bool LatencyTest2Active
 
unsigned char LatencyTest2DrawColor [3]
 
FrameTimeManager TimeManager
 
HMDRenderState RenderState
 
Ptr< DistortionRendererpRenderer
 
double LastFrameTimeSeconds
 
double LastGetFrameTimeSeconds
 
char LastGetStringValue [256]
 
bool RenderingConfigured
 
bool BeginFrameCalled
 
ThreadId BeginFrameThreadId
 
ThreadChecker RenderAPIThreadChecker
 
bool BeginFrameTimingCalled
 
bool EyeRenderActive [2]
 
- Data Fields inherited from OVR::ListNode< HMDState >
union {
T * pPrev
 
void * pVoidPrev
 
}; 
 
union {
T * pNext
 
void * pVoidNext
 
}; 
 

Detailed Description

Definition at line 131 of file CAPI_HMDState.h.

Constructor & Destructor Documentation

OVR::CAPI::HMDState::HMDState ( HMDDevice device)

Definition at line 37 of file CAPI_HMDState.cpp.

OVR::CAPI::HMDState::HMDState ( ovrHmdType  hmdType)

Definition at line 68 of file CAPI_HMDState.cpp.

OVR::CAPI::HMDState::~HMDState ( )
virtual

Definition at line 97 of file CAPI_HMDState.cpp.

Member Function Documentation

void OVR::CAPI::HMDState::applyProfileToSensorFusion ( )

Definition at line 372 of file CAPI_HMDState.cpp.

ovrPosef OVR::CAPI::HMDState::BeginEyeRender ( ovrEyeType  eye)

Definition at line 758 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::checkBeginFrameScope ( const char *  functionName)
inline

Definition at line 195 of file CAPI_HMDState.h.

void OVR::CAPI::HMDState::checkBeginFrameTimingScope ( const char *  functionName)
inline

Definition at line 211 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::checkCreateSensor ( )

Definition at line 308 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::checkRenderingConfigured ( const char *  functionName)
inline

Definition at line 204 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::ConfigureRendering ( ovrEyeRenderDesc  eyeRenderDescOut[2],
const ovrFovPort  eyeFovIn[2],
const ovrRenderAPIConfig apiConfig,
unsigned  distortionCaps 
)

Definition at line 701 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::EndEyeRender ( ovrEyeType  eye,
ovrPosef  renderPose,
ovrTexture eyeTexture 
)

Definition at line 782 of file CAPI_HMDState.cpp.

unsigned OVR::CAPI::HMDState::getFloatArray ( const char *  propertyName,
float  values[],
unsigned  arraySize 
)

Definition at line 527 of file CAPI_HMDState.cpp.

float OVR::CAPI::HMDState::getFloatValue ( const char *  propertyName,
float  defaultVal 
)

Definition at line 485 of file CAPI_HMDState.cpp.

const char* OVR::CAPI::HMDState::GetLastError ( )
inline

Definition at line 170 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::GetSensorDesc ( ovrSensorDesc descOut)

Definition at line 353 of file CAPI_HMDState.cpp.

const char * OVR::CAPI::HMDState::getString ( const char *  propertyName,
const char *  defaultVal 
)

Definition at line 593 of file CAPI_HMDState.cpp.

HMDState* OVR::CAPI::HMDState::getThis ( )
inline

Definition at line 219 of file CAPI_HMDState.h.

void OVR::CAPI::HMDState::NotifyAddDevice ( DeviceType  deviceType)
inline

Definition at line 177 of file CAPI_HMDState.h.

OVR::CAPI::HMDState::OVR_CAPI_VISION_CODE ( Vision::PoseTracker *pPoseTracker;  )
ovrSensorState OVR::CAPI::HMDState::PredictedSensorState ( double  absTime)

Definition at line 257 of file CAPI_HMDState.cpp.

bool OVR::CAPI::HMDState::ProcessLatencyTest ( unsigned char  rgbColorOut[3])

Definition at line 613 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::ProcessLatencyTest2 ( unsigned char  rgbColorOut[3],
double  startTime 
)

Definition at line 655 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::ResetSensor ( )

Definition at line 250 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::SetEnabledHmdCaps ( unsigned  caps)

Definition at line 448 of file CAPI_HMDState.cpp.

bool OVR::CAPI::HMDState::setFloatArray ( const char *  propertyName,
float  values[],
unsigned  arraySize 
)

Definition at line 579 of file CAPI_HMDState.cpp.

bool OVR::CAPI::HMDState::setFloatValue ( const char *  propertyName,
float  value 
)

Definition at line 506 of file CAPI_HMDState.cpp.

bool OVR::CAPI::HMDState::StartSensor ( unsigned  supportedCaps,
unsigned  requiredCaps 
)

Definition at line 114 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::StopSensor ( )

Definition at line 220 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::updateDK2FeaturesTiedToSensor ( bool  sensorCreatedJustNow)

Definition at line 424 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::updateLatencyTestForHmd ( bool  latencyTesting)

Definition at line 401 of file CAPI_HMDState.cpp.

void OVR::CAPI::HMDState::updateLowPersistenceMode ( bool  lowPersistence) const

Definition at line 385 of file CAPI_HMDState.cpp.

Field Documentation

AtomicInt<int> OVR::CAPI::HMDState::AddLatencyTestCount

Definition at line 298 of file CAPI_HMDState.h.

AtomicInt<int> OVR::CAPI::HMDState::AddLatencyTestDisplayCount

Definition at line 305 of file CAPI_HMDState.h.

AtomicInt<int> OVR::CAPI::HMDState::AddSensorCount

Definition at line 274 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::BeginFrameCalled

Definition at line 330 of file CAPI_HMDState.h.

ThreadId OVR::CAPI::HMDState::BeginFrameThreadId

Definition at line 331 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::BeginFrameTimingCalled

Definition at line 335 of file CAPI_HMDState.h.

Lock OVR::CAPI::HMDState::DevicesLock

Definition at line 271 of file CAPI_HMDState.h.

unsigned OVR::CAPI::HMDState::EnabledHmdCaps

Definition at line 262 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::EyeRenderActive[2]

Definition at line 338 of file CAPI_HMDState.h.

unsigned OVR::CAPI::HMDState::HmdCapsAppliedToSensor

Definition at line 265 of file CAPI_HMDState.h.

const OVR::HMDInfo& OVR::CAPI::HMDState::HMDInfo

Definition at line 257 of file CAPI_HMDState.h.

const HMDInfoWrapper OVR::CAPI::HMDState::HMDInfoW

Definition at line 256 of file CAPI_HMDState.h.

double OVR::CAPI::HMDState::LastFrameTimeSeconds

Definition at line 318 of file CAPI_HMDState.h.

double OVR::CAPI::HMDState::LastGetFrameTimeSeconds

Definition at line 321 of file CAPI_HMDState.h.

char OVR::CAPI::HMDState::LastGetStringValue[256]

Definition at line 324 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::LatencyTest2Active

Definition at line 308 of file CAPI_HMDState.h.

unsigned char OVR::CAPI::HMDState::LatencyTest2DrawColor[3]

Definition at line 309 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::LatencyTestActive

Definition at line 300 of file CAPI_HMDState.h.

unsigned char OVR::CAPI::HMDState::LatencyTestDrawColor[3]

Definition at line 301 of file CAPI_HMDState.h.

Util::LatencyTest OVR::CAPI::HMDState::LatencyUtil

Definition at line 297 of file CAPI_HMDState.h.

Util::LatencyTest2 OVR::CAPI::HMDState::LatencyUtil2

Definition at line 306 of file CAPI_HMDState.h.

Ptr<HMDDevice> OVR::CAPI::HMDState::pHMD

Definition at line 253 of file CAPI_HMDState.h.

const char* OVR::CAPI::HMDState::pLastError

Definition at line 259 of file CAPI_HMDState.h.

Ptr<LatencyTestDevice> OVR::CAPI::HMDState::pLatencyTesterDisplay

Definition at line 304 of file CAPI_HMDState.h.

Ptr<DistortionRenderer> OVR::CAPI::HMDState::pRenderer

Definition at line 315 of file CAPI_HMDState.h.

Ptr<SensorDevice> OVR::CAPI::HMDState::pSensor

Definition at line 283 of file CAPI_HMDState.h.

ThreadChecker OVR::CAPI::HMDState::RenderAPIThreadChecker

Definition at line 333 of file CAPI_HMDState.h.

bool OVR::CAPI::HMDState::RenderingConfigured

Definition at line 328 of file CAPI_HMDState.h.

HMDRenderState OVR::CAPI::HMDState::RenderState

Definition at line 314 of file CAPI_HMDState.h.

unsigned OVR::CAPI::HMDState::SensorCaps

Definition at line 284 of file CAPI_HMDState.h.

volatile bool OVR::CAPI::HMDState::SensorCreated

Definition at line 281 of file CAPI_HMDState.h.

volatile bool OVR::CAPI::HMDState::SensorStarted

Definition at line 280 of file CAPI_HMDState.h.

SensorFusion OVR::CAPI::HMDState::SFusion

Definition at line 287 of file CAPI_HMDState.h.

FrameTimeManager OVR::CAPI::HMDState::TimeManager

Definition at line 313 of file CAPI_HMDState.h.


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