VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgFogComponent Class Reference

State component that injects Fog rendering capabilities into a state set. More...

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

Public Member Functions

 DtOsgFogComponent (DtDe &de)
 CTOR. More...
 
virtual ~DtOsgFogComponent ()
 DTOR. More...
 
virtual void init ()
 Initializes the component with default values. More...
 
virtual bool install (osg::StateSet *stateset)
 Install this component on a state set. More...
 
virtual bool uninstall (osg::StateSet *stateset)
 Uninstall this component from a state set. More...
 
virtual bool installed (void) const
 Returns true if the component is installed on a state set. More...
 
virtual void setColor (const osg::Vec4f &fogColor)
 Sets the visibility fog color. More...
 
virtual void setDensity (float fDensity)
 Sets the visibility fog density. More...
 
virtual void setHeightFogPlane (const osg::Vec4f &fogPlane)
 Sets the height fog plane. More...
 
virtual void setHeightFogParams (const osg::Vec4f &fogParams)
 Sets the height fog parameters. More...
 
virtual void setHeightFogColor (const osg::Vec4f &color)
 Sets the height fog color. More...
 
virtual osg::Vec4f color (void) const
 Gets the visibility fog color. More...
 
virtual float density (void) const
 Gets the visibility fog density. More...
 
virtual osg::Vec4f heightFogPlane (void) const
 Gets the height fog plane. More...
 
virtual osg::Vec4f heightFogParams (void) const
 Gets the height fog parameters. More...
 
virtual osg::Vec4f heightFogColor (void) const
 Gets the height fog color. More...
 
- Public Member Functions inherited from makVrv::DtOsgStateComponent
 DtOsgStateComponent (DtDe &de)
 CTOR. More...
 

Protected Attributes

osg::ref_ptr< osg::Uniform > myFogColor
 
osg::ref_ptr< osg::Uniform > myFogDensity
 
osg::ref_ptr< osg::Uniform > myHeightFogPlane
 
osg::ref_ptr< osg::Uniform > myHeightFogParams
 
osg::ref_ptr< osg::Uniform > myHeightFogColor
 
bool myInstalled
 
- Protected Attributes inherited from makVrv::DtOsgStateComponent
DtDemyDe
 
DtOsgShaderFilesCachemyShaderFilesCache
 

Private Member Functions

 DtOsgFogComponent (const DtOsgFogComponent &other)
 Copy Constructor not implemented - Copy not allowed. More...
 
DtOsgFogComponentoperator= (const DtOsgFogComponent &other)
 Assignment Operator not implemented - Assignment not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtOsgStateComponent
virtual ~DtOsgStateComponent ()
 DTOR. More...
 
virtual const std::string & loadShaderSource (const std::string &strFileName) const
 Loads shader source code from a path. More...
 

Detailed Description

State component that injects Fog rendering capabilities into a state set.

Constructor & Destructor Documentation

makVrv::DtOsgFogComponent::DtOsgFogComponent ( DtDe de)

CTOR.

virtual makVrv::DtOsgFogComponent::~DtOsgFogComponent ( )
virtual

DTOR.

makVrv::DtOsgFogComponent::DtOsgFogComponent ( const DtOsgFogComponent other)
private

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtOsgFogComponent& makVrv::DtOsgFogComponent::operator= ( const DtOsgFogComponent other)
private

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtOsgFogComponent::init ( )
virtual

Initializes the component with default values.

virtual bool makVrv::DtOsgFogComponent::install ( osg::StateSet *  stateset)
virtual

Install this component on a state set.

Implements makVrv::DtOsgStateComponent.

virtual bool makVrv::DtOsgFogComponent::uninstall ( osg::StateSet *  stateset)
virtual

Uninstall this component from a state set.

Implements makVrv::DtOsgStateComponent.

virtual bool makVrv::DtOsgFogComponent::installed ( void  ) const
virtual

Returns true if the component is installed on a state set.

virtual void makVrv::DtOsgFogComponent::setColor ( const osg::Vec4f &  fogColor)
virtual

Sets the visibility fog color.

Parameters
fogColorThe visibility fog color.
virtual void makVrv::DtOsgFogComponent::setDensity ( float  fDensity)
virtual

Sets the visibility fog density.

Parameters
fDensityThe visibility fog density.
virtual void makVrv::DtOsgFogComponent::setHeightFogPlane ( const osg::Vec4f &  fogPlane)
virtual

Sets the height fog plane.

Parameters
fogPlaneThe plane equation in view space.
virtual void makVrv::DtOsgFogComponent::setHeightFogParams ( const osg::Vec4f &  fogParams)
virtual

Sets the height fog parameters.

Parameters
fogParamsThe height fog paramters x = camera distance to height fog plane y = height fog density z = unused w = height fog enable
virtual void makVrv::DtOsgFogComponent::setHeightFogColor ( const osg::Vec4f &  color)
virtual

Sets the height fog color.

Parameters
colorThe height fog color.
virtual osg::Vec4f makVrv::DtOsgFogComponent::color ( void  ) const
virtual

Gets the visibility fog color.

virtual float makVrv::DtOsgFogComponent::density ( void  ) const
virtual

Gets the visibility fog density.

virtual osg::Vec4f makVrv::DtOsgFogComponent::heightFogPlane ( void  ) const
virtual

Gets the height fog plane.

virtual osg::Vec4f makVrv::DtOsgFogComponent::heightFogParams ( void  ) const
virtual

Gets the height fog parameters.

virtual osg::Vec4f makVrv::DtOsgFogComponent::heightFogColor ( void  ) const
virtual

Gets the height fog color.

Member Data Documentation

osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myFogColor
protected
osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myFogDensity
protected
osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myHeightFogPlane
protected
osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myHeightFogParams
protected
osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myHeightFogColor
protected
bool makVrv::DtOsgFogComponent::myInstalled
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)