![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtNavigationFeatureManager matches streamed features to other streamed features (buoys and beacons) that have the same location. It is also responsible for removing them when the streamed features page out.

Public Types | |
| typedef std::map< DtUniqueID, DtNavigationFeature * > | FeatureMap |
Public Member Functions | |
| DtNavigationFeatureManager (const std::string &name, DtDe &de, DtAgentManagerInterface &sceneInterface, DtBuoyBeaconLayer &buoyBeaconLayer, DtBuoyBeaconLayer::AttachableTypes attType, const std::string &featureLayerList, const std::string &featureAttrMapFilename, DtNavigationFeatureBuilder *featureBuilder, int presenceSwitchNum, int typeSwitchNum) | |
| virtual | ~DtNavigationFeatureManager () |
| bool | readFeatureStyleListFile (const std::string &path, const std::string &layerListFileName) |
| virtual void | addFeature (DtNavigationFeature *feature) |
| DtNavigationFeature * | findFeature (DtUniqueID elementId) |
| virtual bool | destroyFeature (DtUniqueID id) |
| virtual DtUniqueID | findFeatureWithPosition (const DtVector &position) |
| const FeatureMap & | features () const |
| FeatureMap & | features () |
Protected Types | |
| typedef std::list< std::string > | FeatureStylesList |
| typedef boost::unordered_map < DtUniqueID, DtVector > | PendingFeatureAttachmentMap |
| typedef boost::unordered_map < DtUniqueID, DtUniqueID > | FeatureToFeatureMap |
| typedef std::map<DtUniqueID, DtNavigationFeature*> makVrv::DtNavigationFeatureManager::FeatureMap |
Type for a map of controller IDs to DtNavigationFeature.
|
protected |
|
protected |
Type for hash table of feature ids and locations.
|
protected |
Type for hash tables of features to attached buoys and attached buoys to features.
| makVrv::DtNavigationFeatureManager::DtNavigationFeatureManager | ( | const std::string & | name, |
| DtDe & | de, | ||
| DtAgentManagerInterface & | sceneInterface, | ||
| DtBuoyBeaconLayer & | buoyBeaconLayer, | ||
| DtBuoyBeaconLayer::AttachableTypes | attType, | ||
| const std::string & | featureLayerList, | ||
| const std::string & | featureAttrMapFilename, | ||
| DtNavigationFeatureBuilder * | featureBuilder, | ||
| int | presenceSwitchNum, | ||
| int | typeSwitchNum | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
protected |
CTOR (unimplemented default CTOR )
|
protected |
Copy CTOR (unimplemented)
| bool makVrv::DtNavigationFeatureManager::readFeatureStyleListFile | ( | const std::string & | path, |
| const std::string & | layerListFileName | ||
| ) |
Read the file that specifies the list of osgEarth style names that we wish to have our registered builder called for when features are streamed in.
|
virtual |
Add a feature (ex. light, daymark). The manager takes ownership of the controller.
| DtNavigationFeature* makVrv::DtNavigationFeatureManager::findFeature | ( | DtUniqueID | elementId | ) |
Finds a pointer to the feature controller with the given element id.
|
virtual |
Destroys the feature with the element id. Returns true if the feature was destroyed, false otherwise.
| const FeatureMap& makVrv::DtNavigationFeatureManager::features | ( | ) | const |
Get the container of features associated held by the manager.
| FeatureMap& makVrv::DtNavigationFeatureManager::features | ( | ) |
Get the container of features associated held by the manager.
|
virtual |
Look through the list of unattached features for a feature with the specified position.
|
protected |
Assignment operator (unimplemented)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Helper function for setting up a buoy/beacon attachment.
Reimplemented in makVrv::DtNavigationLightManager.
|
protectedvirtual |
Helper function for detaching from a buoy/beacon.
Reimplemented in makVrv::DtNavigationLightManager.
|
protectedvirtual |
Move features from the list of attached features to the list of unattached features.
|
protectedvirtual |
Move features from the list of unattached features to the list of attached features.
|
protectedvirtual |
Register creators with the streamed feature manager for each feature layer (osgEarth model style) of interest.
|
protectedvirtual |
Slot connected to signal from the streamed feature manager that a feature has paged out.
|
protectedvirtual |
Slot connected to signal from the streamed feature manager that a buoy has paged in.
|
protectedvirtual |
Slot connected to signal from the streamed feature manager that a buoy has paged out.
|
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
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The list of osgEarth model styles we want to be notified about.
|
protected |
Features start here. When attached they move to...
|
protected |
...here. When buoys attached to a feature page out, they move back to the waiting list
|
protected |
|
protected |
|
protected |
Access to the buoys.
|
protected |