osgEarth 2.1.1
Classes | Namespaces | Defines | Functions

/home/cube/sources/osgearth/src/osgEarth/FindNode File Reference

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 Documentation

#define ADJUST_UPDATE_TRAV_COUNT (   NODE,
  DELTA 
)
Value:
{ \
        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

Definition at line 103 of file FindNode.

#define OSGEARTH_FINDNODE   1

Definition at line 21 of file FindNode.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines