OpenSceneGraph
3.0.1
|
Public Member Functions | |
OcclusionQueryNode () | |
OcclusionQueryNode (const OcclusionQueryNode &oqn, const osg::CopyOp ©op=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::StateSet * | getQueryStateSet () |
const osg::StateSet * | getQueryStateSet () const |
void | setDebugStateSet (osg::StateSet *ss) |
osg::StateSet * | getDebugStateSet () |
const osg::StateSet * | getDebugStateSet () 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 |
typedef std::map< const osg::Camera*, unsigned int > osg::OcclusionQueryNode::FrameCountMap [protected] |
osg::OcclusionQueryNode::OcclusionQueryNode | ( | ) |
osg::OcclusionQueryNode::OcclusionQueryNode | ( | const OcclusionQueryNode & | oqn, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osg::OcclusionQueryNode::~OcclusionQueryNode | ( | ) | [protected, virtual] |
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 | ||
) |
OpenThreads::Mutex osg::OcclusionQueryNode::_computeBoundMutex [mutable, protected] |
bool osg::OcclusionQueryNode::_debugBB [protected] |
osg::ref_ptr< osg::Geode > osg::OcclusionQueryNode::_debugGeode [protected] |
bool osg::OcclusionQueryNode::_enabled [protected] |
FrameCountMap osg::OcclusionQueryNode::_frameCountMap [protected] |
OpenThreads::Mutex osg::OcclusionQueryNode::_frameCountMutex [mutable, protected] |
bool osg::OcclusionQueryNode::_passed [protected] |
unsigned int osg::OcclusionQueryNode::_queryFrameCount [protected] |
osg::ref_ptr< osg::Geode > osg::OcclusionQueryNode::_queryGeode [protected] |
unsigned int osg::OcclusionQueryNode::_visThreshold [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5. |