![]() |
VR-Forces 5.0.3 Developer's Guide
|
The weather area object represents a set localized environmental conditions such as local rain and fog. The area is defined by a transformed bounds.
It is a distributed object.
These objects are created by using DtWeatherAreaObjectManager::addWeatherArea().
Changes to this object will produce signals in the DtWeatherAreaObjectManager.
Public Member Functions | |
| DtWeatherAreaObject (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWeatherAreaObject () |
| DtWeatherAreaObject ()=delete | |
| DtWeatherAreaObject (const DtWeatherAreaObject &)=delete | |
| DtWeatherAreaObject & | operator= (const DtWeatherAreaObject &)=delete |
| virtual void | setBounds (const DtVector &bounds, const float cornerRadius) |
| virtual void | setTransform (const DtVector &position, const float orientation) |
| virtual const DtVector & | position () const |
| virtual const float | orientation () const |
| virtual const DtVector & | bounds () const |
| virtual const float | boundsCornerRadius () const |
| virtual void | setPrecipitationIntensity (const float intensity) |
| virtual const float | precipitationIntensity () const |
| virtual void | setPrecipitationType (const unsigned int type) |
| virtual const unsigned int | precipitationType () const |
| virtual void | setGroundRainAccumulation (const float depth) |
| virtual const float | groundRainAccumulation () const |
| virtual void | setFogColor (const DtVector &color) |
| virtual const DtVector & | fogColor () const |
| virtual void | setVisibilityDistance (const float distance) |
| virtual const float | visibilityDistance () const |
| virtual void | setOvercast (const float overcast) |
| virtual const float | overcast () const |
| virtual void | setLightningEnabled (const bool enabled) |
| virtual const bool | lightningEnabled () const |
| virtual void | setWind (const float direction, const float speed) |
| virtual const float | windDirection () const |
| virtual const float | windSpeed () const |
| virtual void | cloudLayerAdded (DtCloudLayerId layerId, int cloudType) |
| virtual void | cloudLayerRemoved (DtCloudLayerId layerId) |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtVector | myPosition |
| float | myOrientation |
| DtVector | myBounds |
| float | myBoundsCornerRadius |
| float | myPrecipitationIntensity |
| unsigned int | myPrecipitationType |
| float | myGroundRainAccumulation |
| DtVector | myFogColor |
| float | myVisibilityDistance |
| float | myOvercast |
| bool | myLightningEnabled |
| float | myWindDirection |
| float | myWindSpeed |
| makVrv::DtWeatherAreaObject::DtWeatherAreaObject | ( | 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 |
Sets the bounds of the area.
| bounds | The (x,y,z) of the bounds. |
| cornerRadius | The radius at each corner of the bounds. |
|
virtual |
Sets the area transform. Coordinates are in the database coordinate system.
| position | The transform position. |
| orientation | The yaw orientation in degrees (0 = north). |
|
virtual |
Returns the area origin position. Coordinates are in the database coordinate system.
|
virtual |
Returns yaw orientation in degrees (0 = north). Coordinates are in the database coordinate system.
|
virtual |
Returns the bounds (x,y,z) of the area.
|
virtual |
Returns the bounds corner radius.
|
virtual |
Sets the precipitation intensity.
| intensity | The precipitation intensity. |
|
virtual |
Returns the precipitation intensity.
Sets the precipitation type.
| type | The precipitation type. |
Returns the precipitation type.
|
virtual |
Set the ground rain accumulation depth.
| depth | The ground rain accumulation depth. |
|
virtual |
Returns the ground rain accumulation depth.
|
virtual |
Sets a fog color for the area.
| color | The fog color. |
|
virtual |
Returns the fog color for the area.
|
virtual |
Sets a visibility distance for the area.
| distance | The distance. |
|
virtual |
Returns the visibility distance for the area.
|
virtual |
Sets an overcast lighting value for the area.
| overcast | The overcast value (0.0 [clear] - 1.0 [full overcast]). |
|
virtual |
Returns the overcast for the area.
|
virtual |
Sets the lightning enabled flag for the area.
| enabled | Set to true to enable lightning for the area. |
|
virtual |
Returns the lightning enabled flag for the area.
|
virtual |
Sets wind for the area.
| direction | The wind direction in radians from true north (clockwise). |
| speed | The wind speed in meters per second. |
|
virtual |
Returns the wind direction for the area.
|
virtual |
Returns the wind speed for the area.
|
virtual |
Called when a cloud layer is added to this weather area.
| layerId | The cloud layer id. |
| cloudType | The cloud type (see DtCloudTypeMapper). |
|
virtual |
Called when a cloud layer is removed from this weather area.
| layerId | The cloud layer id. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |