VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtNavigationLightManager Class Reference

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.

Inheritance diagram for makVrv::DtNavigationLightManager:
Inheritance graph
[legend]

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)
 
DtNavigationFeaturefindFeature (DtUniqueID elementId)
 
virtual bool destroyFeature (DtUniqueID id)
 
virtual DtUniqueID findFeatureWithPosition (const DtVector &position)
 
const FeatureMapfeatures () const
 
FeatureMapfeatures ()
 

Protected Member Functions

 DtNavigationLightManager ()
 
 DtNavigationLightManager (const DtNavigationLightManager &orig)
 
DtNavigationLightManageroperator= (const DtNavigationLightManager &rhs)
 
virtual void attachToBuoyOrBeacon (DtNavigationFeature &controller, DtBuoyOrBeaconFacade &buoy)
 
virtual void detachFromBuoyOrBeacon (DtNavigationFeature &controller, DtBuoyOrBeaconFacade &buoy)
 
virtual void adjustHeightForLight (DtNavigationFeature &controller, DtBuoyOrBeaconFacade &facade)
 
- Protected Member Functions inherited from makVrv::DtNavigationFeatureManager
 DtNavigationFeatureManager ()
 
 DtNavigationFeatureManager (const DtNavigationFeatureManager &orig)
 
DtNavigationFeatureManageroperator= (const DtNavigationFeatureManager &rhs)
 
virtual void setPresenceSwitchNumber (int switchNum)
 
virtual int presenceSwitchNumber () const
 
virtual void setTypeSwitchNumber (int typeNum)
 
virtual int typeSwitchNumber () const
 
virtual void moveFeatureToDetachedFeatureList (DtUniqueID controllerId)
 
virtual void moveFeatureToAttachedFeatureList (DtUniqueID controllerId)
 
virtual void initializeFeatureCreators ()
 
virtual void slot_featureToBeDeleted (const std::string &myLayerName, DtUniqueID featureId)
 
virtual void slot_buoyOrBeaconCreated (DtBuoyOrBeaconFacade &buoy, const DtVector &initialPosition)
 
virtual void slot_buoyOrBeaconAboutToBeDestroyed (const DtBuoyOrBeaconFacade &buoy)
 
void slot_sceneCreated ()
 
void slot_postInitialize ()
 

Protected Attributes

float myDaylightLightLevel
 
float myFogVisibilityLevel
 
DtNavigationLightUpdater myUpdater
 
- Protected Attributes inherited from makVrv::DtNavigationFeatureManager
DtDemyDe
 
DtAgentManagerInterfacemySceneInterface
 
FeatureMap myFeatures
 
DtSignalConnectionManager myConnections
 
std::string myName
 
DtBuoyBeaconLayer::AttachableTypes myAttachableType
 
std::string myFeatureLayerList
 
std::string myFeatureAttrMapFilename
 
DtNavigationFeatureBuildermyNavigationFeatureBuilder
 
int myPresenceSwitchNumber
 
int myTypeSwitchNumber
 
FeatureStylesList myFeatureStylesList
 
PendingFeatureAttachmentMap myDetachedFeatures
 
PendingFeatureAttachmentMap myAttachedFeatures
 
FeatureToFeatureMap myFeatureToBuoyOrBeaconMap
 
FeatureToFeatureMap myBuoyOrBeaconToFeatureMap
 
DtBuoyBeaconLayermyBuoyBeaconLayer
 
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
 

Constructor & Destructor Documentation

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 makVrv::DtNavigationLightManager::~DtNavigationLightManager ( )
virtual

DTOR.

makVrv::DtNavigationLightManager::DtNavigationLightManager ( )
protected

CTOR (unimplemented default CTOR )

makVrv::DtNavigationLightManager::DtNavigationLightManager ( const DtNavigationLightManager orig)
protected

Copy CTOR (unimplemented)

Member Function Documentation

virtual bool makVrv::DtNavigationLightManager::needsUpdate ( DtTime  tNow)
virtual

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().

Parameters
[in]tNowis the current time-stamp.
Return values
true
virtual void makVrv::DtNavigationLightManager::update ( DtTime  tNow)
virtual

The update function called by DtTickableManager during update-ticks.

Parameters
[in]tNowis 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.

  1. m is used, but this can be used to change it
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.

  1. m is used, but this can be used to change it
DtNavigationLightManager& makVrv::DtNavigationLightManager::operator= ( const DtNavigationLightManager rhs)
protected

Assigment operator (unimplemented)

virtual void makVrv::DtNavigationLightManager::attachToBuoyOrBeacon ( DtNavigationFeature controller,
DtBuoyOrBeaconFacade buoy 
)
protectedvirtual

Helper function for setting up a buoy attachment.

Reimplemented from makVrv::DtNavigationFeatureManager.

virtual void makVrv::DtNavigationLightManager::detachFromBuoyOrBeacon ( DtNavigationFeature controller,
DtBuoyOrBeaconFacade buoy 
)
protectedvirtual

Helper function for detaching from a buoy.

Reimplemented from makVrv::DtNavigationFeatureManager.

virtual void makVrv::DtNavigationLightManager::adjustHeightForLight ( DtNavigationFeature controller,
DtBuoyOrBeaconFacade facade 
)
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.

Member Data Documentation

float makVrv::DtNavigationLightManager::myDaylightLightLevel
protected
float makVrv::DtNavigationLightManager::myFogVisibilityLevel
protected
DtNavigationLightUpdater makVrv::DtNavigationLightManager::myUpdater
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)