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

#include "Util_Render_Stereo.h"

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

Public Types

enum  StereoMode { Stereo_None = 0, Stereo_LeftRight_Multipass = 1 }
 

Public Member Functions

 StereoConfig (StereoMode mode=Stereo_LeftRight_Multipass)
 
void SetHmdRenderInfo (const HmdRenderInfo &hmd)
 
void SetRendertargetSize (Size< int > const rendertargetSize, bool rendertargetIsSharedByBothEyes)
 
const StereoEyeParamsWithOrthoGetEyeRenderParams (StereoEye eye)
 
const HmdRenderInfoGetHmdRenderInfo () const
 
Sizei CalculateRecommendedTextureSize (bool rendertargetSharedByBothEyes, float pixelDensityInCenter=1.0f)
 
void SetStereoMode (StereoMode mode)
 
StereoMode GetStereoMode () const
 
void Set2DAreaFov (float fovRadians)
 
void SetLensOverride (LensConfig const *pLensOverrideLeft=NULL, LensConfig const *pLensOverrideRight=NULL)
 
void SetFov (FovPort const *pfovLeft=NULL, FovPort const *pfovRight=NULL)
 
void SetFovPortRadians (float horizontal, float vertical)
 
void SetZeroVirtualIpdOverride (bool enableOverride)
 
void SetZClipPlanesAndHandedness (float zNear=0.01f, float zFar=10000.0f, bool rightHandedProjection=true)
 
void SetExtraEyeRotation (float extraEyeRotationInRadians=0.0f)
 
void SetDirty ()
 
bool IsDirty ()
 
void UpdateComputedState ()
 
Matrix4f GetProjectionWithZoom (StereoEye eye, float fovZoom) const
 
ViewportScaleAndOffsetBothEyes SetRenderDensity (float pixelsPerDisplayPixel)
 
ViewportScaleAndOffsetBothEyes SetRenderSize (Sizei const &renderSizeLeft, Sizei const &renderSizeRight)
 
ViewportScaleAndOffsetBothEyes SetRenderViewport (Recti const &renderViewportLeft, Recti const &renderViewportRight)
 

Data Fields

StereoEyeParamsWithOrtho EyeRenderParams [2]
 

Private Types

enum  SetViewportModeEnum { SVPM_Density, SVPM_Size, SVPM_Viewport }
 

Private Member Functions

ViewportScaleAndOffsetBothEyes setupViewportScaleAndOffsets ()
 

Private Attributes

StereoMode Mode
 
HmdRenderInfo Hmd
 
float Area2DFov
 
enum
OVR::Util::Render::StereoConfig::SetViewportModeEnum 
SetViewportMode
 
float SetViewportPixelsPerDisplayPixel
 
Sizei SetViewportSize [2]
 
Recti SetViewport [2]
 
bool OverrideLens
 
LensConfig LensOverrideLeft
 
LensConfig LensOverrideRight
 
Sizei RendertargetSize
 
bool OverrideTanHalfFov
 
FovPort FovOverrideLeft
 
FovPort FovOverrideRight
 
bool OverrideZeroIpd
 
float ZNear
 
float ZFar
 
float ExtraEyeRotationInRadians
 
bool IsRendertargetSharedByBothEyes
 
bool RightHandedProjection
 
bool DirtyFlag
 

Detailed Description

Definition at line 131 of file Util_Render_Stereo.h.

Member Enumeration Documentation

Enumerator
SVPM_Density 
SVPM_Size 
SVPM_Viewport 

Definition at line 274 of file Util_Render_Stereo.h.

Enumerator
Stereo_None 
Stereo_LeftRight_Multipass 

Definition at line 138 of file Util_Render_Stereo.h.

Constructor & Destructor Documentation

OVR::Util::Render::StereoConfig::StereoConfig ( StereoMode  mode = Stereo_LeftRight_Multipass)

Definition at line 364 of file Util_Render_Stereo.cpp.

Member Function Documentation

Sizei OVR::Util::Render::StereoConfig::CalculateRecommendedTextureSize ( bool  rendertargetSharedByBothEyes,
float  pixelDensityInCenter = 1.0f 
)

Definition at line 521 of file Util_Render_Stereo.cpp.

const StereoEyeParamsWithOrtho & OVR::Util::Render::StereoConfig::GetEyeRenderParams ( StereoEye  eye)

Definition at line 438 of file Util_Render_Stereo.cpp.

const HmdRenderInfo& OVR::Util::Render::StereoConfig::GetHmdRenderInfo ( ) const
inline

Definition at line 171 of file Util_Render_Stereo.h.

Matrix4f OVR::Util::Render::StereoConfig::GetProjectionWithZoom ( StereoEye  eye,
float  fovZoom 
) const

Definition at line 760 of file Util_Render_Stereo.cpp.

StereoMode OVR::Util::Render::StereoConfig::GetStereoMode ( ) const
inline

Definition at line 185 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::IsDirty ( )
inline

Definition at line 234 of file Util_Render_Stereo.h.

void OVR::Util::Render::StereoConfig::Set2DAreaFov ( float  fovRadians)

Definition at line 432 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetDirty ( )
inline

Definition at line 233 of file Util_Render_Stereo.h.

void OVR::Util::Render::StereoConfig::SetExtraEyeRotation ( float  extraEyeRotationInRadians = 0.0f)

Definition at line 515 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetFov ( FovPort const *  pfovLeft = NULL,
FovPort const *  pfovRight = NULL 
)

Definition at line 479 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetFovPortRadians ( float  horizontal,
float  vertical 
)
inline

Definition at line 206 of file Util_Render_Stereo.h.

void OVR::Util::Render::StereoConfig::SetHmdRenderInfo ( const HmdRenderInfo hmd)

Definition at line 426 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetLensOverride ( LensConfig const *  pLensOverrideLeft = NULL,
LensConfig const *  pLensOverrideRight = NULL 
)

Definition at line 451 of file Util_Render_Stereo.cpp.

ViewportScaleAndOffsetBothEyes OVR::Util::Render::StereoConfig::SetRenderDensity ( float  pixelsPerDisplayPixel)

Definition at line 735 of file Util_Render_Stereo.cpp.

ViewportScaleAndOffsetBothEyes OVR::Util::Render::StereoConfig::SetRenderSize ( Sizei const &  renderSizeLeft,
Sizei const &  renderSizeRight 
)

Definition at line 743 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetRendertargetSize ( Size< int > const  rendertargetSize,
bool  rendertargetIsSharedByBothEyes 
)

Definition at line 471 of file Util_Render_Stereo.cpp.

ViewportScaleAndOffsetBothEyes OVR::Util::Render::StereoConfig::SetRenderViewport ( Recti const &  renderViewportLeft,
Recti const &  renderViewportRight 
)

Definition at line 752 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetStereoMode ( StereoMode  mode)
inline

Definition at line 184 of file Util_Render_Stereo.h.

ViewportScaleAndOffsetBothEyes OVR::Util::Render::StereoConfig::setupViewportScaleAndOffsets ( )
private

Definition at line 671 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetZClipPlanesAndHandedness ( float  zNear = 0.01f,
float  zFar = 10000.0f,
bool  rightHandedProjection = true 
)

Definition at line 507 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::SetZeroVirtualIpdOverride ( bool  enableOverride)

Definition at line 500 of file Util_Render_Stereo.cpp.

void OVR::Util::Render::StereoConfig::UpdateComputedState ( )

Definition at line 529 of file Util_Render_Stereo.cpp.

Field Documentation

float OVR::Util::Render::StereoConfig::Area2DFov
private

Definition at line 271 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::DirtyFlag
private

Definition at line 300 of file Util_Render_Stereo.h.

float OVR::Util::Render::StereoConfig::ExtraEyeRotationInRadians
private

Definition at line 296 of file Util_Render_Stereo.h.

StereoEyeParamsWithOrtho OVR::Util::Render::StereoConfig::EyeRenderParams[2]

Definition at line 309 of file Util_Render_Stereo.h.

FovPort OVR::Util::Render::StereoConfig::FovOverrideLeft
private

Definition at line 291 of file Util_Render_Stereo.h.

FovPort OVR::Util::Render::StereoConfig::FovOverrideRight
private

Definition at line 292 of file Util_Render_Stereo.h.

HmdRenderInfo OVR::Util::Render::StereoConfig::Hmd
private

Definition at line 269 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::IsRendertargetSharedByBothEyes
private

Definition at line 297 of file Util_Render_Stereo.h.

LensConfig OVR::Util::Render::StereoConfig::LensOverrideLeft
private

Definition at line 287 of file Util_Render_Stereo.h.

LensConfig OVR::Util::Render::StereoConfig::LensOverrideRight
private

Definition at line 288 of file Util_Render_Stereo.h.

StereoMode OVR::Util::Render::StereoConfig::Mode
private

Definition at line 268 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::OverrideLens
private

Definition at line 286 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::OverrideTanHalfFov
private

Definition at line 290 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::OverrideZeroIpd
private

Definition at line 293 of file Util_Render_Stereo.h.

Sizei OVR::Util::Render::StereoConfig::RendertargetSize
private

Definition at line 289 of file Util_Render_Stereo.h.

bool OVR::Util::Render::StereoConfig::RightHandedProjection
private

Definition at line 298 of file Util_Render_Stereo.h.

Recti OVR::Util::Render::StereoConfig::SetViewport[2]
private

Definition at line 283 of file Util_Render_Stereo.h.

enum OVR::Util::Render::StereoConfig::SetViewportModeEnum OVR::Util::Render::StereoConfig::SetViewportMode
private
float OVR::Util::Render::StereoConfig::SetViewportPixelsPerDisplayPixel
private

Definition at line 281 of file Util_Render_Stereo.h.

Sizei OVR::Util::Render::StereoConfig::SetViewportSize[2]
private

Definition at line 282 of file Util_Render_Stereo.h.

float OVR::Util::Render::StereoConfig::ZFar
private

Definition at line 295 of file Util_Render_Stereo.h.

float OVR::Util::Render::StereoConfig::ZNear
private

Definition at line 294 of file Util_Render_Stereo.h.


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