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.
|
| 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 | 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 DtString &weatherArea="") |
| | Air Turbidity.
|
| virtual double | airTurbidity (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setAmbientAirTemperature (double value, const DtString &weatherArea="") |
| | Ambient Air Temperature.
|
| virtual double | ambientAirTemperature (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setCloudState (DtVrfWeatherCloudState, const DtString &weatherArea="") |
| | Cloud State.
|
| virtual DtVrfWeatherCloudState | cloudState (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is DtVrfWeatherCloudStateClear.
|
|
| virtual void | setPrecipitationIntensity (double value, const DtString &weatherArea="") |
| | Precipitation Intensity.
|
| virtual double | precipitationIntensity (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType, const DtString &weatherArea="") |
| | Precipitation Intensity.
|
virtual
DtVrfWeatherPrecipitationType | precipitationType (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setWindSpeed (double value, const DtString &weatherArea="") |
| | Wind speed in m/s.
|
| virtual double | windSpeed (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setWindDirection (double value, const DtString &weatherArea="") |
| | Wind direction in radians.
|
| virtual double | windDirection (const DtVector &geocentricLocation) |
| | If !reflectingCurrentWeatherState(), the default is 0.0.
|
|
| virtual void | setVisibility (double value, const DtString &weatherArea="") |
| | 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) |
| | The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
| 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) |
| | The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
|
| 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 DtString &weatherArea="") |
| | Underwater visibility in meters.
|
| virtual double | underwaterVisibility (const DtVector &geocentricLocation) |
| | Underwater visibility in meters.
|
|
| virtual void | setSurfaceTransparency (double transparency, const DtString &weatherArea="") |
| | Surface transparency (percentage)
|
| virtual double | surfaceTransparency (const DtVector &geocentricLocation) |
| | Surface transparency (percentage)
|
|
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed, const DtString &weatherArea="") |
| | Water velocity in meters per second.
|
| virtual double | waterCurrentSpeed (const DtVector &geocentricLocation) |
| | Water velocity in meters per second.
|
|
| virtual void | setWaterCurrentDirection (double waterCurrentDirection, const DtString &weatherArea="") |
| | Water direction in radians clockwise from 0 (north)
|
| virtual double | waterCurrentDirection (const DtVector &geocentricLocation) |
| | Water direction in radians clockwise from 0 (north)
|
|
| virtual void | setAmbientWaterTemperature (double waterTemperature, const DtString &weatherArea="") |
| | Ambient water temperature in Celsius.
|
| virtual double | ambientWaterTemperature (const DtVector &geocentricLocation) |
| | Ambient water temperature in Celsius.
|
|
| virtual void | setTidalOffset (double tidalOffset, const DtString &weatherArea="") |
| | Tidal offset in meters from the water polygons in the database.
|
| virtual double | tidalOffset (const DtVector &geocentricLocation) |
| | Tidal offset in meters from the water polygons in the database.
|
|
| virtual void | setTidalDirection (bool tidalDirection, const DtString &weatherArea="") |
| | Tidal direction where true represents the tide going in and false represents the tide going out.
|
| virtual bool | tidalDirection (const DtVector &geocentricLocation) |
| | Tidal direction where true represents the tide going in and false represents the tide going out.
|
|
| virtual void | setSwellState (unsigned int state, const DtString &weatherArea="") |
| | Swell state according to the Douglas Sea Scale (integer 0 - 9)
|
| virtual unsigned int | swellState (const DtVector &geocentricLocation) |
| | Swell state according to the Douglas Sea Scale (integer 0 - 9)
|
|
| virtual void | setSwellStateDirection (double direction, const DtString &weatherArea="") |
| | Swell direction in in radians clockwise from 0 (north)
|
| virtual double | swellStateDirection (const DtVector &geocentricLocation) |
| | Swell direction in in radians clockwise from 0 (north)
|
|
| virtual void | setSeaState (unsigned int douglasScale, const DtString &weatherArea="") |
| virtual unsigned int | seaState (const DtVector &geocentricLocation) |
|
| virtual void | setSeaStateDirection (double radiansFromNorth, const DtString &weatherArea="") |
| virtual double | seaStateDirection (const DtVector &geocentricLocation) |
|
| virtual void | setWindDrivenSeaStateEnabled (bool enabled, const DtString &weatherArea="") |
| virtual bool | windDrivenSeaStateEnabled (const DtVector &geocentricLocation) |
|
| virtual void | setChoppiness (double choppiness, const DtString &weatherArea="") |
| | Wave choppiness (0..1)
|
| virtual double | choppiness (const DtVector &geocentricLocation) |
| | Wave choppiness (0..1)
|
|
| virtual void | setSurgeDepth (double depth, const DtString &weatherArea="") |
| | Surge depth (meters)
|
| virtual double | surgeDepth (const DtVector &geocentricLocation) |
| | Surge depth (meters)
|
|
| virtual void | setThermoclineLayer1Depth (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer1Depth (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer1Permeability (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer1Permeability (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer2Depth (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer2Depth (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer2Permeability (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer2Permeability (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer3Depth (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer3Depth (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer3Permeability (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer3Permeability (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer4Depth (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer4Depth (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer4Permeability (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer4Permeability (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer5Depth (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer5Depth (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual void | setThermoclineLayer5Permeability (double depth, const DtString &weatherArea="") |
| | Thermocline depth (in meters) and permeability (0..1).
|
| virtual double | thermoclineLayer5Permeability (const DtVector &geocentricLocation) |
| | Thermocline depth (in meters) and permeability (0..1).
|
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