![]() |
VR-Forces 4.1 Class Documentation
|
An OSG implementation of the sky. More...

Public Member Functions | |
| DtOsgSkyObject (DtDe &, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtOsgSkyObject () |
| DTOR. | |
| virtual void | setLocation (const DtVector &location) |
| Set the location of the viewer from which the sky is to be recalculated. | |
| virtual void | addCloudLayer (int deckType, const DtVector &location, const DtVector &bounds, double density) |
| Add new cloud deck. | |
| virtual void | removeCloudLayer (int index) |
| Remove a cloud layer. | |
| virtual void | setCloudLayerEnabled (int index, bool enabled) |
| Enable/disable a cloud layer. | |
| virtual int | cloudLayerCount () const |
| Get the number of cloud decks. | |
| virtual void | setAirTurbidity (float turbidity) |
| Set the air turbidity (haziness) | |
| virtual void | setVisibleDistance (float distance) |
| Set the visible distance. | |
| virtual void | setPrecipitationEnabled (bool enabled) |
| Set whether precipitation is enabled. | |
| virtual void | setPrecipitationType (int type) |
| Set the precipitation type. | |
| virtual void | setPrecipitationIntensity (float intensity) |
| Set the precipitation intensity. | |
| virtual void | setCloudLayerPosition (int index, double xCoord, double yCoord) |
| Move a cloud layer to a new position. | |
Public Member Functions inherited from makVrv::DtSkyObject | |
| DtSkyObject (DtDe &de, DtUniqueID id) | |
| |brief CTOR | |
| virtual | ~DtSkyObject () |
| DTOR. | |
| virtual void | setDateAndTime (unsigned short year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minutes, double seconds, bool observeDaylightSavings) |
| Set the date and time to show the sky. | |
Protected Member Functions | |
| void | updatePrecipitation () |
| void | on_coordinateSystemChanged (const std::string &type) |
Protected Attributes | |
| DtDe & | myDe |
| osg::ref_ptr< DtSilverliningGroup > | mySilverliningNode |
| osg::ref_ptr < osgParticle::PrecipitationEffect > | myPrecipitationEffect |
| bool | myPrecipitationEnabled |
| int | myPrecipitationEffectType |
| float | myPrecipitationIntensity |
Additional Inherited Members | |
Public Types inherited from makVrv::DtSkyObject | |
| enum | CloudLayerTypes { Cirrocumulus, CirrusFibratus, Nimbostratus, CumulusMediocris, CumulusCongestus, CumulonimbusCapillatus } |
| Cloud layer types. More... | |
An OSG implementation of the sky.
| makVrv::DtOsgSkyObject::DtOsgSkyObject | ( | DtDe & | , |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the location of the viewer from which the sky is to be recalculated.
| Input | |
| location | is the local coordinate from which to generate the sky for. Typically it is the observer location. |
Reimplemented from makVrv::DtSkyObject.
|
virtual |
Add new cloud deck.
| Input | |
| deckType | the type of clouds to add, we can't use the enumeration as a type for the distributed object interface. |
Reimplemented from makVrv::DtSkyObject.
|
virtual |
Remove a cloud layer.
Implements makVrv::DtSkyObject.
|
virtual |
Enable/disable a cloud layer.
Implements makVrv::DtSkyObject.
|
virtual |
Get the number of cloud decks.
Reimplemented from makVrv::DtSkyObject.
|
virtual |
Set the air turbidity (haziness)
Implements makVrv::DtSkyObject.
|
virtual |
Set the visible distance.
Implements makVrv::DtSkyObject.
|
virtual |
Set whether precipitation is enabled.
Implements makVrv::DtSkyObject.
|
virtual |
|
virtual |
Set the precipitation intensity.
Implements makVrv::DtSkyObject.
|
virtual |
Move a cloud layer to a new position.
Implements makVrv::DtSkyObject.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |