|
osgEarth 2.1.1
|
Public Types | |
| typedef FeatureGeometryIndexBuilder::PrimSetFeatureIdMap | IdMap |
Public Member Functions | |
| Collector (const IdMap &ids, FeatureGeometryIndex::FeatureRecords &recs) | |
| void | apply (osg::Geode &geode) |
Public Attributes | |
| FeatureGeometryIndex::FeatureRecords & | _recs |
| const FeatureGeometryIndexBuilder::PrimSetFeatureIdMap & | _ids |
Definition at line 99 of file FeatureGeometryIndex.cpp.
| typedef FeatureGeometryIndexBuilder::PrimSetFeatureIdMap anonymous_namespace{FeatureGeometryIndex.cpp}::Collector::IdMap |
Definition at line 101 of file FeatureGeometryIndex.cpp.
| anonymous_namespace{FeatureGeometryIndex.cpp}::Collector::Collector | ( | const IdMap & | ids, |
| FeatureGeometryIndex::FeatureRecords & | recs | ||
| ) | [inline] |
Definition at line 103 of file FeatureGeometryIndex.cpp.
| void anonymous_namespace{FeatureGeometryIndex.cpp}::Collector::apply | ( | osg::Geode & | geode | ) | [inline] |
Definition at line 108 of file FeatureGeometryIndex.cpp.
{
for( unsigned i=0; i<geode.getNumDrawables(); ++i )
{
osg::Geometry* geom = geode.getDrawable(i)->asGeometry();
if ( geom )
{
for( unsigned j=0; j<geom->getNumPrimitiveSets(); ++j )
{
osg::PrimitiveSet* primSet = geom->getPrimitiveSet(j);
IdMap::const_iterator k = _ids.find( primSet );
if ( k != _ids.end() )
{
FeatureID fid = k->second;
FeatureGeometryRecord& rec = _recs[fid];
rec._geode = &geode;
rec._primSetsByGeometry[geom].push_back( primSet );
}
}
}
}
traverse( geode );
}
| const FeatureGeometryIndexBuilder::PrimSetFeatureIdMap& anonymous_namespace{FeatureGeometryIndex.cpp}::Collector::_ids |
Definition at line 134 of file FeatureGeometryIndex.cpp.
| FeatureGeometryIndex::FeatureRecords& anonymous_namespace{FeatureGeometryIndex.cpp}::Collector::_recs |
Definition at line 133 of file FeatureGeometryIndex.cpp.
1.7.3