VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
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.
virtual bool install (osg::StateSet *stateset)
 Install this component on a state set.
virtual bool uninstall (osg::StateSet *stateset)
 Uninstall this component from a state set.
void setColor (const osg::Vec4f &fogColor)
void setDensity (float fDensity)
osg::Vec4f color (void) const
float density (void) const
- Public Member Functions inherited from makVrv::DtOsgStateComponent
 DtOsgStateComponent (DtDe &de, const DtOsgStateComponentContext *context=0L)
 CTOR.
const DtOsgStateComponentContextgetContext () const
 Gets the context under which this component operates.

Protected Member Functions

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

Protected Attributes

osg::ref_ptr< osg::Uniform > myFogColor
osg::ref_ptr< osg::Uniform > myFogDensity

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 ( )
protectedvirtual

DTOR.

Member Function Documentation

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.

void makVrv::DtOsgFogComponent::setColor ( const osg::Vec4f &  fogColor)
void makVrv::DtOsgFogComponent::setDensity ( float  fDensity)
osg::Vec4f makVrv::DtOsgFogComponent::color ( void  ) const
float makVrv::DtOsgFogComponent::density ( void  ) const

Member Data Documentation

osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myFogColor
protected
osg::ref_ptr<osg::Uniform> makVrv::DtOsgFogComponent::myFogDensity
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)