![]() |
VR-Forces 4.8 Class Documentation
|
A drawable used for drawing patchy ground fog objects. More...

Public Member Functions | |
| DtGroundFogPatchDrawable (makVrv::DtDe &de, DtGroundFogGroup *groundFogGroup) | |
| CTOR. More... | |
| DtGroundFogPatchDrawable (const DtGroundFogPatchDrawable &orig, const osg::CopyOp &opr) | |
| Copy constructor needed because it is derived from osg::Drawable. More... | |
| virtual | ~DtGroundFogPatchDrawable () |
| DTOR. More... | |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const |
| required functions for derriving from osg::Drawable More... | |
| virtual osg::Object * | cloneType () const |
| virtual void | init () |
| Initializes the uniforms and state attributes for the drawable. More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| Release all gl objects used by this system. More... | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| Actually do the drawing. More... | |
| virtual void | applyState (DtGroundFogPatchArea::DrawData &drawData) const |
| Applies the state for drawing. More... | |
| virtual void | setWind (float windDirectionRad, float windSpeedMps) |
| Sets the current wind to use for fog. More... | |
Protected Member Functions | |
| virtual bool | loadShaders () |
| Loads shaders used to draw ground fog patch objects. More... | |
| virtual void | connectSignals () |
| Connects all the signals, Non-virtural, called in the ctor. More... | |
| virtual void | disconnectSignals () |
| Disconnects all the signals, called in the dtor. More... | |
| virtual void | slot_reloadShaders () |
| Signal handler to reload the shaders. More... | |
| virtual void | setupSoftness (osg::Camera *camera) const |
| Setup softness parameters used when drawing. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtGroundFogGroup * | myGroundFogGroup |
| bool | myInitialized |
| float | myWindDirectionRad |
| float | myWindSpeedMps |
| osg::ref_ptr< osg::Texture > | myParticleTexture |
| osg::ref_ptr< osg::Texture > | myPatternTexture |
| osg::ref_ptr< osg::StateSet > | myStateSet |
Private Member Functions | |
| DtGroundFogPatchDrawable () | |
| Default Constructor not implemented. More... | |
| DtGroundFogPatchDrawable (const DtGroundFogPatchDrawable &other) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtGroundFogPatchDrawable & | operator= (const DtGroundFogPatchDrawable &other) |
| Assignment Operator not implemented - Assignment not allowed. More... | |
Private Attributes | |
| osg::ref_ptr< osg::Uniform > | myMutableInvPersMatrixUniform |
| needed for smoothness These are mutable because they are used as part of the const drawImplementation. More... | |
| osg::ref_ptr< osg::Uniform > | myMutablePersMatrixUniform |
| osg::ref_ptr< osg::Uniform > | myMutableViewportUniform |
| osg::ref_ptr< osg::Uniform > | myMutableIsReflectionUniform |
| osg::ref_ptr< osg::Uniform > | myMutableSoftnessUniform |
| osg::ref_ptr< osg::Uniform > | myMutableViewMatrixInvUniform |
| This is mutable because it's used as part of the const drawImplementation. More... | |
A drawable used for drawing patchy ground fog objects.
The class serves as a place to setup common state settings for all ground fog patches along with a draw point entry and an entry to release GL objects.
| makVrv::DtGroundFogPatchDrawable::DtGroundFogPatchDrawable | ( | makVrv::DtDe & | de, |
| DtGroundFogGroup * | groundFogGroup | ||
| ) |
CTOR.
| makVrv::DtGroundFogPatchDrawable::DtGroundFogPatchDrawable | ( | const DtGroundFogPatchDrawable & | orig, |
| const osg::CopyOp & | opr | ||
| ) |
Copy constructor needed because it is derived from osg::Drawable.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Assignment not allowed.
|
inlinevirtual |
required functions for derriving from osg::Drawable
|
inlinevirtual |
|
virtual |
Initializes the uniforms and state attributes for the drawable.
|
virtual |
Release all gl objects used by this system.
|
virtual |
Actually do the drawing.
|
virtual |
Applies the state for drawing.
|
virtual |
Sets the current wind to use for fog.
| windDirectionRad | The wind direction in radians. |
| windSpeedMps | The wind speed in meters per second. |
|
protectedvirtual |
Loads shaders used to draw ground fog patch objects.
|
protectedvirtual |
Connects all the signals, Non-virtural, called in the ctor.
|
protectedvirtual |
Disconnects all the signals, called in the dtor.
|
protectedvirtual |
Signal handler to reload the shaders.
|
protectedvirtual |
Setup softness parameters used when drawing.
camera The current camera being drawn.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprivate |
needed for smoothness These are mutable because they are used as part of the const drawImplementation.
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
This is mutable because it's used as part of the const drawImplementation.