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

#include "Util_Render_Stereo.h"

Collaboration diagram for OVR::Util::Render::TimewarpMachine:
Collaboration graph

Public Member Functions

 TimewarpMachine ()
 
void Reset (HmdRenderInfo &renderInfo, bool vsyncEnabled, double timeNow)
 
void AfterPresentAndFlush (double timeNow)
 
double GetViewRenderPredictionTime ()
 
Transformf GetViewRenderPredictionPose (SensorFusion &sfusion)
 
double GetVisiblePixelTimeStart ()
 
double GetVisiblePixelTimeEnd ()
 
Transformf GetPredictedVisiblePixelPoseStart (SensorFusion &sfusion)
 
Transformf GetPredictedVisiblePixelPoseEnd (SensorFusion &sfusion)
 
Matrix4f GetTimewarpDeltaStart (SensorFusion &sfusion, Transformf const &renderedPose)
 
Matrix4f GetTimewarpDeltaEnd (SensorFusion &sfusion, Transformf const &renderedPose)
 
double JustInTime_GetDistortionWaitUntilTime ()
 
bool JustInTime_NeedDistortionTimeMeasurement () const
 
void JustInTime_BeforeDistortionTimeMeasurement (double timeNow)
 
void JustInTime_AfterDistortionTimeMeasurement (double timeNow)
 

Private Types

enum  { NumDistortionTimes = 10 }
 

Private Attributes

bool VsyncEnabled
 
HmdRenderInfo RenderInfo
 
PredictionValues CurrentPredictionValues
 
int DistortionTimeCount
 
double DistortionTimeCurrentStart
 
float DistortionTimes [NumDistortionTimes]
 
float DistortionTimeAverage
 
Transformf EyeRenderPoses [2]
 
double LastFramePresentFlushTime
 
float PresentFlushToPresentFlushSeconds
 
double NextFramePresentFlushTime
 

Detailed Description

Definition at line 421 of file Util_Render_Stereo.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
NumDistortionTimes 

Definition at line 476 of file Util_Render_Stereo.h.

Constructor & Destructor Documentation

OVR::Util::Render::TimewarpMachine::TimewarpMachine ( )

Definition at line 1317 of file Util_Render_Stereo.cpp.

Member Function Documentation

void OVR::Util::Render::TimewarpMachine::AfterPresentAndFlush ( double  timeNow)

Definition at line 1339 of file Util_Render_Stereo.cpp.

Transformf OVR::Util::Render::TimewarpMachine::GetPredictedVisiblePixelPoseEnd ( SensorFusion sfusion)

Definition at line 1373 of file Util_Render_Stereo.cpp.

Transformf OVR::Util::Render::TimewarpMachine::GetPredictedVisiblePixelPoseStart ( SensorFusion sfusion)

Definition at line 1368 of file Util_Render_Stereo.cpp.

Matrix4f OVR::Util::Render::TimewarpMachine::GetTimewarpDeltaEnd ( SensorFusion sfusion,
Transformf const &  renderedPose 
)

Definition at line 1386 of file Util_Render_Stereo.cpp.

Matrix4f OVR::Util::Render::TimewarpMachine::GetTimewarpDeltaStart ( SensorFusion sfusion,
Transformf const &  renderedPose 
)

Definition at line 1378 of file Util_Render_Stereo.cpp.

Transformf OVR::Util::Render::TimewarpMachine::GetViewRenderPredictionPose ( SensorFusion sfusion)

Definition at line 1352 of file Util_Render_Stereo.cpp.

double OVR::Util::Render::TimewarpMachine::GetViewRenderPredictionTime ( )

Definition at line 1346 of file Util_Render_Stereo.cpp.

double OVR::Util::Render::TimewarpMachine::GetVisiblePixelTimeEnd ( )

Definition at line 1363 of file Util_Render_Stereo.cpp.

double OVR::Util::Render::TimewarpMachine::GetVisiblePixelTimeStart ( )

Definition at line 1358 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::TimewarpMachine::JustInTime_AfterDistortionTimeMeasurement ( double  timeNow)

Definition at line 1433 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::TimewarpMachine::JustInTime_BeforeDistortionTimeMeasurement ( double  timeNow)

Definition at line 1428 of file Util_Render_Stereo.cpp.

double OVR::Util::Render::TimewarpMachine::JustInTime_GetDistortionWaitUntilTime ( )

Definition at line 1397 of file Util_Render_Stereo.cpp.

bool OVR::Util::Render::TimewarpMachine::JustInTime_NeedDistortionTimeMeasurement ( ) const

Definition at line 1419 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::TimewarpMachine::Reset ( HmdRenderInfo renderInfo,
bool  vsyncEnabled,
double  timeNow 
)

Definition at line 1327 of file Util_Render_Stereo.cpp.

Field Documentation

PredictionValues OVR::Util::Render::TimewarpMachine::CurrentPredictionValues
private

Definition at line 474 of file Util_Render_Stereo.h.

float OVR::Util::Render::TimewarpMachine::DistortionTimeAverage
private

Definition at line 480 of file Util_Render_Stereo.h.

int OVR::Util::Render::TimewarpMachine::DistortionTimeCount
private

Definition at line 477 of file Util_Render_Stereo.h.

double OVR::Util::Render::TimewarpMachine::DistortionTimeCurrentStart
private

Definition at line 478 of file Util_Render_Stereo.h.

float OVR::Util::Render::TimewarpMachine::DistortionTimes[NumDistortionTimes]
private

Definition at line 479 of file Util_Render_Stereo.h.

Transformf OVR::Util::Render::TimewarpMachine::EyeRenderPoses[2]
private

Definition at line 483 of file Util_Render_Stereo.h.

double OVR::Util::Render::TimewarpMachine::LastFramePresentFlushTime
private

Definition at line 486 of file Util_Render_Stereo.h.

double OVR::Util::Render::TimewarpMachine::NextFramePresentFlushTime
private

Definition at line 490 of file Util_Render_Stereo.h.

float OVR::Util::Render::TimewarpMachine::PresentFlushToPresentFlushSeconds
private

Definition at line 488 of file Util_Render_Stereo.h.

HmdRenderInfo OVR::Util::Render::TimewarpMachine::RenderInfo
private

Definition at line 473 of file Util_Render_Stereo.h.

bool OVR::Util::Render::TimewarpMachine::VsyncEnabled
private

Definition at line 472 of file Util_Render_Stereo.h.


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