![]() |
VR-Forces 5.0.1 Developer's Guide
|
The base sky object.

Classes | |
| class | CloudLayer |
Public Types | |
| enum | PrecipitationType { None = 0, Rain = 1, SnowWet = 2, SnowDry = 3, Sleet = 4, Hail = 5, Drizzle = 6 } |
Public Member Functions | |
| DtSkyObject (DtDe &de, DtUniqueID id) | |
| virtual | ~DtSkyObject () |
| virtual void | setLocation (const DtVector &location) |
| virtual void | setDateAndTime (unsigned short year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minutes, double seconds, bool observeDaylightSavings) |
| virtual void | addCloudLayer (DtCloudLayerId layerId)=0 |
| virtual void | sendCloudLayer (DtCloudLayerId layerId)=0 |
| virtual void | setCloudLayerDeckType (DtCloudLayerId layerId, int deckType)=0 |
| virtual void | setCloudLayerCornerRadius (DtCloudLayerId layerId, float corner)=0 |
| virtual void | setCloudLayerBounds (DtCloudLayerId layerId, const DtVector &bounds)=0 |
| virtual void | setCloudLayerDensity (DtCloudLayerId layerId, double density)=0 |
| virtual void | setCloudLayerInfiniteFlag (DtCloudLayerId layerId, bool infinite)=0 |
| virtual void | setCloudLayerRelativeFlag (DtCloudLayerId layerId, bool relative)=0 |
| virtual void | setCloudLayerFadeAtAltitudeFlag (DtCloudLayerId layerId, bool fadeAtAltitude)=0 |
| virtual void | setCloudLayerAltitudeIsHATFlag (DtCloudLayerId layerId, bool altitudeIsHAT)=0 |
| virtual CloudLayer * | findCloudLayer (DtCloudLayerId layerId)=0 |
| virtual void | setCloudLayerEnabled (DtCloudLayerId layerId, bool enabled)=0 |
| virtual void | removeCloudLayer (DtCloudLayerId layerId)=0 |
| virtual void | removeCloudLayers ()=0 |
| virtual void | setAirTurbidity (float turbidity)=0 |
| virtual void | setAmbientAirTemperature (float temperature)=0 |
| virtual void | setVisibleDistance (float distance)=0 |
| virtual void | setPrecipitationEnabled (bool enabled)=0 |
| virtual void | setPrecipitationType (int type)=0 |
| virtual void | setPrecipitationIntensity (float intensity)=0 |
| virtual void | setCloudLayerPositionAndOrientation (DtCloudLayerId layerId, const DtVector &position, float orientation)=0 |
| virtual void | setFogHeight (float meters)=0 |
| virtual void | setFogColor (const DtVector &color)=0 |
| virtual void | setGroundFogColor (const DtVector &color)=0 |
| virtual void | setWindSpeed (float metersPerSecond)=0 |
| virtual void | setWindDirection (float radians)=0 |
| void | setAmbientLightValue (float ambientLightValue) |
| float | ambientLightValue () const |
| bool | isDaylight () const |
| bool | isSkyCastingShadows () const |
Static Public Attributes | |
| static const float | theDefaultDayLightLevel |
| static const float | theDefaultSkyShadowsLightLevelNoHdr |
| static const float | theDefaultSkyShadowsLightLevelHdr |
| static const float | theDefaultFogVisibilityLevel |
| static const double | theMaximumPrecipitationRate |
| static const float | theMaximumVisibilityDistance |
Protected Attributes | |
| float | myAmbientLightValue |
| DtSkyObjectSignaler & | mySignaler |
| DtDe & | myDe |
| makVrv::DtSkyObject::DtSkyObject | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the initial sky location.
Reimplemented in makVrv::DtOsgSkyObject.
|
virtual |
Set the date and time to show the sky.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Enable/disable a cloud layer.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
|
pure virtual |
Remove all the cloud decks.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the air turbidity (haziness)
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the visible distance.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the visible distance.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set whether precipitation is enabled.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the precipitation type.
| input | 0 = none, 1 = rain, 2 = wet snow, 3 = dry snow, 4 = sleet, 5 = hail |
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the precipitation intensity.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Move a cloud layer to a new position.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the ceiling height of the fog layer.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the color of the fog layer.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the color of the ground fog layer.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the wind speed in meters per second.
Implemented in makVrv::DtOsgSkyObject.
|
pure virtual |
Set the wind direction blowing from in radians from north.
Implemented in makVrv::DtOsgSkyObject.
| void makVrv::DtSkyObject::setAmbientLightValue | ( | float | ambientLightValue | ) |
This is set by the SilverLining group; it can be accessed only by getting the skyObject through the skyObjectAgent.
| float makVrv::DtSkyObject::ambientLightValue | ( | ) | const |
| bool makVrv::DtSkyObject::isDaylight | ( | ) | const |
Returns whether or not the light level counts as daylight.
| bool makVrv::DtSkyObject::isSkyCastingShadows | ( | ) | const |
Returns whether or not the light level counts as shadow casting, (which could be from sun or moon light sources, but only considers sky based light sources).
|
static |
Value for daylight visibility.
|
static |
Value for shadow visibility without HDR.
|
static |
Value for shadow visibility with HDR.
|
static |
Value for fog visibility - standard definition (1000 m.)
|
static |
Maximum precipitation rate in mm/hr. This value will be clamped to the value specified by rain-max-intensity, snow-max-intensity, or sleet-max-intensity in resources/SilverLining.config. The default is 200 mm/hr.
|
static |
Maximum Visibility Distance. The default is 20 km.
|
protected |
|
protected |
|
protected |