Public Member Functions |
| | DtEnvironmentalStateManager (DtSimManager *simManager) |
| | constructor
|
| virtual | ~DtEnvironmentalStateManager () |
| | destructor
|
| virtual bool | init () |
| virtual void | tick () |
| virtual DtSimManager * | simManager () |
| virtual bool | globalEnvironmentSimulatedLocally () const |
| virtual bool | startEnvironmentSimulationLocally () |
| | Starts simulating the global environment locally on this simulation engine.
|
| virtual DtSharedVrfObjectReference | weatherObjectFor (const DtUUID &=DtUUID::nullUUID(), bool *isGlobal=0) const |
| | Returns the weather object given the specified name (if blank uses global weather)
|
| virtual DtSharedVrfObjectReference | weatherObjectFor (const DtVector &localPosition, bool *isGlobal=0) const |
| | Returns the weather object of the highest priority at the given location.
|
virtual std::vector
< DtSharedVrfObjectReference > | weatherObjectsFor (const DtChord &localChord) const |
| | Returns all weather objects that are intersected by this chord.
|
| virtual DtSharedVrfObjectReference | weatherObjectFor (const DtChord &localChord, bool *isGlobal=0) const |
| | Returns the weather object of the first area hit by this chord.
|
| virtual DtSharedVrfObjectReference | cloudLayerFor (const DtUUID &) const |
| | Returns the cloud layer object given the specified name (if blank uses global weather)
|
| virtual DtSharedVrfObjectReference | cloudLayerFor (const DtVector &localPosition) const |
| | Returns the cloud layer at the given location. if multiple at the same location returns the first hit.
|
| virtual DtSharedVrfObjectReference | cloudLayerFor (const DtChord &localChord) const |
| | Returns the cloud layer object of the first area hit by this chord.
|
virtual std::vector
< DtSharedVrfObjectReference > | cloudLayersFor (const DtChord &localChord) const |
| | Returns all cloud layer objects that are intersected by this chord.
|
virtual std::vector
< DtSharedVrfObjectReference > | cloudLayers () const |
| | Returns a vector of all the cloud layers.
|
| virtual void | setCloudType (CloudLayerCloudType, const DtUUID &cloudLayer) |
| | Individual cloud layer mutators/accessors.
|
| virtual CloudLayerCloudType | cloudType (const DtUUID &cloudLayer) const |
| virtual CloudLayerCloudType | cloudType (const DtVector &cloudLayer) const |
| virtual void | setCloudAltitude (double, const DtUUID &cloudLayer) |
| virtual double | cloudAltitude (const DtUUID &cloudLayer) const |
| virtual double | cloudAltitude (const DtVector &cloudLayer) const |
| virtual void | setCloudThickness (double, const DtUUID &cloudLayer) |
| virtual double | cloudThickness (const DtUUID &cloudLayer) const |
| virtual double | cloudThickness (const DtVector &cloudLayer) const |
| virtual void | setCornerRadius (double, const DtUUID &cloudLayer) |
| virtual double | cornerRadius (const DtUUID &cloudLayer) const |
| virtual double | cornerRadius (const DtVector &cloudLayer) const |
| virtual void | setCloudDensity (double, const DtUUID &cloudLayer) |
| virtual double | cloudDensity (const DtUUID &cloudLayer) const |
| virtual double | cloudDensity (const DtVector &cloudLayer) const |
| virtual void | setCloudBox (const DtVector ¢er, double width, double length, const DtUUID &cloudLayer) |
| virtual void | cloudBox (const DtUUID &cloudLayer, DtVector ¢er, double &width, double &length) const |
| virtual void | cloudBox (const DtVector &cloudLayer, DtVector ¢er, double &width, double &length) const |
| virtual void | setCloudLayerState (const DtChangeCloudLayerCommand &command) |
| | Calls the appropriate setXXX() functions locally, depending on what is in the command.
|
| virtual double | illumination (const DtVector &localPosition) const |
| | Illumination in percentage (0 to 1.0) at a particular location.
|
| virtual double | expectedIllumination (const DtVector &localPosition, double dateAndTime) const |
| | The expected illumination in percentage (0 to 1.0) from the sun at a particular location and time.
|
| virtual void | setWeatherState (const DtChangeWeatherCommand &command) |
| | Calls the appropriate setXXX() functions locally, depending on what is in the command.
|
| virtual void | setUseDayNightIlluminationModel (const DtChangeTimeOfDayCommand &command) |
| | The current time of day, specified by the number of seconds passed midnight.
|
| virtual void | setDateAndTimeOfDay (double secondsPastMidnight) |
| virtual void | setDateAndTimeOfDay (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDay () const |
| virtual double | dateAndTimeOfDay () const |
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| | The current time of day advancement speed.
|
| virtual void | setTimeOfDayAdvancementSpeed (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDayAdvancementSpeed () const |
| virtual DtObjectType | globalEnvironmentObjectType () const |
| virtual void | createGlobalEnvironmentObject () |
| | Creates a new locally simulated VRF object with the type returned from glovalEnvironmentObjectType().
|
|
| virtual void | setAirTurbidity (double factor, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | For weather.
|
| virtual double | airTurbidity (const DtUUID &weatherArea) const |
| virtual double | airTurbidity (const DtVector &) const |
|
| virtual void | setAmbientAirTemperature (double temp, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Ambient Air Temperature (in Celsius)
|
| virtual double | ambientAirTemperature (const DtUUID &weatherArea) const |
| virtual double | ambientAirTemperature (const DtVector &) const |
|
| virtual void | setCloudState (DtVrfWeatherCloudState current, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Cloud state enumeration.
|
| virtual DtVrfWeatherCloudState | cloudState (const DtUUID &weatherArea) const |
| virtual DtVrfWeatherCloudState | cloudState (const DtVector &) const |
|
| virtual void | setPrecipitationIntensity (double factor, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Precipitation Intensity.
|
| virtual double | precipitationIntensity (const DtUUID &weatherArea) const |
| virtual double | precipitationIntensity (const DtVector &) const |
|
| virtual double | precipitationIntensity (const DtChord &) const |
| | Supply a chord in local coordinates – this will get the average precipitation intensity through a particular weather area or simply use global if it crosses no area.
|
|
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType current, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Weather state enumeration.
|
virtual
DtVrfWeatherPrecipitationType | precipitationType (const DtUUID &weatherArea) const |
virtual
DtVrfWeatherPrecipitationType | precipitationType (const DtVector &) const |
|
| virtual void | setWindSpeed (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wind speed in m/s.
|
| virtual double | windSpeed (const DtUUID &weatherArea) const |
| virtual double | windSpeed (const DtVector &) const |
|
| virtual void | setWindDirection (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wind direction in radians.
|
| virtual double | windDirection (const DtUUID &weatherArea) const |
| virtual double | windDirection (const DtVector &) const |
|
| virtual void | setVisibility (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Visibility in meters.
|
| virtual double | visibility (const DtUUID &weatherArea) const |
| virtual double | visibility (const DtVector &) const |
| virtual double | visibility (const DtChord &) const |
| | Supply a chord in local coordinates – this will get the visibility through a particular weather area or simply use global if it crosses no area.
|
|
| virtual void | setPriority (int p, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Sets the priority of the weather area. This value is not used for global weather.
|
| virtual int | priority (const DtUUID &weatherArea) const |
| virtual int | priority (const DtVector &) const |
|
| virtual void | setUnderwaterVisibility (double underwaterVisibility, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Underwater visibility in meters.
|
| virtual double | underwaterVisibility (const DtUUID &weatherArea) const |
| virtual double | underwaterVisibility (const DtVector &) const |
|
| virtual void | setSurfaceTransparency (double transparency, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Surface transparency (percentage)
|
| virtual double | surfaceTransparency (const DtUUID &weatherArea) const |
| virtual double | surfaceTransparency (const DtVector &) const |
|
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Water velocity in meters per second.
|
| virtual double | waterCurrentSpeed (const DtUUID &weatherArea) const |
| virtual double | waterCurrentSpeed (const DtVector &) const |
|
| virtual void | setWaterCurrentDirection (double waterCurrentDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Water direction in radians clockwise from 0 (north)
|
| virtual double | waterCurrentDirection (const DtUUID &weatherArea) const |
| virtual double | waterCurrentDirection (const DtVector &) const |
|
| virtual void | setAmbientWaterTemperature (double waterTemperature, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Ambient water temperature in Celsius.
|
| virtual double | ambientWaterTemperature (const DtUUID &weatherArea) const |
| virtual double | ambientWaterTemperature (const DtVector &) const |
|
| virtual void | setTidalOffset (double tidalOffset, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Tidal offset in meters from the water polygons in the database.
|
| virtual double | tidalOffset (const DtUUID &weatherArea) const |
| virtual double | tidalOffset (const DtVector &) const |
|
| virtual void | setUseDayNightIlluminationModel (bool) |
| | If false uses GMT as the position of sunrise/sunset (default) rather than entity position.
|
| virtual bool | useDayNightIlluminationModel () const |
|
| virtual void | setTidalDirection (bool tidalDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Tidal direction where true represents the tide going in and false represents the tide going out.
|
| virtual bool | tidalDirection (const DtUUID &weatherArea) const |
| virtual bool | tidalDirection (const DtVector &) const |
|
| virtual void | setSwellState (unsigned int state, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Swell state according to the Douglas Sea Scale (integer 0 - 9)
|
| virtual unsigned int | swellState (const DtUUID &weatherArea) const |
| virtual unsigned int | swellState (const DtVector &) const |
|
| virtual void | setSwellStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Swell direction in in radians clockwise from 0 (north)
|
| virtual double | swellStateDirection (const DtUUID &weatherArea) const |
| virtual double | swellStateDirection (const DtVector &) const |
|
| virtual void | setSeaState (unsigned int state, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Sea state according to the Douglas Sea Scale (integer 0 - 9)
|
| virtual unsigned int | seaState (const DtUUID &weatherArea) const |
| virtual unsigned int | seaState (const DtVector &) const |
|
| virtual void | setSeaStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Sea state direction in in radians clockwise from 0 (north)
|
| virtual double | seaStateDirection (const DtUUID &weatherArea) const |
| virtual double | seaStateDirection (const DtVector &) const |
|
| virtual void | setWindDrivenSeaStateEnabled (bool b, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Determines if the sea state is set based on the wind.
|
| virtual bool | windDrivenSeaStateEnabled (const DtUUID &weatherArea) const |
| virtual bool | windDrivenSeaStateEnabled (const DtVector &) const |
|
| virtual void | setChoppiness (double choppiness, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wave choppiness (0..1)
|
| virtual double | choppiness (const DtUUID &weatherArea) const |
| virtual double | choppiness (const DtVector &) const |
|
| virtual void | setSurgeDepth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Surge depth (meters)
|
| virtual double | surgeDepth (const DtUUID &weatherArea) const |
| virtual double | surgeDepth (const DtVector &) const |
|
| virtual void | setFogHeight (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Fog height (meters)
|
| virtual double | fogHeight (const DtUUID &weatherArea) const |
| virtual double | fogHeight (const DtVector &) const |
|
| virtual void | setFogColor (const DtVector &color, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Fog color (x = red, y = green, z = blue)
|
| virtual DtVector | fogColor (const DtUUID &weatherArea) const |
| virtual DtVector | fogColor (const DtVector &) const |
|
| virtual void | setThermoclineLayer1Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer1Depth (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer1Depth (const DtVector &) const |
| virtual void | setThermoclineLayer1Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer1Permeability (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer1Permeability (const DtVector &) const |
| virtual void | setThermoclineLayer2Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer2Depth (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer2Depth (const DtVector &) const |
| virtual void | setThermoclineLayer2Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer2Permeability (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer2Permeability (const DtVector &) const |
| virtual void | setThermoclineLayer3Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer3Depth (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer3Depth (const DtVector &) const |
| virtual void | setThermoclineLayer3Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer3Permeability (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer3Permeability (const DtVector &) const |
| virtual void | setThermoclineLayer4Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer4Depth (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer4Depth (const DtVector &) const |
| virtual void | setThermoclineLayer4Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer4Permeability (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer4Permeability (const DtVector &) const |
| virtual void | setThermoclineLayer5Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer5Depth (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer5Depth (const DtVector &) const |
| virtual void | setThermoclineLayer5Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer5Permeability (const DtUUID &weatherArea) const |
| virtual double | thermoclineLayer5Permeability (const DtVector &) const |
Handles the environmental state of the simulation.
Currently there is only one environmental state for the whole simulation. This manager provides access to the environmental state and is responsible for updating the environmental state from the network.
As a general rule an empty weatherArea name will return weather for the global area. A vector location of zero() will also return global weather