osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor Struct Reference

Collaboration diagram for anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor:

List of all members.

Public Member Functions

 FindVisitor (FeatureID id)
void apply (osg::Node &node)

Public Attributes

FeatureID _id
const FeatureGeometryRecord_rec

Detailed Description

Definition at line 28 of file FeatureGeometryIndex.cpp.


Constructor & Destructor Documentation

anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor::FindVisitor ( FeatureID  id) [inline]

Definition at line 30 of file FeatureGeometryIndex.cpp.

            : _id(id), 
              _rec(0L),
              osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN) { }

Member Function Documentation

void anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor::apply ( osg::Node &  node) [inline]

Definition at line 35 of file FeatureGeometryIndex.cpp.

        {
            if ( _rec )
                return;

            osg::Referenced* ref = node.getUserData();
            if ( ref )
            {
                FeatureGeometryIndex* index = dynamic_cast<FeatureGeometryIndex*>( ref );
                if ( index )
                {
                    _rec = index->get( _id );
                    if ( _rec )
                        return;
                }
            }
            traverse( node );
        }

Here is the call graph for this function:


Member Data Documentation

FeatureID anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor::_id

Definition at line 54 of file FeatureGeometryIndex.cpp.

const FeatureGeometryRecord* anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor::_rec

Definition at line 55 of file FeatureGeometryIndex.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines