![]() |
VR-Forces 4.2 Class Documentation
|
Handles the environmental state of the simulation. More...
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 void | setGlobalWeather (const DtChangeGlobalWeatherCommand &command) |
| Calls the appropriate setXXX() functions locally, depending on what is in the command. | |
| virtual void | setTimeOfDay (double secondsPastMidnight) |
| The current time of day, specified by the number of seconds passed midnight. | |
| virtual void | setTimeOfDay (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDay () const |
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| The current time of day advancement speed. | |
| virtual void | setTimeOfDayAdvancementSpeed (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDayAdvancementSpeed () const |
| virtual void | setAirTurbidity (double factor) |
| Individual Environmental effects accessors Air Turbidity. | |
| virtual double | airTurbidity () const |
| Individual Environmental effects accessors Air Turbidity. | |
| virtual void | setAmbientAirTemperature (double temp) |
| Ambient Air Temperature (in celsius) | |
| virtual double | ambientAirTemperature () const |
| Ambient Air Temperature (in celsius) | |
| virtual void | setCloudState (DtVrfWeatherCloudState current) |
| Cloud state enumeration. | |
| virtual DtVrfWeatherCloudState | cloudState () const |
| Cloud state enumeration. | |
| virtual void | setPrecipitationIntensity (double factor) |
| Precipitation Intensity. | |
| virtual double | precipitationIntensity () const |
| Precipitation Intensity. | |
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType current) |
| Weather state enumeration. | |
| virtual DtVrfWeatherPrecipitationType | precipitationType () const |
| Weather state enumeration. | |
| virtual void | setWindSpeed (double value) |
| Wind speed in m/s. | |
| virtual double | windSpeed () const |
| Wind speed in m/s. | |
| virtual void | setWindDirection (double value) |
| Wind direction in radians. | |
| virtual double | windDirection () const |
| Wind direction in radians. | |
| virtual void | setVisibility (double value) |
| Visibility in meters. | |
| virtual double | visibility () const |
| Visibility in meters. | |
| virtual double | illumination (const DtVector &localPosition) const |
| Illumination in percentage (0 to 1.0) at a particular location. | |
| virtual void | setUnderwaterVisibility (double underwaterVisibility) |
| Underwater visibility in meters. | |
| virtual double | underwaterVisibility () const |
| Underwater visibility in meters. | |
| virtual void | setSurfaceTransparency (double transparency) |
| Surface transparency (percentage) | |
| virtual double | surfaceTransparency () const |
| Surface transparency (percentage) | |
| virtual void | setWaterCurrentSpeed (double waterCurrentSpeed) |
| Water velocity in meters per second. | |
| virtual double | waterCurrentSpeed () const |
| Water velocity in meters per second. | |
| virtual void | setWaterCurrentDirection (double waterCurrentDirection) |
| Water direction in radians clockwise from 0 (north) | |
| virtual double | waterCurrentDirection () const |
| Water direction in radians clockwise from 0 (north) | |
| virtual void | setAmbientWaterTemperature (double waterTemperature) |
| Ambient water temperature in Celsius. | |
| virtual double | ambientWaterTemperature () const |
| Ambient water temperature in Celsius. | |
| virtual void | setTidalOffset (double tidalOffset) |
| Tidal offset in meters from the water polygons in the database. | |
| virtual double | tidalOffset () const |
| Tidal offset in meters from the water polygons in the database. | |
| virtual void | setTidalDirection (bool tidalDirection) |
| Tidal direction where true represents the tide going in and false represents the tide going out. | |
| virtual bool | tidalDirection () const |
| Tidal direction where true represents the tide going in and false represents the tide going out. | |
| virtual void | setSwellState (unsigned int state) |
| Swell state according to the Douglas Sea Scale (integer 0 - 9) | |
| virtual unsigned int | swellState () const |
| Swell state according to the Douglas Sea Scale (integer 0 - 9) | |
| virtual void | setSwellStateDirection (double direction) |
| Swell direction in in radians clockwise from 0 (north) | |
| virtual double | swellStateDirection () const |
| Swell direction in in radians clockwise from 0 (north) | |
| virtual void | setSeaState (unsigned int state) |
| Swell state according to the Douglas Sea Scale (integer 0 - 9) | |
| virtual unsigned int | seaState () const |
| Swell state according to the Douglas Sea Scale (integer 0 - 9) | |
| virtual void | setSeaStateDirection (double direction) |
| Swell direction in in radians clockwise from 0 (north) | |
| virtual double | seaStateDirection () const |
| Swell direction in in radians clockwise from 0 (north) | |
| virtual void | setWindDrivenSeaStateEnabled (bool b) |
| Determines if the sea state is set based on the wind. | |
| virtual bool | windDrivenSeaStateEnabled () const |
| Determines if the sea state is set based on the wind. | |
| virtual void | setChoppiness (double choppiness) |
| Wave choppiness (0..1) | |
| virtual double | choppiness () const |
| Wave choppiness (0..1) | |
| virtual void | setSurgeDepth (double depth) |
| Surge depth (meters) | |
| virtual double | surgeDepth () const |
| Surge depth (meters) | |
| virtual void | setThermoclineLayer1Depth (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer1Depth () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer1Permeability (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer1Permeability () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer2Depth (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer2Depth () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer2Permeability (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer2Permeability () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer3Depth (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer3Depth () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer3Permeability (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer3Permeability () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer4Depth (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer4Depth () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer4Permeability (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer4Permeability () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer5Depth (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer5Depth () const |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual void | setThermoclineLayer5Permeability (double depth) |
| Thermocline depth (in meters) and permeability (0..1). | |
| virtual double | thermoclineLayer5Permeability () const |
| Thermocline depth (in meters) and permeability (0..1). | |
Protected Member Functions | |
| virtual void | processObjectAdded (DtVrfObject *object) |
| virtual void | processObjectRemoved (DtVrfObject *object) |
| virtual void | createGlobalEnvironmentObject () |
| Creates a new locally simulated VRF object with the type returned from glovalEnvironmentObjectType(). | |
| virtual DtObjectType | globalEnvironmentObjectType () const |
| virtual DtEnvironmentalStateSetter * | createLocalEnvironmentalStateSetter () |
| virtual DtEnvironmentalStateSetter * | createRemoteEnvironmentalStateSetter () |
Static Protected Member Functions | |
| static void | objectAddedCallback (DtVrfObject *object, void *usr) |
| static void | objectRemovedCallback (DtVrfObject *object, void *usr) |
Protected Attributes | |
| DtSimManager * | mySimManager |
| DtVrfObject * | myGlobalEnvironmentObject |
| DtEnvironmentalStateSetter * | myEnvironmentalStateSetter |
| bool | myFirstTick |
Private Member Functions | |
| DtEnvironmentalStateManager (const DtEnvironmentalStateManager &orig) | |
| Not implemented. | |
| const DtEnvironmentalStateManager & | operator= (const DtEnvironmentalStateManager &orig) |
| Not implemented. | |
| DtEnvironmentalStateManager () | |
| Not implemented. | |
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.
|
private |
Not implemented.
|
private |
Not implemented.
| DtEnvironmentalStateManager::DtEnvironmentalStateManager | ( | DtSimManager * | simManager | ) |
constructor
|
virtual |
destructor
|
private |
Not implemented.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Starts simulating the global environment locally on this simulation engine.
Only starts the local simulation if there is not one (remote or local) already running.
|
virtual |
Individual Environmental effects accessors Air Turbidity.
|
virtual |
Individual Environmental effects accessors Air Turbidity.
|
virtual |
Ambient Air Temperature (in celsius)
|
virtual |
Ambient Air Temperature (in celsius)
|
virtual |
Cloud state enumeration.
|
virtual |
Cloud state enumeration.
|
virtual |
Precipitation Intensity.
|
virtual |
Precipitation Intensity.
|
virtual |
Weather state enumeration.
|
virtual |
Weather state enumeration.
|
virtual |
Wind speed in m/s.
|
virtual |
Wind speed in m/s.
|
virtual |
Wind direction in radians.
|
virtual |
Wind direction in radians.
|
virtual |
Visibility in meters.
|
virtual |
Visibility in meters.
|
virtual |
Illumination in percentage (0 to 1.0) at a particular location.
Illumination cannot be set directly. It is a function of time of day.
|
virtual |
Calls the appropriate setXXX() functions locally, depending on what is in the command.
|
virtual |
The current time of day, specified by the number of seconds passed midnight.
|
virtual |
|
virtual |
|
virtual |
The current time of day advancement speed.
|
virtual |
|
virtual |
|
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 |
Tidal direction where true represents the tide going in and false represents the tide going out.
|
virtual |
Tidal direction where true represents the tide going in and false represents the tide going out.
|
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 |
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 |
Determines if the sea state is set based on the wind.
|
virtual |
Determines if the sea state is set based on the wind.
|
virtual |
Wave choppiness (0..1)
|
virtual |
Wave choppiness (0..1)
|
virtual |
Surge depth (meters)
|
virtual |
Surge depth (meters)
|
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.
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Creates a new locally simulated VRF object with the type returned from glovalEnvironmentObjectType().
Sets this new object to myGlovalEnvironmentObject, and sets up myEnvironmentalStateSetter.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |