OpenSceneGraph  3.0.1
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
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

osg::OcclusionQueryNode::OcclusionQueryNode ( )
osg::OcclusionQueryNode::OcclusionQueryNode ( const OcclusionQueryNode oqn,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osg::OcclusionQueryNode::~OcclusionQueryNode ( ) [protected, virtual]

Member Function Documentation

virtual osg::BoundingSphere osg::OcclusionQueryNode::computeBound ( ) const [virtual]

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]
bool osg::OcclusionQueryNode::getDebugDisplay ( ) const
osg::StateSet* osg::OcclusionQueryNode::getDebugStateSet ( )
const osg::StateSet* osg::OcclusionQueryNode::getDebugStateSet ( ) const
bool osg::OcclusionQueryNode::getPassed ( ) const
virtual bool osg::OcclusionQueryNode::getPassed ( const osg::Camera camera,
osg::NodeVisitor nv 
) [virtual]
bool osg::OcclusionQueryNode::getQueriesEnabled ( ) const [inline]
unsigned int osg::OcclusionQueryNode::getQueryFrameCount ( ) const [inline]
osg::StateSet* osg::OcclusionQueryNode::getQueryStateSet ( )
const osg::StateSet* osg::OcclusionQueryNode::getQueryStateSet ( ) const
unsigned int osg::OcclusionQueryNode::getVisibilityThreshold ( ) const [inline]
osg::OcclusionQueryNode::META_Node ( osg  ,
OcclusionQueryNode   
)
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::setDebugDisplay ( bool  enable)
void osg::OcclusionQueryNode::setDebugStateSet ( osg::StateSet ss)
void osg::OcclusionQueryNode::setQueriesEnabled ( bool  enable = true)
void osg::OcclusionQueryNode::setQueryFrameCount ( unsigned int  frames) [inline]
void osg::OcclusionQueryNode::setQueryStateSet ( osg::StateSet ss)
void osg::OcclusionQueryNode::setVisibilityThreshold ( unsigned int  pixels) [inline]
void osg::OcclusionQueryNode::traverseDebug ( osg::NodeVisitor nv)
void osg::OcclusionQueryNode::traverseQuery ( const osg::Camera camera,
osg::NodeVisitor nv 
)

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 Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.