![]() |
VR-Forces Developer's Guide
|
DtRemoteEnvironmentController; remotely controls and reflects the weather state of VR-Forces.
Public Member Functions | |
| DtRemoteEnvironmentController () | |
| virtual | ~DtRemoteEnvironmentController () |
| virtual void | init (DtCommunicationManager *msgIf, DtVrfMessageInterface *, int sessionId) |
| bool | reflectingCurrentWeatherState () |
| const makVrf::DtExternalCurrentFrameState * | globalEnvironment () const |
| virtual void | setUseDayNightIlluminationModel (bool value) |
| virtual void | setFogColor (const DtVector &, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual DtVector | fogColor (const DtVector &geocentricLocation) |
| virtual void | setFogHeight (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | fogHeight (const DtVector &geocentricLocation) |
| virtual void | setSnowAccumulation (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | snowAccumulation (const DtVector &geocentricLocation) |
| virtual void | setSnowMinimumAltitude (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | snowMinimumAltitude (const DtVector &geocentricLocation) |
| virtual void | setSnowRoadAccumulation (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | snowRoadAccumulation (const DtVector &geocentricLocation) |
| virtual void | setRainAccumulation (double, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | rainAccumulation (const DtVector &geocentricLocation) |
| virtual double | dT () const |
| virtual void | setAmbientAirTemperature (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | ambientAirTemperature (const DtVector &geocentricLocation) |
| virtual void | setPrecipitationIntensity (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | precipitationIntensity (const DtVector &geocentricLocation) |
| virtual void | setPrecipitationType (int, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual int | precipitationType (const DtVector &geocentricLocation) |
| virtual void | setWindSpeed (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | windSpeed (const DtVector &geocentricLocation) |
| virtual void | setWindDirection (double value, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | windDirection (const DtVector &geocentricLocation) |
| virtual void | setVisibilityAndObscurant (double visibility, int obscurant, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual bool | visibilityAndObscurant (const DtVector &geocentricLocation, double &visibility, int &obscurant) |
| virtual void | setTimeOfDay (double secondsPastMidnight) |
| virtual double | timeOfDay () |
| virtual void | setDateAndTimeOfDay (double secondsPastUtc) |
| virtual void | setDateAndTimeOfDay (int year, int month, int day, int hours, int minutes, int seconds) |
| virtual double | dateAndTimeOfDay () |
| virtual void | dateAndTimeOfDay (int &year, int &month, int &day, int &hours, int &minutes, int &seconds) |
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| virtual double | timeOfDayAdvancementSpeed () |
| virtual void | setLightningPresent (bool isPresent, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual bool | lightningPresent (const DtVector &geocentricLocation) const |
| virtual void | setUnderwaterVisibility (double underwaterVisibility, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | underwaterVisibility (const DtVector &geocentricLocation) |
| virtual void | setSurfaceTransparency (double transparency, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | surfaceTransparency (const DtVector &geocentricLocation) |
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | waterCurrentSpeed (const DtVector &geocentricLocation) |
| virtual void | setWaterCurrentDirection (double waterCurrentDirection, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | waterCurrentDirection (const DtVector &geocentricLocation) |
| virtual void | setAmbientWaterTemperature (double waterTemperature, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | ambientWaterTemperature (const DtVector &geocentricLocation) |
| virtual void | setTidalOffset (double tidalOffset, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | tidalOffset (const DtVector &geocentricLocation) |
| virtual void | setSwellState (unsigned int state, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual unsigned int | swellState (const DtVector &geocentricLocation) |
| virtual void | setSwellStateDirection (double direction, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| 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()) |
| virtual double | choppiness (const DtVector &geocentricLocation) |
| virtual void | setSurgeDepth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| virtual double | surgeDepth (const DtVector &geocentricLocation) |
| virtual void | setThermoclineLayer1Depth (double depth, const DtUUID &weatherArea=DtUUID::nullUUID()) |
| 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) |
| virtual void | addGlobalEnvironmentCreatedCallback (DtGlobalWeatherCreatedCallbackList::DtCallbackFunctionType fcn, void *usr) const |
| virtual void | removeGlobalEnvironmentCreatedCallback (DtGlobalWeatherCreatedCallbackList::DtCallbackFunctionType fcn, void *usr) const |
| virtual void | invokeGlobalWeatherCreatedCallbacks () |
Static Public Member Functions | |
| static DtRemoteEnvironmentControllerCreatorFcn | setRemoteEnvironmentControllerCreatorFcn (DtRemoteEnvironmentControllerCreatorFcn) |
| static DtRemoteEnvironmentController * | createRemoteEnvironmentController () |
| static DtRemoteEnvironmentControllerCreatorFcn | remoteEnvironmentControllerCreatorFcn () |
Protected Types | |
| typedef std::map< DtUUID, const makVrf::DtExternalCurrentFrameState * > | WeatherObjects |
Protected Member Functions | |
| template<typename WeatherStateType > | |
| const WeatherStateType * | weatherStateFor (const DtVector &geocentricLocation) const |
| virtual bool | inside (const DtVector &, const std::vector< DtVector > &) const |
| virtual void | processEnvironmentProcessAdded (makVrf::DtStateData *) |
| virtual void | processEnvironmentProcessRemoved (const makVrf::DtStateData *) |
| virtual void | updateGlobalEnvironment () |
Protected Attributes | |
| DtCommunicationManager * | myCommunicationManager |
| DtVrfMessageInterface * | myMessageInterface |
| WeatherObjects | myWeatherObjects |
| const makVrf::DtExternalCurrentFrameState * | myGlobalWeatherSR |
| const makVrf::DtTimeAndDateStateComponent * | myTimeAndDateStateComponent |
| DtUUID | myGlobalWeatherUUID |
| double | myLastTimeReceived |
| int | mySessionId |
| DtGlobalWeatherCreatedCallbackList | myGlobalEnvironmentCreated |
| boost::signals2::scoped_connection | myEnvironmentalAddedConnection |
| boost::signals2::scoped_connection | myEnvironmentalRemovedConnection |
| boost::signals2::scoped_connection | myGlobalEnvironmentUpdatedCallback |
Static Protected Attributes | |
| static DtRemoteEnvironmentControllerCreatorFcn | theRemoteEnvironmentControllerCreatorFcn |
|
protected |
| DtRemoteEnvironmentController::DtRemoteEnvironmentController | ( | ) |
Constructor.
|
virtual |
DTOR.
|
virtual |
Caches the communication manager and will scan the state data manager for a current global weather and/or add callbacks for when a global weather might be discovered.
| bool DtRemoteEnvironmentController::reflectingCurrentWeatherState | ( | ) |
Indicates if the weather state of the back-end simulating the weather
has been reflected. Unless this returns true, none of the accessors will return real data!
|
inline |
The current global environment.
|
virtual |
Ambient Air Temperature.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0.0.
|
virtual |
Precipitation Intensity.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0.0.
|
virtual |
Precipitation Intensity.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0.0.
|
virtual |
Wind speed in m/s.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0.0.
|
virtual |
Wind direction in radians.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0.0.
|
virtual |
Visibility in meters and the obscurant enum.
Currently the setVisibilityAndObscurant sets the visibility and distance just for the wind layer at 0 altitude.
|
virtual |
If !reflectingCurrentWeatherState(), the default visinbility is 16,000 (16km)
|
virtual |
The current time of day, specified by the number of seconds past midnight.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 43200 (12:00 noon)
|
virtual |
The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
virtual |
The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
virtual |
If !reflectingCurrentWeatherState(), the default is current date and 43200 (12:00 noon)
|
virtual |
The current date/time of day, specified by the number of seconds past 00:00 hours, Jan 1, 1970 UTC.
|
virtual |
Sets wheter or not to use the day/night illumination model (true) or to always assume noon GMT.
|
virtual |
The current time of day advancement speed.
|
virtual |
If !reflectingCurrentWeatherState(), the default is 0 (no advance)
|
virtual |
Getter and Setter for Lightning Present.
|
virtual |
Getter and Setter for Lightning Present.
|
virtual |
Underwater visibility in meters.
|
virtual |
Underwater visibility in meters.
|
virtual |
Surface transparency (percentage)
|
virtual |
Surface transparency (percentage)
|
virtual |
Water velocity in meters per second.
|
virtual |
Water velocity in meters per second.
|
virtual |
Water direction in radians clockwise from 0 (north)
|
virtual |
Water direction in radians clockwise from 0 (north)
|
virtual |
Ambient water temperature in Celsius.
|
virtual |
Ambient water temperature in Celsius.
|
virtual |
Tidal offset in meters from the water polygons in the database.
|
virtual |
Tidal offset in meters from the water polygons in the database.
|
virtual |
Swell state according to the Douglas Sea Scale (integer 0 - 9)
|
virtual |
Swell state according to the Douglas Sea Scale (integer 0 - 9)
|
virtual |
Swell direction in in radians clockwise from 0 (north)
|
virtual |
Swell direction in in radians clockwise from 0 (north)
|
virtual |
Sea state according to the Douglas Sea Scale.
|
virtual |
Sea state according to the Douglas Sea Scale.
|
virtual |
The direction waves travel from in radians from North.
|
virtual |
The direction waves travel from in radians from North.
|
virtual |
Flag for enabling sea-state to be driven by wind.
|
virtual |
Flag for enabling sea-state to be driven by wind.
|
virtual |
Wave choppiness (0..1)
|
virtual |
Wave choppiness (0..1)
|
virtual |
Surge depth (meters)
|
virtual |
Surge depth (meters)
|
virtual |
{@ Sets fog information (color and height)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
{@ Sets snow information (accumulation, minimum altitude and road accumulation)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets rain accumulation.
|
virtual |
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Thermocline depth (in meters) and permeability (0..1). A depth of zero means that layer is not used.
|
virtual |
Returns delta time from last time received update and now (simTime)
|
virtual |
Callback that is invoked when the global environment is added.
|
virtual |
Callback that is invoked when the global environment is added.
|
virtual |
Callback that is invoked when the global environment is added.
|
static |
|
static |
|
static |
|
protected |
Returns weather struct for object that contains given point.
|
protectedvirtual |
Returns true if the geocentric location is inside the given area (vector of geocentric coordinates)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |