osgEarth 2.1.1
|
Public Types | |
typedef std::map< FeatureID, FeatureGeometryRecord > | FeatureRecords |
Public Member Functions | |
const FeatureGeometryRecord * | get (FeatureID fid) const |
const FeatureRecords & | getRecords () const |
Private Member Functions | |
FeatureGeometryIndex () | |
Private Attributes | |
FeatureRecords | _records |
Friends | |
class | FeatureGeometryIndexBuilder |
Index that lets you look up the OSG components that comprise a given Feature. Given the Feature ID, this index will return a set of Geode, Geometies, and PrimitiveSets that make up the feature.
Use a FeatureGeometryIndexBuilder to create an index. Typically you can then attach the index to a node in the scene graph that you used to create the index.
Definition at line 76 of file FeatureGeometryIndex.
typedef std::map< FeatureID, FeatureGeometryRecord > osgEarth::Features::FeatureGeometryIndex::FeatureRecords |
Definition at line 79 of file FeatureGeometryIndex.
FeatureGeometryIndex::FeatureGeometryIndex | ( | ) | [private] |
Definition at line 83 of file FeatureGeometryIndex.cpp.
{
//nop
}
const FeatureGeometryRecord * FeatureGeometryIndex::get | ( | FeatureID | fid | ) | const |
Gets the record associated with the feature ID, or NULL if there isn't one
Definition at line 89 of file FeatureGeometryIndex.cpp.
{ FeatureRecords::const_iterator i = _records.find( fid ); return i != _records.end () ? &(i->second) : 0L; }
const FeatureRecords& osgEarth::Features::FeatureGeometryIndex::getRecords | ( | ) | const [inline] |
Gets the entire database for self-iteration
Definition at line 86 of file FeatureGeometryIndex.
{ return _records; }
friend class FeatureGeometryIndexBuilder [friend] |
Definition at line 90 of file FeatureGeometryIndex.
Definition at line 89 of file FeatureGeometryIndex.