![]() |
VR-Forces 4.8 Class Documentation
|
A drawable for drawing weather effects such as hail. More...

Classes | |
| struct | TextureEntry |
| brief A structure used to hold information about a texture. More... | |
Public Member Functions | |
| DtWeatherEffectDrawable (makVrv::DtDe &de, DtWeatherLayerGroup *weatherLayerGroup) | |
| CTOR. More... | |
| DtWeatherEffectDrawable (const DtWeatherEffectDrawable &orig, const osg::CopyOp &opr) | |
| Copy constructor needed because it is derived from osg::Drawable. More... | |
| virtual | ~DtWeatherEffectDrawable () |
| DTOR. More... | |
| virtual void | SetCameraBasis (const osg::Matrixd &basisRot) |
| Sets the earth basis rotation for the current camera being rendered. More... | |
| virtual void | SetCulled (bool culled) |
| Called during scene culling to set the drawable culled state. More... | |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const |
| required functions for derriving from osg::Drawable More... | |
| virtual osg::Object * | cloneType () const |
| virtual bool | init () |
| Initializes the uniforms and state attributes for the drawable. More... | |
| virtual osg::Texture2D * | getTexture (const char *imagePath) |
| Gets or creates a texture associated with the given image path. 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 (DtWeatherEffect::DrawData &drawData) const |
| Applies the state for drawing. More... | |
Protected Member Functions | |
| virtual bool | loadShaders () |
| Loads shaders used to draw effect 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... | |
| virtual float | computeNearClip (osg::Camera *camera) const |
| Computes the frustum near clip in meters. More... | |
| virtual void | clearTextureLibrary () const |
| Clear out any textures we are referencing. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtWeatherLayerGroup * | myWeatherLayerGroup |
| bool | myInitialized |
| osg::ref_ptr< osg::Texture2D > | myTexture |
| osg::ref_ptr< osg::StateSet > | myStateSet |
| osg::Matrixd | myBasisRot |
| bool | myCulled |
Private Member Functions | |
| DtWeatherEffectDrawable () | |
| Default Constructor not implemented. More... | |
| DtWeatherEffectDrawable (const DtWeatherEffectDrawable &other) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtWeatherEffectDrawable & | operator= (const DtWeatherEffectDrawable &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 > | myMutableModelUpUniform |
| These are mutable because they are used as part of the const drawImplementation. More... | |
| osg::ref_ptr< osg::Uniform > | myMutableViewMatrixInvUniform |
| std::vector< TextureEntry * > | myTextureLibrary |
| This is mutable because it's used as part of the const releaseGLObjects. More... | |
A drawable for drawing weather effects such as hail.
The class serves as a place to setup common state settings for all weather effects along with a draw point entry and an entry to release GL objects.
| makVrv::DtWeatherEffectDrawable::DtWeatherEffectDrawable | ( | makVrv::DtDe & | de, |
| DtWeatherLayerGroup * | weatherLayerGroup | ||
| ) |
CTOR.
| makVrv::DtWeatherEffectDrawable::DtWeatherEffectDrawable | ( | const DtWeatherEffectDrawable & | 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.
|
virtual |
Sets the earth basis rotation for the current camera being rendered.
| basisRot | The earth basis rotation at the camera location. |
|
virtual |
Called during scene culling to set the drawable culled state.
| culled | Set to true if the drawable should be culled. |
|
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 |
Gets or creates a texture associated with the given image path.
image path is relative to the MAK data path.
| texturePath | The image path. |
|
virtual |
Release all gl objects used by this system.
|
virtual |
Actually do the drawing.
|
virtual |
Applies the state for drawing.
|
protectedvirtual |
Loads shaders used to draw effect 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.
|
protectedvirtual |
Computes the frustum near clip in meters.
| camera | The camera to extract the near clip from. |
|
protectedvirtual |
Clear out any textures we are referencing.
|
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 |
These are mutable because they are used as part of the const drawImplementation.
|
mutableprivate |
|
mutableprivate |
This is mutable because it's used as part of the const releaseGLObjects.