osgEarth 2.1.1
Classes | Functions

anonymous_namespace{MultiPassTerrainTechnique.cpp} Namespace Reference

Classes

struct  LayerData

Functions

static osg::Geode * s_findGeodeByUID (osg::Group *group, UID layerUID)

Function Documentation

static osg::Geode* anonymous_namespace{MultiPassTerrainTechnique.cpp}::s_findGeodeByUID ( osg::Group *  group,
UID  layerUID 
) [static]

Definition at line 53 of file MultiPassTerrainTechnique.cpp.

    {
        for( unsigned int i=0; i<group->getNumChildren(); ++i )
        {
            osg::Geode* geode = static_cast<osg::Geode*>( group->getChild(i) );
            LayerData* d = static_cast<LayerData*>( geode->getUserData() );
            if ( d && d->_layerUID == layerUID )
                return geode;
        }
        return 0L;
    }

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines