![]() |
VR-Forces Developer's Guide
|
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.

Classes | |
| struct | TextureEntry |
Public Member Functions | |
| DtWeatherEffectDrawable (makVrv::DtDe &de, DtWeatherLayerGroup *weatherLayerGroup) | |
| DtWeatherEffectDrawable (const DtWeatherEffectDrawable &orig, const osg::CopyOp &opr) | |
| virtual | ~DtWeatherEffectDrawable () |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const |
| virtual osg::Object * | cloneType () const |
| virtual bool | init () |
| virtual void | SetCameraBasis (const osg::Matrixd &basisRot) |
| virtual osg::Texture2D * | getTexture (const char *imagePath) |
| virtual void | releaseGLObjects (osg::State *state) const |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| virtual void | applyState (DtWeatherEffect::DrawData &drawData) const |
| virtual void | applyHeightMap (DtWeatherEffect::DrawData &drawData) const |
Protected Member Functions | |
| virtual bool | loadShaders () |
| virtual void | connectSignals () |
| virtual void | slot_reloadShaders () |
| virtual void | setupSoftness (osg::Camera *camera) const |
| virtual float | computeNearClip (osg::Camera *camera) const |
| virtual void | clearTextureLibrary () const |
Protected Attributes | |
| DtDe & | myDe |
| DtWeatherLayerGroup * | myWeatherLayerGroup |
| bool | myInitialized |
| osg::ref_ptr< osg::Texture2D > | myTexture |
| osg::ref_ptr< osg::StateSet > | myStateSet |
| osg::Matrixd | myBasisRot |
| DtSignalConnectionManager | myConnections |
Private Member Functions | |
| DtWeatherEffectDrawable ()=delete | |
| DtWeatherEffectDrawable (const DtWeatherEffectDrawable &other)=delete | |
| DtWeatherEffectDrawable & | operator= (const DtWeatherEffectDrawable &other)=delete |
Private Attributes | |
| osg::ref_ptr< osg::Uniform > | myMutableInvPersMatrixUniform |
| 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 > | myMutableModelAxisXUniform |
| osg::ref_ptr< osg::Uniform > | myMutableModelAxisZUniform |
| osg::ref_ptr< osg::Uniform > | myMutableViewMatrixInvUniform |
| std::vector< TextureEntry * > | myTextureLibrary |
| 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.
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented - Copy not allowed.
|
privatedelete |
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 |
Sets the earth basis rotation for the current camera being rendered.
| basisRot | The earth basis rotation at the camera location. |
|
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 common state for drawing.
|
virtual |
Applies the heightmap state for drawing.
|
protectedvirtual |
Loads shaders used to draw effect objects.
|
protectedvirtual |
Connects all the signals, Non-virtural, called in the ctor.
|
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 |
|
mutableprivate |
This is mutable because it's used as part of the const releaseGLObjects.