osgEarth 2.1.1
|
Go to the source code of this file.
Classes | |
class | osgEarth::FindTopMostNodeOfTypeVisitor< T > |
Namespaces | |
namespace | osgEarth |
Defines | |
#define | OSGEARTH_FINDNODE 1 |
#define | ADJUST_UPDATE_TRAV_COUNT(NODE, DELTA) |
Functions | |
template<typename T > | |
T * | osgEarth::findTopMostNodeOfType (osg::Node *node) |
template<typename T > | |
T * | osgEarth::findFirstParentOfType (osg::Node *node) |
template<typename T > | |
T * | osgEarth::findRelativeNodeOfType (osg::Node *node) |
#define ADJUST_UPDATE_TRAV_COUNT | ( | NODE, | |
DELTA | |||
) |
{ \ int oldCount = NODE ->getNumChildrenRequiringUpdateTraversal(); \ if ( oldCount + DELTA >= 0 ) \ NODE ->setNumChildrenRequiringUpdateTraversal( (unsigned int)(oldCount + DELTA ) ); \ }
Adjusts a node's update traversal count by a delta. Only safe to call from the UPDATE thread