Public Member Functions |
| | DtRemoteEnvironmentController () |
| | Constructor.
|
| virtual | ~DtRemoteEnvironmentController () |
| | DTOR.
|
| virtual void | init (DtVrfMessageInterface *msgIf, DtReflectedEnvironmentProcessList *rel, int sessionId) |
| | Caches the given pointers as myMsgIf and myReflectedEnvironmentProcessList.
|
| virtual void | reinitialize (DtReflectedEnvironmentProcessList *rel) |
| | Only call in the case of the originally supplied reflected list being deleted.
|
| bool | reflectingCurrentWeatherState () |
| | Indicates if the weather state of the back-end simulating the weather has been reflected.
|
| virtual void | setUseDayNightIlluminationModel (bool value) |
| | Sets wheter or not to use the day/night illumination model (true) or to always assume noon GMT.
|
| virtual void | setFogColor (const DtVector &, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | {@ Sets fog information (color and height)
|
| virtual DtVector | fogColor (const DtVector &geocentricLocation) |
| virtual void | setFogHeight (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | fogHeight (const DtVector &geocentricLocation) |
| virtual void | processEnvironmentProcessAdded (DtReflectedEnvironmentProcess *obj) |
| | Checks to see if the first recordPointer in the state repository of the DtReflectedEnvironmentProcess is of type DtEnvVrfWeatherStateRecordType, and if so it caches a pointer to the SR in myReflectedWeatherSR.
|
| virtual void | processEnvironmentProcessRemoved (DtReflectedEnvironmentProcess *obj) |
| | Checks to see if the DtReflectedEnvironmentProcess being removed corresponds to the one cached in myReflectedWeatherSR, and if so myReflectedWeatherSR is set to 0.
|
| virtual double | dT () const |
| | Returns delta time from last time received update and now (simTime)
|
|
| virtual void | setAirTurbidity (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Air Turbidity.
|
| virtual double | airTurbidity (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setAmbientAirTemperature (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Ambient Air Temperature.
|
| virtual double | ambientAirTemperature (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setCloudState (DtVrfWeatherCloudState, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Cloud State.
|
| virtual DtVrfWeatherCloudState | cloudState (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is DtVrfWeatherCloudStateClear.
|
|
| virtual void | setPrecipitationIntensity (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Precipitation Intensity.
|
| virtual double | precipitationIntensity (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Precipitation Intensity.
|
virtual
DtVrfWeatherPrecipitationType | precipitationType (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setWindSpeed (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wind speed in m/s.
|
| virtual double | windSpeed (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setWindDirection (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wind direction in radians.
|
| virtual double | windDirection (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setVisibility (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Visibility in meters.
|
| virtual double | visibility (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 16,000 (16km)
|
|
| virtual void | setTimeOfDay (double secondsPastMidnight) |
| | The current time of day, specified by the number of seconds past midnight.
|
| virtual double | timeOfDay () |
| | If !reflectingCurrentWeatherState(), the default is 43200 (12:00 noon)
|
|
| virtual void | setDateAndTimeOfDay (double secondsPastUtc) |
| | The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
| virtual void | setDateAndTimeOfDay (int year, int month, int day, int hours, int minutes, int seconds) |
| virtual double | dateAndTimeOfDay () |
| | If !reflectingCurrentWeatherState(), the default is current date and 43200 (12:00 noon)
|
| virtual void | dateAndTimeOfDay (int &year, int &month, int &day, int &hours, int &minutes, int &seconds) |
|
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| | The current time of day advancement speed.
|
| virtual double | timeOfDayAdvancementSpeed () |
| | If !reflectingCurrentWeatherState(), the default is 0 (no advance)
|
|
| virtual void | setUnderwaterVisibility (double underwaterVisibility, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Underwater visibility in meters.
|
| virtual double | underwaterVisibility (const DtVector &geocentricLocation) |
|
| virtual void | setSurfaceTransparency (double transparency, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Surface transparency (percentage)
|
| virtual double | surfaceTransparency (const DtVector &geocentricLocation) |
|
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Water velocity in meters per second.
|
| virtual double | waterCurrentSpeed (const DtVector &geocentricLocation) |
|
| virtual void | setWaterCurrentDirection (double waterCurrentDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Water direction in radians clockwise from 0 (north)
|
| virtual double | waterCurrentDirection (const DtVector &geocentricLocation) |
|
| virtual void | setAmbientWaterTemperature (double waterTemperature, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Ambient water temperature in Celsius.
|
| virtual double | ambientWaterTemperature (const DtVector &geocentricLocation) |
|
| 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 DtVector &geocentricLocation) |
|
| 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 DtVector &geocentricLocation) |
|
| 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 DtVector &geocentricLocation) |
|
| virtual void | setSwellStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Swell direction in in radians clockwise from 0 (north)
|
| virtual double | swellStateDirection (const DtVector &geocentricLocation) |
|
| virtual void | setSeaState (unsigned int douglasScale, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual unsigned int | seaState (const DtVector &geocentricLocation) |
|
| virtual void | setSeaStateDirection (double radiansFromNorth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | seaStateDirection (const DtVector &geocentricLocation) |
|
| virtual void | setWindDrivenSeaStateEnabled (bool enabled, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual bool | windDrivenSeaStateEnabled (const DtVector &geocentricLocation) |
|
| virtual void | setChoppiness (double choppiness, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Wave choppiness (0..1)
|
| virtual double | choppiness (const DtVector &geocentricLocation) |
|
| virtual void | setSurgeDepth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Surge depth (meters)
|
| virtual double | surgeDepth (const DtVector &geocentricLocation) |
|
| virtual void | setThermoclineLayer1Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer1Depth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer1Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer1Permeability (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer2Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer2Depth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer2Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer2Permeability (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer3Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer3Depth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer3Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer3Permeability (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer4Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer4Depth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer4Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer4Permeability (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer5Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer5Depth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer5Permeability (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | thermoclineLayer5Permeability (const DtVector &geocentricLocation) |
DtRemoteEnvironmentController allows the user to interrogate the back-end which is simulating the environmental weather object to get the current weather state.
Sim commands can also be sent to change the weather state. If there is no weather state available, the accessors will all provide reasonable default values which represent a clear, windless and sunny environment state. The user can check to see if the back-end's weather values are being reflected by calling reflectingCurrentWeatherState().
A vector location of zero() will also return global weather