VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtEnvironmentInfo Class Reference

The DtEnvironmentInfo class is responsible for holding data related to the environment such as sky lighting and fog.

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

Public Member Functions

virtual osg::Vec3 lightPosition () const
 
virtual osg::Vec4 ambientColor () const
 
virtual osg::Vec4 diffuseColor () const
 
virtual Vector4_32 fogColor () const
 
virtual float fogDensity () const
 
virtual bool heightFogEnable () const
 
virtual float heightFogAltitude () const
 
virtual float heightFogDensity () const
 
virtual float heightFogDistance () const
 
virtual Vector4_32 heightFogColor () const
 
virtual void setFogColor (const Vector4_32 &color)
 
virtual void setFogDensity (float density)
 
virtual void setHeightFogEnable (bool enable)
 
virtual void setHeightFogAltitude (float altitude)
 
virtual void setHeightFogDensity (float density)
 
virtual void setHeightFogDistance (float distance)
 
virtual void setHeightFogColor (const Vector4_32 &color)
 
virtual void setLightPosition (const osg::Vec3 &pos)
 
virtual void setAmbientColor (const osg::Vec4 &color)
 
virtual void setDiffuseColor (const osg::Vec4 &color)
 
virtual ~DtEnvironmentInfo ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtEnvironmentInfoinstance (DtDe &de)
 

Protected Attributes

osg::Vec3 myLightPosition
 
osg::Vec4 myAmbientColor
 
osg::Vec4 myDiffuseColor
 
float myFogDensity
 
bool myHeightFogEnable
 
float myHeightFogAltitude
 
float myHeightFogDensity
 
float myHeightFogDistance
 
Vector4_32 myHeightFogColor
 
Vector4_32 myFogColor
 

Private Member Functions

 DtEnvironmentInfo ()
 
 DtEnvironmentInfo (const DtEnvironmentInfo &)
 
DtEnvironmentInfooperator= (const DtEnvironmentInfo &)
 

Constructor & Destructor Documentation

virtual makVrv::DtEnvironmentInfo::~DtEnvironmentInfo ( )
virtual

DTOR.

makVrv::DtEnvironmentInfo::DtEnvironmentInfo ( )
private

Default constructor.

makVrv::DtEnvironmentInfo::DtEnvironmentInfo ( const DtEnvironmentInfo )
private

Copy constructor.

Member Function Documentation

static DtEnvironmentInfo& makVrv::DtEnvironmentInfo::instance ( DtDe de)
static

Get an instance of the DtEnvironmentInfo object.

Parameters
deThe display engine root for the singleton.
virtual osg::Vec3 makVrv::DtEnvironmentInfo::lightPosition ( ) const
virtual

Returns the sky light position.

virtual osg::Vec4 makVrv::DtEnvironmentInfo::ambientColor ( ) const
virtual

Returns the sky light ambient color.

virtual osg::Vec4 makVrv::DtEnvironmentInfo::diffuseColor ( ) const
virtual

Returns the sky light diffuse color.

virtual Vector4_32 makVrv::DtEnvironmentInfo::fogColor ( ) const
virtual

Returns the distance fog color.

virtual float makVrv::DtEnvironmentInfo::fogDensity ( ) const
virtual

Returns the distance fog density.

virtual bool makVrv::DtEnvironmentInfo::heightFogEnable ( ) const
virtual

Returns the height fog enabled state.

virtual float makVrv::DtEnvironmentInfo::heightFogAltitude ( ) const
virtual

Returns the height fog altitude.

virtual float makVrv::DtEnvironmentInfo::heightFogDensity ( ) const
virtual

Returns the height fog density.

virtual float makVrv::DtEnvironmentInfo::heightFogDistance ( ) const
virtual

Returns the height fog distance.

virtual Vector4_32 makVrv::DtEnvironmentInfo::heightFogColor ( ) const
virtual

Returns the height fog color.

virtual void makVrv::DtEnvironmentInfo::setFogColor ( const Vector4_32 color)
virtual

Sets the distance fog color.

Parameters
colorThe fog color.
virtual void makVrv::DtEnvironmentInfo::setFogDensity ( float  density)
virtual

Sets the distance fog density.

Parameters
densityThe fog density value.
virtual void makVrv::DtEnvironmentInfo::setHeightFogEnable ( bool  enable)
virtual

Sets the height fog enable state.

Parameters
enableSet to true to enable the height fog.
virtual void makVrv::DtEnvironmentInfo::setHeightFogAltitude ( float  altitude)
virtual

Sets the height fog altitude.

Parameters
altitudeThe altitude (above sea level) to use.
virtual void makVrv::DtEnvironmentInfo::setHeightFogDensity ( float  density)
virtual

Sets the height fog density.

Parameters
densityThe density to use for exp() falloff.
virtual void makVrv::DtEnvironmentInfo::setHeightFogDistance ( float  distance)
virtual

Sets the height fog distance. This is the maximum distance that the view would look through the fog.

Parameters
densityThe distance.
virtual void makVrv::DtEnvironmentInfo::setHeightFogColor ( const Vector4_32 color)
virtual

Sets the height fog color.

Parameters
colorThe base color used for height fog.
virtual void makVrv::DtEnvironmentInfo::setLightPosition ( const osg::Vec3 &  pos)
virtual

Sets the sky light position.

Parameters
posThe light position.
virtual void makVrv::DtEnvironmentInfo::setAmbientColor ( const osg::Vec4 &  color)
virtual

Sets the sky light ambient color.

Parameters
colorThe ambient color.
virtual void makVrv::DtEnvironmentInfo::setDiffuseColor ( const osg::Vec4 &  color)
virtual

Sets the sky light diffuse color.

Parameters
colorThe diffuse color.
DtEnvironmentInfo& makVrv::DtEnvironmentInfo::operator= ( const DtEnvironmentInfo )
private

Assignment Operator.

Member Data Documentation

osg::Vec3 makVrv::DtEnvironmentInfo::myLightPosition
protected
osg::Vec4 makVrv::DtEnvironmentInfo::myAmbientColor
protected
osg::Vec4 makVrv::DtEnvironmentInfo::myDiffuseColor
protected
float makVrv::DtEnvironmentInfo::myFogDensity
protected
bool makVrv::DtEnvironmentInfo::myHeightFogEnable
protected
float makVrv::DtEnvironmentInfo::myHeightFogAltitude
protected
float makVrv::DtEnvironmentInfo::myHeightFogDensity
protected
float makVrv::DtEnvironmentInfo::myHeightFogDistance
protected
Vector4_32 makVrv::DtEnvironmentInfo::myHeightFogColor
protected
Vector4_32 makVrv::DtEnvironmentInfo::myFogColor
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)