![]() |
VR-Forces 4.10 Class Documentation
|
State component that injects Fog rendering capabilities into a state set. More...

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 | |
| DtDe & | myDe |
| DtOsgShaderFilesCache & | myShaderFilesCache |
Private Member Functions | |
| DtOsgFogComponent (const DtOsgFogComponent &other) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtOsgFogComponent & | operator= (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... | |
State component that injects Fog rendering capabilities into a state set.
| 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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |