![]() |
VR-Forces 5.0.2 Developer's Guide
|
State component that injects Fog rendering capabilities into a state set.

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 | |
| DtLightingComponentShaderConstants * | findShaderConstants (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 |
| DtOsgLightManager & | myOsgLightManager |
Protected Attributes inherited from makVrv::DtOsgStateComponent | |
| DtDe & | myDe |
| DtOsgShaderFilesCache & | myShaderFilesCache |
Private Member Functions | |
| DtOsgFogComponent (const DtOsgFogComponent &other) | |
| DtOsgFogComponent & | operator= (const DtOsgFogComponent &other) |
| makVrv::DtOsgFogComponent::DtOsgFogComponent | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Initializes the component with default values.
|
virtual |
Install this component on a state set.
Implements makVrv::DtOsgStateComponent.
|
virtual |
Uninstall this component from a state set.
Implements makVrv::DtOsgStateComponent.
|
virtual |
Returns true if the component is installed on a state set.
|
virtual |
Sets the visibility fog color.
| fogColor | The visibility fog color. |
|
virtual |
Sets the visibility fog density.
| fDensity | The visibility fog density. |
|
virtual |
Sets the height fog plane.
| fogPlane | The plane equation in view space. |
|
virtual |
Sets the height fog parameters.
| fogParams | The height fog paramters x = camera distance to height fog plane y = height fog density z = unused w = height fog enable |
|
virtual |
Sets the height fog color.
| color | The height fog color. |
|
virtual |
Gets the visibility fog color.
|
virtual |
Gets the visibility fog density.
|
virtual |
Gets the height fog plane.
|
virtual |
Gets the height fog parameters.
|
virtual |
Gets the height fog color.
|
protected |
internal helper
|
protected |
internal helper
|
protected |
|
protected |