VR-Forces 4.6 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.
virtual ~SdsmDrawCallback ()
 DTOR.
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.
float minDepth () const
 Returns the minimum non-linear depth value of obtained from the oldest pixel buffer object.
float maxDepth () const
 Returns the maximum non-linear depth value of obtained from the oldest pixel buffer object.
float minDepth (unsigned int splitIndex) const
 Returns the minimum non-linear depth value per split of obtained from the oldest pixel buffer object.
float maxDepth (unsigned int splitIndex) const
 Returns the maximum non-linear depth value per split of obtained from the oldest pixel buffer object.
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.
bool isSDSMDepthAvailable () const
 Returns true if SDSM depth is already sampled and available from at least one pixel buffer object in the pipeline.

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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)