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 | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgFogComponent Class Reference

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

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

Public Member Functions

 DtOsgFogComponent (DtDe &de)
 
virtual ~DtOsgFogComponent ()
 
virtual void init ()
 
virtual bool install (osg::StateSet *stateset)
 
virtual bool uninstall (osg::StateSet *stateset)
 
virtual bool installed (void) const
 
virtual void setColor (const Vector4_32 &fogColor)
 
virtual void setDensity (float fDensity)
 
virtual void setHeightFogPlane (const Vector4_32 &fogPlane)
 
virtual void setHeightFogParams (const Vector4_32 &fogParams)
 
virtual void setHeightFogColor (const Vector4_32 &color)
 
virtual Vector4_32 color (void) const
 
virtual float density (void) const
 
virtual Vector4_32 heightFogPlane (void) const
 
virtual Vector4_32 heightFogParams (void) const
 
virtual Vector4_32 heightFogColor (void) const
 
- Public Member Functions inherited from makVrv::DtOsgStateComponent
 DtOsgStateComponent (DtDe &de)
 

Protected Member Functions

DtLightingComponentShaderConstantsfindShaderConstants (void)
 
const
DtLightingComponentShaderConstants
findShaderConstants (void) const
 
- Protected Member Functions inherited from makVrv::DtOsgStateComponent
virtual ~DtOsgStateComponent ()
 
virtual const std::string & loadShaderSource (const std::string &strFileName) const
 

Protected Attributes

bool myInstalled
 
DtOsgLightManagermyOsgLightManager
 
- Protected Attributes inherited from makVrv::DtOsgStateComponent
DtDemyDe
 
DtOsgShaderFilesCachemyShaderFilesCache
 

Private Member Functions

 DtOsgFogComponent (const DtOsgFogComponent &other)
 
DtOsgFogComponentoperator= (const DtOsgFogComponent &other)
 

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 Vector4_32 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 Vector4_32 fogPlane)
virtual

Sets the height fog plane.

Parameters
fogPlaneThe plane equation in view space.
virtual void makVrv::DtOsgFogComponent::setHeightFogParams ( const Vector4_32 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 Vector4_32 color)
virtual

Sets the height fog color.

Parameters
colorThe height fog color.
virtual Vector4_32 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 Vector4_32 makVrv::DtOsgFogComponent::heightFogPlane ( void  ) const
virtual

Gets the height fog plane.

virtual Vector4_32 makVrv::DtOsgFogComponent::heightFogParams ( void  ) const
virtual

Gets the height fog parameters.

virtual Vector4_32 makVrv::DtOsgFogComponent::heightFogColor ( void  ) const
virtual

Gets the height fog color.

DtLightingComponentShaderConstants* makVrv::DtOsgFogComponent::findShaderConstants ( void  )
protected

internal helper

const DtLightingComponentShaderConstants* makVrv::DtOsgFogComponent::findShaderConstants ( void  ) const
protected

internal helper

Member Data Documentation

bool makVrv::DtOsgFogComponent::myInstalled
protected
DtOsgLightManager& makVrv::DtOsgFogComponent::myOsgLightManager
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)