|
| | DtEnvironmentalStateManager (DtSimManager *simManager) |
| | constructor More...
|
| |
| virtual | ~DtEnvironmentalStateManager () |
| | destructor More...
|
| |
| virtual bool | init () |
| |
| virtual void | tick () |
| |
| virtual DtSimManager * | simManager () |
| |
virtual const
DtWeatherStateProvider * | weatherStateProvider () const |
| | The weather state is obtained through an object that defines the interface. More...
|
| |
| virtual void | setWeatherStateProvider (DtWeatherStateProvider *w) |
| |
| virtual bool | globalEnvironmentSimulatedLocally () const |
| |
| virtual bool | startEnvironmentSimulationLocally () |
| | Starts simulating the global environment locally on this simulation engine. More...
|
| |
| virtual double | visualDetectionMinimumContrast () const |
| | This constant is the minimum contrast ratio often use to determine the threshold of visual detectability. More...
|
| |
| virtual void | computeSoilWeatherMobilityModifiers (const DtVector &location, const DtString &soilType, double &snowEffectFraction, DtString &alternateSoil, double &alternateSoilFraction, double &tractionModifier) const |
| | This function computes a set of modifiers for a given soil based on weather conditions at the given location, for the purposes of changing ground vehicle mobility. More...
|
| |
|
| virtual void | setWeatherState (const DtChangeWeatherCommand &command) |
| | Process change weather sim command. More...
|
| |
| virtual void | setCloudLayerState (const DtChangeCloudLayerCommand &command) |
| | Calls the appropriate setXXX() functions locally, depending on what is in the command. More...
|
| |
| virtual void | setUseDayNightIlluminationModel (const DtChangeTimeOfDayCommand &command) |
| |
|
These should not be called by VRF components to get weather information; instead, the weather attribute accessor functions should be used.
The accessor functions make use of the weather state provider, which may have been overridden to provide weather data using a mechanism other than local weather objects and cloud layer objects.
|
| virtual DtSharedVrfObjectReference | weatherObjectFor (const DtUUID &=DtUUID::nullUUID(), bool *isGlobal=0) const |
| | Returns the weather object given the specified name (if blank uses global weather) More...
|
| |
| virtual DtSharedVrfObjectReference | weatherObjectFor (const DtVector &localPosition, bool *isGlobal=0) const |
| | Returns the weather object of the highest priority at the given location. More...
|
| |
virtual std::vector
< DtSharedVrfObjectReference > | weatherObjectsFor (const DtChord &localChord) const |
| | Returns all weather objects that are intersected by this chord. More...
|
| |
| virtual DtSharedVrfObjectReference | cloudLayerFor (const DtUUID &) const |
| | Returns the cloud layer object given the specified name (if blank uses global weather) More...
|
| |
| virtual DtSharedVrfObjectReference | cloudLayerFor (const DtVector &localPosition) const |
| | Returns the cloud layer at the given location. More...
|
| |
virtual std::vector
< DtSharedVrfObjectReference > | cloudLayersFor (const DtChord &localChord) const |
| | Returns all cloud layer objects that are intersected by this chord. More...
|
| |
virtual std::vector
< CloudStateSegment > | cloudLayerDescriptionsAt (const DtVector &localPosition) const |
| | Returns simple structures describing cloud attributes for layers above the local position. More...
|
| |
| virtual DtSharedVrfObjectReference | windCorridorFor (const DtUUID &) const |
| | Returns the wind corridror object given the specified name. More...
|
| |
| virtual DtSharedVrfObjectReference | windCorridorFor (double &windHeading, const DtVector &localPosition) const |
| | Returns the wind corridor at the given location. More...
|
| |
virtual std::vector
< DtSharedVrfObjectReference > | windCorridorsFor (const DtChord &localChord) const |
| | Returns all wind corridor objects that are intersected by this chord. More...
|
| |
| virtual DtSharedVrfObjectReference | airTurbulenceFor (const DtUUID &) const |
| | Returns the air turbulence object given the specified name. More...
|
| |
| virtual DtSharedVrfObjectReference | airTurbulenceFor (const DtVector &localPosition) const |
| | Returns the air turbulence at the given location. More...
|
| |
virtual std::vector
< DtSharedVrfObjectReference > | airTurbulencesFor (const DtChord &localChord) const |
| | Returns all air turbulence objects that are intersected by this chord. More...
|
| |
|
|
| virtual double | airTurbidity (const DtVector &) const |
| | Air Turbidity. More...
|
| |
| virtual double | airTemperature (const DtVector &) const |
| | Ambient Air Temperature (in Celsius). This varies with altitude. More...
|
| |
| virtual double | airPressure (const DtVector &localPosition) const |
| | Air pressure at the given 3D location. In kiloPascals. More...
|
| |
| virtual double | airTemperatureAltitude (const DtVector &localPosition) const |
| | Air temperature altitude in meters. More...
|
| |
| virtual double | airPressureAltitude (const DtVector &localPosition) const |
| | Air pressure altitude in meters. More...
|
| |
| virtual bool | airTemperatureAltitudeIsSeaLevel (const DtVector &localPosition) const |
| | Air temperature altitude is sea level flag. More...
|
| |
| virtual bool | airPressureAltitudeIsSeaLevel (const DtVector &localPosition) const |
| | Air pressure altitude is sea level flag. More...
|
| |
| virtual double | humidity (const DtVector &localPosition) const |
| | Humidity in ppmv. More...
|
| |
| virtual double | precipitationIntensity (const DtVector &) const |
| | Precipitation Intensity. A scaled value with 1.0 = normalizedPrecipitationRate. More...
|
| |
| virtual double | averagePrecipitationIntensity (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. More...
|
| |
virtual
DtVrfWeatherPrecipitationType | precipitationType (const DtVector &) const |
| | Weather state enumeration. More...
|
| |
| virtual double | windSpeed (const DtVector &) const |
| | Wind speed in m/s. More...
|
| |
| virtual double | windDirection (const DtVector &) const |
| | Wind direction in radians. More...
|
| |
| virtual DtVrfTurbulenceLevel | airTurbulence (const DtVector &) const |
| | Turbulence level. More...
|
| |
| virtual bool | lightningPresent (const DtVector &localPosition) const |
| | Lightning Present. More...
|
| |
| virtual double | visibility (const DtVector &) const |
| | Visibility in meters, including precipitation. More...
|
| |
| virtual int | visibilityObscurant (const DtVector &) const |
| | Visibility in meters, including precipitation. More...
|
| |
| virtual double | visibility (const DtChord &) const |
| | Supply a chord in local coordinates. More...
|
| |
| virtual double | underwaterVisibility (const DtVector &) const |
| | Underwater visibility in meters. More...
|
| |
| virtual double | surfaceTransparency (const DtVector &) const |
| | Surface transparency (percentage). More...
|
| |
| virtual double | waterCurrentSpeed (const DtVector &) const |
| | Water velocity in meters per second. More...
|
| |
| virtual double | waterCurrentDirection (const DtVector &) const |
| | Water direction in radians clockwise from 0 (north) More...
|
| |
| virtual double | ambientWaterTemperature (const DtVector &) const |
| | Ambient water temperature in Celsius. More...
|
| |
| virtual double | tidalOffset (const DtVector &) const |
| | Tidal offset in meters from the water polygons in the database. More...
|
| |
| virtual bool | tidalDirection (const DtVector &) const |
| | Tidal direction where true represents the tide going in and false represents the tide going out. More...
|
| |
| virtual unsigned int | swellState (const DtVector &) const |
| | Swell state according to the Douglas Sea Scale (integer 0 - 9) More...
|
| |
| virtual double | swellStateDirection (const DtVector &) const |
| | Swell direction in in radians clockwise from 0 (north) More...
|
| |
| virtual unsigned int | seaState (const DtVector &) const |
| | Sea state according to the Douglas Sea Scale (integer 0 - 9) More...
|
| |
| virtual double | seaStateDirection (const DtVector &) const |
| | Sea state direction in in radians clockwise from 0 (north) More...
|
| |
| virtual double | choppiness (const DtVector &) const |
| | Wave choppiness (0..1) More...
|
| |
| virtual double | surgeDepth (const DtVector &) const |
| | Surge depth (meters) More...
|
| |
| virtual double | fogHeight (const DtVector &) const |
| | The height above which the (air) visibility effect begins to diminish. More...
|
| |
| virtual DtVector | fogColor (const DtVector &) const |
| | Air color (x = red, y = green, z = blue) when object visibility fades out at the visibility distance. More...
|
| |
| virtual double | snowAccumulation (const DtVector &) const |
| | Snow Accumulation (meters) More...
|
| |
| virtual double | snowRoadAccumulation (const DtVector &) const |
| | Snow Road Accumulation (meters). More...
|
| |
| virtual double | rainAccumulation (const DtVector &) const |
| | Rain Accumulation (meters) More...
|
| |
| virtual DtObjectType | globalEnvironmentObjectType () const |
| |
| virtual DtObjectType | metocServiceObjectType () const |
| |
| virtual DtUUID | initializeAndGetMetocWeatherService () |
| | Initializes the METOC Service object. More...
|
| |
| virtual void | setMetocEnabled (bool b) |
| | Sets METOC Publishing. More...
|
| |
| virtual bool | metocEnabled () const |
| | Returns whether METOC Publishing is enabled. More...
|
| |
| virtual double | thermoclineLayer1Depth (const DtVector &) const |
| | Thermocline depth (in meters) and permeability (0..1). More...
|
| |
| virtual double | thermoclineLayer1Permeability (const DtVector &) const |
| |
| virtual double | thermoclineLayer2Depth (const DtVector &) const |
| |
| virtual double | thermoclineLayer2Permeability (const DtVector &) const |
| |
| virtual double | thermoclineLayer3Depth (const DtVector &) const |
| |
| virtual double | thermoclineLayer3Permeability (const DtVector &) const |
| |
| virtual double | thermoclineLayer4Depth (const DtVector &) const |
| |
| virtual double | thermoclineLayer4Permeability (const DtVector &) const |
| |
| virtual double | thermoclineLayer5Depth (const DtVector &) const |
| |
| virtual double | thermoclineLayer5Permeability (const DtVector &) const |
| |
|
| virtual bool | windSpeedAndDirectionAtAltitude (const DtVector &, double altMSL, double &windSpeed, double &windDirection) const |
| |
| virtual bool | visibilityAndObscurantAtAltitude (const DtVector &, double altMSL, double &visibility, int &obscurant) const |
| | Given the altitude, return the wind speed and direction. More...
|
| |
|
| virtual void | setDateAndTimeOfDay (double secondsPastMidnight) |
| | The current time of day, specified by the number of seconds past midnight. More...
|
| |
| virtual void | setDateAndTimeOfDay (const DtChangeTimeOfDayCommand &command) |
| |
| virtual double | timeOfDay () const |
| | Time of day in seconds past midnight. (Max value 24 * 3600) More...
|
| |
| virtual double | dateAndTimeOfDay () const |
| | Date and time of day in seconds past 00:00:00 UTC, January 1, 1970. More...
|
| |
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| | The current time of day advancement speed. More...
|
| |
| virtual void | setTimeOfDayAdvancementSpeed (const DtChangeTimeOfDayCommand &command) |
| |
| virtual double | timeOfDayAdvancementSpeed () const |
| |
|
| virtual double | illumination (const DtVector &localPosition) const |
| | Illumination in percentage (0 to 1.0) at a particular location. More...
|
| |
| virtual double | expectedIllumination (const DtVector &localPosition, double dateAndTime) const |
| | The expected illumination in percentage (0 to 1.0) from the sky at a particular location and time. More...
|
| |
|
| virtual void | setSnowMinimumAltitude (double snow, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | When there is snow accumulation, it is nevertheless 0 below this altitude. More...
|
| |
| virtual double | snowMinimumAltitude (const DtVector &) const |
| |
|
| virtual void | setWindDrivenSeaStateEnabled (bool b, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | The sea state in the GUI is taken from wind speed and direction. More...
|
| |
| virtual bool | windDrivenSeaStateEnabled (const DtVector &) const |
| |
|
| virtual void | setUseDayNightIlluminationModel (bool) |
| | Whether or not to use sunrise/sunset times for illumination. More...
|
| |
| virtual bool | useDayNightIlluminationModel () const |
| |
|
| virtual double | normalizedPrecipitationRate () const |
| | Sets the precipitation rate in mm/hr that corresponds to a precipitationIntensity of 1.0. More...
|
| |
| virtual void | setNormalizedPrecipitationRate (const double) |
| |
|
| virtual bool | reduceVisibilityForPrecipitation () const |
| | Reduce visibility from precipitation on top of the visibility in the visibility parameter. More...
|
| |
| virtual void | setReduceVisibilityForPrecipitation (const bool) |
| |
|
| virtual void | createGlobalEnvironmentObject () |
| | Creates a new locally simulated VRF object with the type returned from globalEnvironmentObjectType(). More...
|
| |
| virtual void | processObjectAdded (const DtVrfObject *object) |
| |
| virtual void | processObjectRemoved (const DtVrfObject *object) |
| |
virtual
DtEnvironmentalStateSetter * | createLocalEnvironmentalStateSetter () |
| |
virtual
DtEnvironmentalStateSetter * | createRemoteEnvironmentalStateSetter () |
| |
| virtual void | processChangeWeatherPriorities (DtSimMessage *msg) |
| |
| virtual void | processRequestWeatherAtLocation (DtSimMessage *msg) |
| |
| virtual void | initializeIlluminationObjectsList () |
| |
| virtual void | initializeSoilCharacteristics () |
| | Copy soil names and soil weather parameters from the physicalWorld parameters. More...
|
| |
| virtual void | initializeWeatherStateProvider () |
| | Reset the weather object provider object–create a new one from the factory, replacing the old one if it exists. More...
|
| |
| virtual void | initializeWeatherParameters () |
| | Set constants relating physical quantities to class function return values, e.g. More...
|
| |
virtual const
DtIlluminationObjectParameters & | findBestMatch (const DtObjectType &objtype) const |
| |
|
| virtual DtString | deepWaterSoilName () const |
| |
| virtual DtString | shallowWaterSoilName () const |
| |
| virtual DtString | waterySoilName () const |
| |
| virtual DtString | drySoilName () const |
| |
| virtual DtString | roadSoilName () const |
| |
| virtual DtString | snowSoilName () const |
| |
| virtual DtString | iceSoilName () const |
| |
| virtual double | deepSnowDepth () const |
| |
| virtual double | saturationWaterDepth () const |
| | Depth of water accumulation before dry soil is changed completely to watery soil. More...
|
| |
| virtual double | waterSlideDepth () const |
| | Depth of water on a hard surface that causes loss of normal traction. More...
|
| |
| virtual double | waterSlideFactor () const |
| | Fraction [0-1] of traction retained on hard surface with water on it. More...
|
| |
| virtual double | hardFreezeTemperature () const |
| | Temperature at which shallow water is frozen enough to drive a vehicle on. More...
|
| |
|
| virtual void | setPriority (int p, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Sets/gets the priority of the weather area. This value is not used for global weather. More...
|
| |
| virtual int | priority (const DtUUID &weatherArea) const |
| |
| virtual int | priority (const DtVector &) const |
| |
|
Models should use the cloud layer descriptions instead.
|
| virtual CloudLayerCloudType | cloudType (const DtVector &localPosition) const |
| |
| virtual double | cloudAltitude (const DtVector &localPosition) const |
| |
| virtual double | cloudThickness (const DtVector &localPosition) const |
| |
| virtual double | cloudDensity (const DtVector &localPosition) const |
| |
|
| virtual void | setAirTurbidity (double factor, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAmbientAirTemperature (double temp, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAmbientAirPressure (double pressure, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAirTemperatureAltitude (double altitude, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAirPressureAltitude (double altitude, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAirTemperatureAltitudeIsSeaLevel (bool seaLevel, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAirPressureAltitudeIsSeaLevel (bool seaLevel, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSeaLevelWaterConcentration (double water, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAirTurbulence (int current, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setPrecipitationIntensity (double factor, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType current, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setWindSpeed (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setWindDirection (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setVisibility (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setUnderwaterVisibility (double underwaterVisibility, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSurfaceTransparency (double transparency, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setWaterCurrentDirection (double waterCurrentDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setAmbientWaterTemperature (double waterTemperature, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setTidalOffset (double tidalOffset, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setTidalDirection (bool tidalDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSwellState (unsigned int state, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSwellStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSeaState (unsigned int state, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSeaStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setChoppiness (double choppiness, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSurgeDepth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setFogHeight (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setFogColor (const DtVector &color, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSnowAccumulation (double snow, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setSnowRoadAccumulation (double snow, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setRainAccumulation (double rain, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer1Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer1Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer2Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer2Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer3Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer3Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer4Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer4Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer5Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setThermoclineLayer5Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setLightingPresentForWeatherArea (bool, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | clearWindLevels (const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
| virtual void | setWindLevels (const DtRwWindLevels &, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| |
|
| virtual void | setDeepWaterSoilName (const DtString &) |
| | Global soil-Related set functions. More...
|
| |
| virtual void | setShallowWaterSoilName (const DtString &) |
| |
| virtual void | setDrySoilName (const DtString &) |
| |
| virtual void | setWaterySoilName (const DtString &) |
| |
| virtual void | setRoadSoilName (const DtString &) |
| |
| virtual void | setSnowSoilName (const DtString &) |
| |
| virtual void | setIceSoilName (const DtString &) |
| |
| virtual void | setDeepSnowDepth (const double) |
| |
| virtual void | setSaturationWaterDepth (const double) |
| |
| virtual void | setWaterSlideDepth (const double) |
| |
| virtual void | setWaterSlideFactor (const double) |
| |
| virtual void | setHardFreezeTemperature (const double) |
| |
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