osgEarth 2.1.1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends

osgEarth::Features::FeatureGeometryIndex Class Reference

Inheritance diagram for osgEarth::Features::FeatureGeometryIndex:
Collaboration diagram for osgEarth::Features::FeatureGeometryIndex:

List of all members.

Public Types

typedef std::map< FeatureID,
FeatureGeometryRecord
FeatureRecords

Public Member Functions

const FeatureGeometryRecordget (FeatureID fid) const
const FeatureRecordsgetRecords () const

Private Member Functions

 FeatureGeometryIndex ()

Private Attributes

FeatureRecords _records

Friends

class FeatureGeometryIndexBuilder

Detailed Description

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.


Member Typedef Documentation

Definition at line 79 of file FeatureGeometryIndex.


Constructor & Destructor Documentation

FeatureGeometryIndex::FeatureGeometryIndex ( ) [private]

Definition at line 83 of file FeatureGeometryIndex.cpp.

{
    //nop
}

Member Function Documentation

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;
}

Here is the caller graph for this function:

const FeatureRecords& osgEarth::Features::FeatureGeometryIndex::getRecords ( ) const [inline]

Gets the entire database for self-iteration

Definition at line 86 of file FeatureGeometryIndex.

{ return _records; }

Friends And Related Function Documentation

friend class FeatureGeometryIndexBuilder [friend]

Definition at line 90 of file FeatureGeometryIndex.


Member Data Documentation

Definition at line 89 of file FeatureGeometryIndex.


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