![]() |
VR-Forces 5.0.3 Developer's Guide
|
The DtStreamedFeatureLayer is the base implementation of a layer of data which contains buoys and beacons that are part of the terrain.
Public Types | |
| typedef std::map< DtUniqueID, DtProp * > | StreamedFeatureMap |
Public Member Functions | |
| DtStreamedFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface) | |
| virtual | ~DtStreamedFeatureLayer () |
| virtual void | addFeature (DtProp *feature, DtUniqueID elementId) |
| virtual bool | destroyFeature (DtUniqueID elementId) |
| virtual DtProp * | findFeature (DtUniqueID elementId) |
| const StreamedFeatureMap & | features () const |
Protected Types | |
| typedef boost::unordered_multimap < std::string, std::string > | StylesMap |
Protected Member Functions | |
| void | slot_sceneCreated () |
| void | slot_postInitialize () |
| virtual void | initializeFeatureCreators () |
| bool | readStyleListFile (const std::string &path, const std::string &layerListFileName, StylesMap &map) |
Protected Attributes | |
| DtDe & | myDe |
| DtAgentManagerInterface & | mySceneInterface |
| StreamedFeatureMap | myFeatures |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| StylesMap | myStylesMap |
| boost::signalslib::connection | myPostInitializeConnection |
| typedef std::map<DtUniqueID, DtProp*> makVrv::DtStreamedFeatureLayer::StreamedFeatureMap |
List of Buoys and Beacons.
|
protected |
Type for sets of style names (layers) we listen to.
| makVrv::DtStreamedFeatureLayer::DtStreamedFeatureLayer | ( | DtDe & | de, |
| DtAgentManagerInterface & | sceneInterface | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Add Buoy or beacon. Ownership of the Buoy or beacon will be passed to the layer. hasNavLights flag puts the objects location/ and id onto list of objects to search through when streamed lights are attached. hasNavDaymarks and hasNavTopmarks work similarly.
is passed in since it won't be available yet from the facade, and we need that exact location kept around because that is how attachable items are matched to the objects they're attached to
|
virtual |
Destroys the Buoy or Beacon with the unique id. Returns true if the object was destroyed, false otherwise.
|
virtual |
Finds a pointer to the Buoy or Beacon on the feature layer with the same identifiers as the passed in id.
| const StreamedFeatureMap& makVrv::DtStreamedFeatureLayer::features | ( | ) | const |
Get the container of Buoys and Beacons associated with the layer.
|
protected |
If the IG is initialized when this is called, it will call initializeFeatureCreators. Otherwise, it connects to the postInitialize signal, which will then call initializeFeatureCreators.
|
protected |
slot used to wait for postInitialized signal
|
protectedvirtual |
Register creators with the streamed feature manager for each buoy and beacon layer of interest.
|
protected |
Read a file that specifies a list of osgEarth style names that we wish to have our registered builder called for when features are streamed in.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |