VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrv::SdsmDrawCallback Struct Reference
Inheritance diagram for makVrv::SdsmDrawCallback:
Inheritance graph
[legend]

Public Member Functions

 SdsmDrawCallback (bool bindFbo, GLenum colorAttachment, unsigned int numPipelines, unsigned int numPartitions, unsigned int width, unsigned int height)
 CTOR. More...
 
virtual ~SdsmDrawCallback ()
 DTOR. More...
 
virtual void operator() (osg::RenderInfo &renderInfo) const
 Callback Method to setup framebuffer object and pixel buffer objects for readback of the sampled depth from the gpu. More...
 
float minDepth () const
 Returns the minimum non-linear depth value of obtained from the oldest pixel buffer object. More...
 
float maxDepth () const
 Returns the maximum non-linear depth value of obtained from the oldest pixel buffer object. More...
 
float minDepth (unsigned int splitIndex) const
 Returns the minimum non-linear depth value per split of obtained from the oldest pixel buffer object. More...
 
float maxDepth (unsigned int splitIndex) const
 Returns the maximum non-linear depth value per split of obtained from the oldest pixel buffer object. More...
 
osg::Vec2 partition (unsigned int splitIndex) const
 Returns the minimum and maximum depth value per split obtained from non-linear depth value of obtained from the oldest pixel buffer object. More...
 
bool isSDSMDepthAvailable () const
 Returns true if SDSM depth is already sampled and available from at least one pixel buffer object in the pipeline. More...
 

Private Attributes

std::vector< osg::Vec2 > myPartitions
 
unsigned int myFBOBufferIndex
 
std::vector< unsigned intmyPBOBufferIndex
 
unsigned int myCurrentPBOIndex
 
unsigned int myColorTextureIndex
 
unsigned int myDepthRBOBufferIndex
 
GLenum myColorAttachment
 
bool myBindFbo
 
unsigned int myWidth
 
unsigned int myHeight
 
float myMinDepth
 
float myMaxDepth
 
float myMinDepthArray [20]
 
float myMaxDepthArray [20]
 
bool mySDSMDepthAvailable
 

Constructor & Destructor Documentation

makVrv::SdsmDrawCallback::SdsmDrawCallback ( bool  bindFbo,
GLenum  colorAttachment,
unsigned int  numPipelines,
unsigned int  numPartitions,
unsigned int  width,
unsigned int  height 
)

CTOR.

virtual makVrv::SdsmDrawCallback::~SdsmDrawCallback ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::SdsmDrawCallback::operator() ( osg::RenderInfo &  renderInfo) const
virtual

Callback Method to setup framebuffer object and pixel buffer objects for readback of the sampled depth from the gpu.

float makVrv::SdsmDrawCallback::minDepth ( ) const

Returns the minimum non-linear depth value of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::maxDepth ( ) const

Returns the maximum non-linear depth value of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::minDepth ( unsigned int  splitIndex) const

Returns the minimum non-linear depth value per split of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::maxDepth ( unsigned int  splitIndex) const

Returns the maximum non-linear depth value per split of obtained from the oldest pixel buffer object.

osg::Vec2 makVrv::SdsmDrawCallback::partition ( unsigned int  splitIndex) const

Returns the minimum and maximum depth value per split obtained from non-linear depth value of obtained from the oldest pixel buffer object.

bool makVrv::SdsmDrawCallback::isSDSMDepthAvailable ( ) const

Returns true if SDSM depth is already sampled and available from at least one pixel buffer object in the pipeline.

Member Data Documentation

std::vector<osg::Vec2> makVrv::SdsmDrawCallback::myPartitions
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myFBOBufferIndex
mutableprivate
std::vector<unsigned int> makVrv::SdsmDrawCallback::myPBOBufferIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myCurrentPBOIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myColorTextureIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myDepthRBOBufferIndex
mutableprivate
GLenum makVrv::SdsmDrawCallback::myColorAttachment
private
bool makVrv::SdsmDrawCallback::myBindFbo
private
unsigned int makVrv::SdsmDrawCallback::myWidth
private
unsigned int makVrv::SdsmDrawCallback::myHeight
private
float makVrv::SdsmDrawCallback::myMinDepth
mutableprivate
float makVrv::SdsmDrawCallback::myMaxDepth
mutableprivate
float makVrv::SdsmDrawCallback::myMinDepthArray[20]
mutableprivate
float makVrv::SdsmDrawCallback::myMaxDepthArray[20]
mutableprivate
bool makVrv::SdsmDrawCallback::mySDSMDepthAvailable
mutableprivate

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)