![]() |
VR-Forces 4.10 Class Documentation
|
A DtLocalEnvironmentalsControllerObject processes enviromental data for a localize weather area. More...
Classes | |
| struct | CloudLayerData |
| A structure used to store information about a cloud layer. More... | |
| struct | CloudLayerSortComparator |
| Functor for comparing cloud layers by altitude. More... | |
Public Member Functions | |
| DtLocalEnvironmentalsControllerObject (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtLocalEnvironmentalsControllerObject () |
| DTOR. More... | |
| DtLocalEnvironmentalsControllerObject ()=delete | |
| Default Constructor not implemented – default constructor not allowed. More... | |
| DtLocalEnvironmentalsControllerObject (const DtLocalEnvironmentalsControllerObject &)=delete | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtLocalEnvironmentalsControllerObject & | operator= (const DtLocalEnvironmentalsControllerObject &)=delete |
| Assignment Operator not implemented – Copy not allowed. More... | |
| virtual DtCloudLayerId | addLayerToCloudCover (const DtCloudLayer &layer, const std::string &coverName) |
| Add the cloud layer to the specified cloud cover (in the DtCloudCoverManager). More... | |
| virtual void | setZoneOrigin (double x, double y, double z) |
| Set the origin of the zone. More... | |
| virtual void | setZoneShape (double width, double length, double height, double cornerRadius) |
| Sets the shape of the zone. More... | |
| virtual void | setAirTurbidity (float turbidity) |
| Set the air turbidity/haziness. More... | |
| virtual void | setAmbientAirTemperature (float temperature) |
| Set the ambient air temperature, in Kelvins. More... | |
| virtual void | setAmbientAirPressure (float pressure) |
| Set the ambient air pressure, in Pascals. More... | |
| virtual void | setAirTemperatureAltitude (float altitude) |
| Set the air temperature altitude, in meters. More... | |
| virtual void | setAirPressureAltitude (float altitude) |
| Set the air pressure altitude, in meters. More... | |
| virtual void | setAirTemperatureAltitudeIsSeaLevel (bool seaLevel) |
| Set the air temperature altitude is sea level flag. More... | |
| virtual void | setAirPressureAltitudeIsSeaLevel (bool seaLevel) |
| Set the air pressure altitude is sea level flag. More... | |
| virtual void | setSeaLevelWaterConcentration (float water) |
| Set the sea level water concentration, in PPMV (parts per million by volume). More... | |
| virtual void | setLightningPresent (bool lightningPresent) |
| Sets whether or not lightning is present. More... | |
| virtual void | setPrecipitationType (unsigned int type) |
| Sets precipitation type. More... | |
| virtual void | setPrecipitationIntensity (float intensity) |
| Sets precipitation intensity. More... | |
| virtual void | setTimeOfDay (int hour, int minutes, double seconds) |
| Tell the scene to change the time of day. More... | |
| virtual void | setDateAndTimeOfDay (int year, int month, int day, int hour, int minutes, double seconds) |
| Tell the scene to change the date and time of day. More... | |
| virtual void | setUseGlobalTimeZone (bool value) |
| Tell the system to use GMT time as the means to position the sun/moon rather than always moving with the observer. More... | |
| virtual void | setTimeOfDayAdvancementSpeed (float speed) |
| Tell the scene to change the time of day advancement speed. More... | |
| virtual void | setFogHeight (float value) |
| Sets the fog ceiling height. More... | |
| virtual void | setFogColor (const DtVector &color) |
| Sets the fog color. More... | |
| virtual void | setFogColor (float red, float green, float blue) |
| Sets the fog color. More... | |
| virtual void | setFogColor (int red, int green, int blue) |
| Sets the fog color. More... | |
| virtual void | removeElevationalConfiguration (float baseMSLAltitude) |
| Removes an elevational configuration record by its base MSL altitude, in meters. More... | |
| virtual void | updateOrAddElevationalConfiguration (float baseMSLAltitude, float windSpeed, float windDirection, float visibilityDistance, unsigned int obscurant, int cloudType, float cloudDensity, float skyCoverage) |
| Update an elevational configuration record which consists of 1) a base MSL altitude, in meters, 2) a wind speed, in meters per second, 3) a wind direction, in radians from True North (clockwise), 4) a visibility distance, in meters, 5) an enumerated visibility obscurant value, 6) the type of cloud present, by name, and 7) the sky coverage of the cloud, in normalized Oktas [0-1]. More... | |
| virtual void | setSwellState (int state) |
| Set the sea state according to the Beaufort Scale. More... | |
| virtual void | setSwellStateDirection (float value) |
| Set the sea state direction in radians from North. More... | |
| virtual void | setSeaState (int state) |
| Set the sea state according to the Beaufort Scale. More... | |
| virtual void | setSeaStateDirection (float value) |
| Set the sea state direction in radians from North. More... | |
| virtual void | setWindDrivenSeaStateEnabled (bool value) |
| Set the wind driven seas enabled parameter to allow the wind to determine the sea state. More... | |
| virtual void | setWindFetch (float value) |
| Set the ocean wind fetch. More... | |
| virtual void | setSeaChoppiness (float value) |
| Set the sea choppiness. More... | |
| virtual void | setUnderwaterVisibility (float distance) |
| Set the maximum visibility under water in meters. More... | |
| virtual void | setSurfaceTransparency (float value) |
| Set the surface transparency. More... | |
| virtual void | setSurgeDepth (float value) |
| Set the surge depth. More... | |
| virtual void | setAmbientWaterTemperature (float temperature) |
| Set the ambient water temperature, in Kelvins. More... | |
| virtual void | setWaterCurrentSpeed (float speed) |
| Set the speed of water currents in meters per second. More... | |
| virtual void | setWaterCurrentDirection (float direction) |
| Set the direction of water currents in radians from north (clockwise). More... | |
| virtual void | setTidalOffset (float meters) |
| Set the current tidal offset from mean-sea-level in meters. More... | |
| virtual void | setTidalDirection (bool inOut) |
| Set the current direction of tidal flow (0=out, 1=in). More... | |
| virtual void | setThermoclineDepth (unsigned int layer, float value) |
| Set a thermocline depth. More... | |
| virtual void | setThermoclinePermeability (unsigned int layer, float value) |
| Set a thermocline permeability. More... | |
| virtual void | setGroundSnowAccumulation (float depth) |
| Set the ground snow accumulation percentage. More... | |
| virtual void | setRoadSnowAccumulation (float depth) |
| Set the road snow accumulation percentage. More... | |
| virtual void | setSnowMinimumElevation (float elevation) |
| Set the snow minimum elevation. More... | |
| virtual void | setSnowElevationTransition (float elevation) |
| Set the snow elevation transition which specifies how long it takes to go from no snow to the full snow depth. More... | |
| virtual void | setGroundRainAccumulation (float depth) |
| Set the ground rain accumulation percentage. More... | |
Protected Types | |
| typedef std::vector < CloudLayerData * > | CloudLayerSet |
| This type defines a set of cloud layers. More... | |
Protected Member Functions | |
| virtual void | computeOriginBasis (DtVector &origin, DtVector &north, DtVector &east, DtVector &up) |
| Computes the local origin and basis vectors from the current myOrigin. More... | |
| virtual void | updateOrAddCloudForElevation (float baseMSLAltitude, int cloudType, float cloudDensity, float skyCoverage, float visibilityDistance) |
| Updates a the cloud associated with the elevational. More... | |
| virtual void | refreshCloudLayerThicknessIfNeeded () |
| Refresh the thickness of all the cloud layers for the current environment configuration, if needed, based on the base MSL altitudes of all the elevational configurations being maintained. More... | |
| virtual void | adjustWeatherAreaForClouds () |
| Updates the weather area bounds and lighting based on the current set of clouds. More... | |
| virtual const float | computeDensityFromVisibility (const float visibility) const |
| Computes a exp2 falloff density based on visibility. More... | |
| virtual const float | computeCloudThickness (const float baseMSLAltitude) const |
| Computes a cloud thickness for the given base altitude based on current elevation configuration data. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtVector | myOrigin |
| double | myWidth |
| double | myLength |
| double | myHeight |
| double | myCornerRadius |
| CloudLayerSet | myCloudLayerSet |
| unsigned int | myPrecipitationType |
| float | myPrecipitationIntensity |
| float | myGroundRainAccumulation |
| DtVector | myFogColor |
| float | myVisibilityDistance |
| float | myOvercast |
| bool | myLightningEnabled |
| DtUniqueID | myWeatherAreaId |
A DtLocalEnvironmentalsControllerObject processes enviromental data for a localize weather area.
This is not a distributed object. Distribution is provided by objects initiated by this class.
Local environmental weather is monitored by DtWeatherStateListener and processed by DtWeatherProcessor. For each unique local weather area, an instance of this class is created by DtWeatherProcessor and local environmental data associated with this area is directed here for controlling the local weather in VRV.
This class will initiate and control local clouds and a weather area object (DtWeatherAreaObject). The weather area object is used to set precipitation, fog, lightning, and other environmental conditions.
Note that currently there many stub methods in here for future capabilities.
|
protected |
This type defines a set of cloud layers.
| makVrv::DtLocalEnvironmentalsControllerObject::DtLocalEnvironmentalsControllerObject | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented – default constructor not allowed.
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
delete |
Assignment Operator not implemented – Copy not allowed.
|
virtual |
Add the cloud layer to the specified cloud cover (in the DtCloudCoverManager).
| layer | The layer (settings) to add. |
| coverName | The name of the cloud coverage to add to. |
|
virtual |
Set the origin of the zone.
| x | The origin x component. |
| y | The origin y component. |
| z | The origin z component. |
|
virtual |
Sets the shape of the zone.
The bounds is a rounded rect with height. Note that currently height is not acutally used but it is here for future expansion with the concept of layers. Currently height is auto-computed based on the lowest precipitation cloud bottom and the zone origin.
| width | The bounds width. |
| length | The bounds length. |
| height | The bounds height. |
| cornerRadius | The bounds cornerRadius. |
|
virtual |
Set the air turbidity/haziness.
| turbidity | The desired turbidity. |
|
virtual |
Set the ambient air temperature, in Kelvins.
| temperature | The desired temperature. |
|
virtual |
Set the ambient air pressure, in Pascals.
|
virtual |
Set the air temperature altitude, in meters.
|
virtual |
Set the air pressure altitude, in meters.
|
virtual |
Set the air temperature altitude is sea level flag.
|
virtual |
Set the air pressure altitude is sea level flag.
|
virtual |
Set the sea level water concentration, in PPMV (parts per million by volume).
|
virtual |
Sets whether or not lightning is present.
|
virtual |
Sets precipitation type.
| type | The DtEnvironmentInterface::PrecipitationType enumeration value. |
|
virtual |
Sets precipitation intensity.
| The | desired precipitation intensity. |
|
virtual |
Tell the scene to change the time of day.
| hour | The time of day hour. |
| minutes | The time of day minutes. |
| seconds | The time of day seconds. |
|
virtual |
Tell the scene to change the date and time of day.
| year | The date year. |
| month | The date month. |
| day | The date day. |
| hour | The time of day hour. |
| minutes | The time of day minutes. |
| seconds | The time of day seconds. |
|
virtual |
Tell the system to use GMT time as the means to position the sun/moon rather than always moving with the observer.
This will set the value in the environment settings manager
| value | Set to true to use global time zone. |
|
virtual |
Tell the scene to change the time of day advancement speed.
| speed | The advancement speed. |
|
virtual |
Sets the fog ceiling height.
| value | The fog height in meters. |
|
virtual |
Sets the fog color.
| color | The (r,g,b) color values in the range (0.0 - 1.0) |
|
virtual |
Sets the fog color.
| red | The red color value in the range (0.0 - 1.0) |
| green | The green color value in the range (0.0 - 1.0) |
| blue | The blue color value in the range (0.0 - 1.0) |
|
virtual |
Sets the fog color.
| red | The red color value in the range (0 - 255) |
| green | The green color value in the range (0 - 255) |
| blue | The blue color value in the range (0 - 255) |
|
virtual |
Removes an elevational configuration record by its base MSL altitude, in meters.
|
virtual |
Update an elevational configuration record which consists of 1) a base MSL altitude, in meters, 2) a wind speed, in meters per second, 3) a wind direction, in radians from True North (clockwise), 4) a visibility distance, in meters, 5) an enumerated visibility obscurant value, 6) the type of cloud present, by name, and 7) the sky coverage of the cloud, in normalized Oktas [0-1].
If the elevational configuration record doesn't exist, add a new one with the passed in attributes.
|
virtual |
Set the sea state according to the Beaufort Scale.
| state | The swell state. |
|
virtual |
Set the sea state direction in radians from North.
| value | The direction. |
|
virtual |
Set the sea state according to the Beaufort Scale.
| state | The sea state. |
|
virtual |
Set the sea state direction in radians from North.
| value | The direction. |
|
virtual |
Set the wind driven seas enabled parameter to allow the wind to determine the sea state.
| value | Set to true to enable wind driven sea state. |
|
virtual |
Set the ocean wind fetch.
| value | The desired fetch. |
|
virtual |
Set the sea choppiness.
| value | The desired choppiness. |
|
virtual |
Set the maximum visibility under water in meters.
| distance | The visibility distance. |
|
virtual |
Set the surface transparency.
| value | The surface transparency. |
|
virtual |
Set the surge depth.
| value | The surge depth. |
|
virtual |
Set the ambient water temperature, in Kelvins.
| temperature | The ambient water temperature. |
|
virtual |
Set the speed of water currents in meters per second.
| speed | The desired speed. |
|
virtual |
Set the direction of water currents in radians from north (clockwise).
| direction | The desired direction. |
|
virtual |
Set the current tidal offset from mean-sea-level in meters.
| meters | The offset. |
|
virtual |
Set the current direction of tidal flow (0=out, 1=in).
| inOut | Set to false for "out", and true for "in". |
|
virtual |
Set a thermocline depth.
| layer | The desired layer to affect. |
| value | The depth. |
|
virtual |
Set a thermocline permeability.
| layer | The desired layer to affect. |
| value | The permeability. |
|
virtual |
Set the ground snow accumulation percentage.
| depth | The accumulation depth. |
|
virtual |
Set the road snow accumulation percentage.
| depth | The accumulation depth. |
|
virtual |
Set the snow minimum elevation.
| elevation | The elevation at which accumulation starts to become visible. |
|
virtual |
Set the snow elevation transition which specifies how long it takes to go from no snow to the full snow depth.
| elevation | The elevation at which accumulation is fully visible. |
|
virtual |
Set the ground rain accumulation percentage.
| depth | The accumulation depth. |
|
protectedvirtual |
Computes the local origin and basis vectors from the current myOrigin.
| origin | The computed output origin. |
| north | The computed output north vector. |
| east | The computed output east vector. |
| up | The computed output up vector. |
|
protectedvirtual |
Updates a the cloud associated with the elevational.
If no cloud is associated with the given elevational, a new one is added, otherwise the cloud parameters are updated with the new attributes.
| baseMSLAltitude | A base MSL altitude, in meters. |
| cloudType | The type of cloud (see DtCloudTypeMapper::CloudType). |
| cloudDensity | The cloud density. |
| skyCoverage | The sky coverage of the cloud, in normalized Oktas [0-1]. |
| visibilityDistance | The visibility distance for the layer. |
|
protectedvirtual |
Refresh the thickness of all the cloud layers for the current environment configuration, if needed, based on the base MSL altitudes of all the elevational configurations being maintained.
|
protectedvirtual |
Updates the weather area bounds and lighting based on the current set of clouds.
|
protectedvirtual |
Computes a exp2 falloff density based on visibility.
| The | visibility to use for the caclulation. |
|
protectedvirtual |
Computes a cloud thickness for the given base altitude based on current elevation configuration data.
| baseMSLAltitude | The altitude to compute from. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |