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

Public Member Functions | |
| DtNavigationLightManager (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 | ~DtNavigationLightManager () |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | update (DtTime tNow) |
| void | setDaylightLightLevel (float daylightLevel) |
| float | daylightLightLevel () const |
| void | setFogVisibilityLevel (float fogVisibilityLevel) |
| float | fogVisibilityLevel () const |
Public Member Functions inherited from 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) | |
| 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 Attributes | |
| float | myDaylightLightLevel |
| float | myFogVisibilityLevel |
| DtNavigationLightUpdater | myUpdater |
Protected Attributes inherited from makVrv::DtNavigationFeatureManager | |
| DtDe & | myDe |
| DtAgentManagerInterface & | mySceneInterface |
| FeatureMap | myFeatures |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| DtBuoyBeaconLayer::AttachableTypes | myAttachableType |
| std::string | myFeatureLayerList |
| std::string | myFeatureAttrMapFilename |
| DtNavigationFeatureBuilder * | myNavigationFeatureBuilder |
| int | myPresenceSwitchNumber |
| int | myTypeSwitchNumber |
| FeatureStylesList | myFeatureStylesList |
| PendingFeatureAttachmentMap | myDetachedFeatures |
| PendingFeatureAttachmentMap | myAttachedFeatures |
| FeatureToFeatureMap | myFeatureToBuoyOrBeaconMap |
| FeatureToFeatureMap | myBuoyOrBeaconToFeatureMap |
| DtBuoyBeaconLayer & | myBuoyBeaconLayer |
| boost::signalslib::connection | myPostInitializeConnection |
Additional Inherited Members | |
Public Types inherited from makVrv::DtNavigationFeatureManager | |
| typedef std::map< DtUniqueID, DtNavigationFeature * > | FeatureMap |
Protected Types inherited from makVrv::DtNavigationFeatureManager | |
| typedef std::list< std::string > | FeatureStylesList |
| typedef boost::unordered_map < DtUniqueID, DtVector > | PendingFeatureAttachmentMap |
| typedef boost::unordered_map < DtUniqueID, DtUniqueID > | FeatureToFeatureMap |
| makVrv::DtNavigationLightManager::DtNavigationLightManager | ( | 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)
Tickable implementation The check function called by DtTickableManager to verify if an update is required. If this function returns true, the DtTickableManager will then call update().
| [in] | tNow | is the current time-stamp. |
| true |
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. This method calls update() for all attached light controllers |
| void makVrv::DtNavigationLightManager::setDaylightLightLevel | ( | float | daylightLevel | ) |
Set/get the light level (as found in DtEnvironment) that must be met or exceeded to consider the current light conditions to be daylight, for turn on and off day / night only lights. Normally 0.75 is used, but this provides a mechanism to change it.
| float makVrv::DtNavigationLightManager::daylightLightLevel | ( | ) | const |
Set/get the light level (as found in DtEnvironment) that must be met or exceeded to consider the current light conditions to be daylight, for turn on and off day / night only lights. Normally 0.75 is used, but this provides a mechanism to change it.
| void makVrv::DtNavigationLightManager::setFogVisibilityLevel | ( | float | fogVisibilityLevel | ) |
Set/get the visibility level (as found in DtEnvironment) at or below which conditions are foggy (for activating fog lights). Normally.
| float makVrv::DtNavigationLightManager::fogVisibilityLevel | ( | ) | const |
Set/get the visibility level (as found in DtEnvironment) at or below which conditions are foggy (for activating fog lights). Normally.
|
protected |
Assigment operator (unimplemented)
|
protectedvirtual |
Helper function for setting up a buoy attachment.
Reimplemented from makVrv::DtNavigationFeatureManager.
|
protectedvirtual |
Helper function for detaching from a buoy.
Reimplemented from makVrv::DtNavigationFeatureManager.
|
protectedvirtual |
This method will adjust the height of the object IF it is not buoyant and IF the model definition for the object provides a heightAboveOrigin parameter.
|
protected |
|
protected |
|
protected |