VR-Forces 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 bool install (osg::StateSet *stateset)
 
virtual bool uninstall (osg::StateSet *stateset)
 
virtual bool installed (void) const
 
virtual void setColor (const Vector4_32 &fogColor, const osg::Camera *osgCamera)
 
virtual void setDensity (float fDensity, const osg::Camera *osgCamera)
 
virtual void setHeightFogPlane (const Vector4_32 &fogPlane, const osg::Camera *osgCamera)
 
virtual void setHeightFogParams (const Vector4_32 &fogParams, const osg::Camera *osgCamera)
 
virtual void setHeightFogColor (const Vector4_32 &color, const osg::Camera *osgCamera)
 
virtual Vector4_32 color (const osg::Camera *osgCamera) const
 
virtual float density (const osg::Camera *osgCamera) const
 
virtual void setCameraDepth (float depth, const osg::Camera *osgCamera)
 
virtual float cameraDepth (const osg::Camera *osgCamera) const
 
- Public Member Functions inherited from makVrv::DtOsgStateComponent
 DtOsgStateComponent (DtDe &de)
 

Protected Member Functions

DtLightingComponentShaderConstants * findShaderConstants (const osg::Camera *osgCamera)
 
const
DtLightingComponentShaderConstants * 
findShaderConstants (const osg::Camera *osgCamera) const
 
- Protected Member Functions inherited from makVrv::DtOsgStateComponent
virtual ~DtOsgStateComponent ()
 
virtual const std::string & loadShaderSource (const std::string &strFileName) const
 

Protected Attributes

bool myInstalled
 
DtOsgLightManager & myOsgLightManager
 
- Protected Attributes inherited from makVrv::DtOsgStateComponent
DtDe & myDe
 
DtOsgShaderFilesCache & myShaderFilesCache
 

Private Member Functions

 DtOsgFogComponent (const DtOsgFogComponent &other)
 
DtOsgFogComponent & operator= (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 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,
const osg::Camera *  osgCamera 
)
virtual

Sets the visibility fog color.

Parameters
fogColorThe visibility fog color.
osgCameraThe OSG camera to apply the fog color to.
virtual void makVrv::DtOsgFogComponent::setDensity ( float  fDensity,
const osg::Camera *  osgCamera 
)
virtual

Sets the visibility fog density.

Parameters
fDensityThe visibility fog density.
osgCameraThe OSG camera to apply the fog density to.
virtual void makVrv::DtOsgFogComponent::setHeightFogPlane ( const Vector4_32 &  fogPlane,
const osg::Camera *  osgCamera 
)
virtual

Sets the height fog plane.

Parameters
fogPlaneThe plane equation in view space.
osgCameraThe OSG camera to apply the height fog plane to.
virtual void makVrv::DtOsgFogComponent::setHeightFogParams ( const Vector4_32 &  fogParams,
const osg::Camera *  osgCamera 
)
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
osgCameraThe OSG camera to apply the height fog parameters to.
virtual void makVrv::DtOsgFogComponent::setHeightFogColor ( const Vector4_32 &  color,
const osg::Camera *  osgCamera 
)
virtual

Sets the height fog color.

Parameters
colorThe height fog color.
osgCameraThe OSG camera to apply the height fog color to.
virtual Vector4_32 makVrv::DtOsgFogComponent::color ( const osg::Camera *  osgCamera) const
virtual

Gets the visibility fog color.

virtual float makVrv::DtOsgFogComponent::density ( const osg::Camera *  osgCamera) const
virtual

Gets the visibility fog density.

virtual void makVrv::DtOsgFogComponent::setCameraDepth ( float  depth,
const osg::Camera *  osgCamera 
)
virtual

Set/Get the depth of the camera below the ocean surface.

virtual float makVrv::DtOsgFogComponent::cameraDepth ( const osg::Camera *  osgCamera) const
virtual

Set/Get the depth of the camera below the ocean surface.

DtLightingComponentShaderConstants* makVrv::DtOsgFogComponent::findShaderConstants ( const osg::Camera *  osgCamera)
protected

internal helper

const DtLightingComponentShaderConstants* makVrv::DtOsgFogComponent::findShaderConstants ( const osg::Camera *  osgCamera) 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 Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)