osgEarth 2.1.1
|
Public Member Functions | |
FindVisitor (FeatureID id) | |
void | apply (osg::Node &node) |
Public Attributes | |
FeatureID | _id |
const FeatureGeometryRecord * | _rec |
Definition at line 28 of file FeatureGeometryIndex.cpp.
anonymous_namespace{FeatureGeometryIndex.cpp}::FindVisitor::FindVisitor | ( | FeatureID | id | ) | [inline] |
Definition at line 30 of file FeatureGeometryIndex.cpp.
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 ); }
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.