OpenSceneGraph  3.4.0
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
osg::OcclusionQueryNode Class Reference
Inheritance diagram for osg::OcclusionQueryNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 OcclusionQueryNode ()
 OcclusionQueryNode (const OcclusionQueryNode &oqn, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osg, OcclusionQueryNode)
virtual osg::BoundingSphere computeBound () const
 Compute the bounding sphere around Node's geometry or children.
virtual void releaseGLObjects (osg::State *state=0) const
 If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.
void setQueriesEnabled (bool enable=true)
bool getQueriesEnabled () const
void setVisibilityThreshold (unsigned int pixels)
unsigned int getVisibilityThreshold () const
void setQueryFrameCount (unsigned int frames)
unsigned int getQueryFrameCount () const
void setDebugDisplay (bool enable)
bool getDebugDisplay () const
void setQueryStateSet (osg::StateSet *ss)
osg::StateSetgetQueryStateSet ()
const osg::StateSetgetQueryStateSet () const
osg::QueryGeometrygetQueryGeometry ()
const osg::QueryGeometrygetQueryGeometry () const
void setDebugStateSet (osg::StateSet *ss)
osg::StateSetgetDebugStateSet ()
const osg::StateSetgetDebugStateSet () const
bool getPassed () const
virtual bool getPassed (const osg::Camera *camera, osg::NodeVisitor &nv)
void traverseQuery (const osg::Camera *camera, osg::NodeVisitor &nv)
void traverseDebug (osg::NodeVisitor &nv)

Static Public Member Functions

static void flushDeletedQueryObjects (unsigned int contextID, double currentTime, double &availableTime)
static void discardDeletedQueryObjects (unsigned int contextID)

Protected Types

typedef std::map< const
osg::Camera *, unsigned int > 
FrameCountMap

Protected Member Functions

virtual ~OcclusionQueryNode ()
virtual void createSupportNodes ()

Protected Attributes

osg::ref_ptr< osg::Geode_queryGeode
osg::ref_ptr< osg::Geode_debugGeode
bool _enabled
FrameCountMap _frameCountMap
OpenThreads::Mutex _frameCountMutex
bool _passed
unsigned int _visThreshold
unsigned int _queryFrameCount
bool _debugBB
OpenThreads::Mutex _computeBoundMutex

Member Typedef Documentation

typedef std::map< const osg::Camera*, unsigned int > osg::OcclusionQueryNode::FrameCountMap [protected]

Constructor & Destructor Documentation

virtual osg::OcclusionQueryNode::~OcclusionQueryNode ( ) [protected, virtual]

Member Function Documentation

Compute the bounding sphere around Node's geometry or children.

This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().

Reimplemented from osg::Group.

virtual void osg::OcclusionQueryNode::createSupportNodes ( ) [protected, virtual]
static void osg::OcclusionQueryNode::discardDeletedQueryObjects ( unsigned int  contextID) [static]
static void osg::OcclusionQueryNode::flushDeletedQueryObjects ( unsigned int  contextID,
double  currentTime,
double &  availableTime 
) [static]
virtual bool osg::OcclusionQueryNode::getPassed ( const osg::Camera camera,
osg::NodeVisitor nv 
) [virtual]
unsigned int osg::OcclusionQueryNode::getQueryFrameCount ( ) const [inline]
unsigned int osg::OcclusionQueryNode::getVisibilityThreshold ( ) const [inline]
virtual void osg::OcclusionQueryNode::releaseGLObjects ( osg::State = 0) const [virtual]

If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.

Otherwise, releases OpenGL objects for all graphics contexts.

Reimplemented from osg::Group.

void osg::OcclusionQueryNode::setQueryFrameCount ( unsigned int  frames) [inline]
void osg::OcclusionQueryNode::setVisibilityThreshold ( unsigned int  pixels) [inline]

Member Data Documentation

OpenThreads::Mutex osg::OcclusionQueryNode::_computeBoundMutex [mutable, protected]
OpenThreads::Mutex osg::OcclusionQueryNode::_frameCountMutex [mutable, protected]
unsigned int osg::OcclusionQueryNode::_visThreshold [protected]

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

osg logo
Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1.