VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgSkyObject Class Reference

An OSG implementation of the sky. More...

Inheritance diagram for makVrv::DtOsgSkyObject:
Inheritance graph
[legend]

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

DtDemyDe
osg::ref_ptr< DtSilverliningGroupmySilverliningNode
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...

Detailed Description

An OSG implementation of the sky.

Constructor & Destructor Documentation

makVrv::DtOsgSkyObject::DtOsgSkyObject ( DtDe ,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtOsgSkyObject::~DtOsgSkyObject ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgSkyObject::setLocation ( const DtVector location)
virtual

Set the location of the viewer from which the sky is to be recalculated.

Parameters
Input
locationis the local coordinate from which to generate the sky for. Typically it is the observer location.

Reimplemented from makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::addCloudLayer ( int  deckType,
const DtVector location,
const DtVector bounds,
double  density 
)
virtual

Add new cloud deck.

Parameters
Input
deckTypethe type of clouds to add, we can't use the enumeration as a type for the distributed object interface.

Reimplemented from makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::removeCloudLayer ( int  index)
virtual

Remove a cloud layer.

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setCloudLayerEnabled ( int  index,
bool  enabled 
)
virtual

Enable/disable a cloud layer.

Implements makVrv::DtSkyObject.

virtual int makVrv::DtOsgSkyObject::cloudLayerCount ( ) const
virtual

Get the number of cloud decks.

Reimplemented from makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setAirTurbidity ( float  turbidity)
virtual

Set the air turbidity (haziness)

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setVisibleDistance ( float  distance)
virtual

Set the visible distance.

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setPrecipitationEnabled ( bool  enabled)
virtual

Set whether precipitation is enabled.

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setPrecipitationType ( int  type)
virtual

Set the precipitation type.

Parameters
input0 = rain, 1 = snow.

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setPrecipitationIntensity ( float  intensity)
virtual

Set the precipitation intensity.

Implements makVrv::DtSkyObject.

virtual void makVrv::DtOsgSkyObject::setCloudLayerPosition ( int  index,
double  xCoord,
double  yCoord 
)
virtual

Move a cloud layer to a new position.

Implements makVrv::DtSkyObject.

void makVrv::DtOsgSkyObject::updatePrecipitation ( )
protected
void makVrv::DtOsgSkyObject::on_coordinateSystemChanged ( const std::string &  type)
protected

Member Data Documentation

DtDe& makVrv::DtOsgSkyObject::myDe
protected
osg::ref_ptr<DtSilverliningGroup> makVrv::DtOsgSkyObject::mySilverliningNode
protected
osg::ref_ptr<osgParticle::PrecipitationEffect> makVrv::DtOsgSkyObject::myPrecipitationEffect
protected
bool makVrv::DtOsgSkyObject::myPrecipitationEnabled
protected
int makVrv::DtOsgSkyObject::myPrecipitationEffectType
protected
float makVrv::DtOsgSkyObject::myPrecipitationIntensity
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)