![]() |
VR-Forces 4.10 Class Documentation
|
A drawable for drawing the cloud layer. More...

Public Member Functions | |
| DtCloudDrawable (const DtCloudDrawable ©, const osg::CopyOp &op) | |
| CopyCOTR. More... | |
| virtual | ~DtCloudDrawable () |
| DTOR. More... | |
| virtual osg::Object * | cloneType () const |
| required functions for derriving from osg::Drawable More... | |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const |
| virtual void | releaseGLObjects (osg::State *state) const |
| release gl objects More... | |
| virtual void | slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel) |
| connected to the signal_channelToBeDestroyed to cleanup the camera map More... | |
| virtual void | updateCubeMaps (bool fullRegenerate) |
| Request an updated cube map with the next draw. More... | |
| virtual unsigned int | findCubeMap (const osg::ref_ptr< const osg::Camera > osgCamera) const |
| Returns the latest environmental cube map for a camera, or NULL. More... | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| Actually do the drawing. More... | |
| virtual void | setGeocentricMode (bool mode) |
| Indicate if we are in a geocentric terrain. More... | |
| virtual void | cleanupCloudLayer (SilverLining::Atmosphere *atmosphere, unsigned int layerHandle) |
| Used to cleanup any SilverLining::CloudLayer specific state that the drawable has. More... | |
Public Attributes | |
| friend | DtCloudDrawableCreator |
Protected Member Functions | |
| DtCloudDrawable (DtDe &de, DtSilverliningGroup *parent) | |
| CTOR. More... | |
| virtual void | fadeCloudsWithAltitude (const osg::Vec3d &osgCameraPosition, SilverLining::CloudLayer *layer, SilverLining::ThreadCameraStreamData *tcsData) |
| fade clouds depending on the altitude, for a given layer More... | |
| virtual void | fadeCloudsWithAltitude (const osg::Vec3d &osgCameraPosition, SilverLining::Atmosphere *atmosphere, SilverLining::ThreadCameraStreamData *tcsData) |
| fade clouds depending on the altitude for all layers; calls the method above for each layer More... | |
| virtual void | updateCloudAltitudes (const osg::Vec3d &osgCameraPosition, SilverLining::Atmosphere *atmosphere, SilverLining::ThreadCameraStreamData *tcsData) |
| update cloud altitudes More... | |
| virtual void | updateShader (osg::Node *node, osg::State &state, SilverLining::Atmosphere *atmosphere, SilverLining::ThreadCameraStreamData *tcsData) const |
| virtual void | updateOpenGLState (osg::State &state, SilverLining::Atmosphere *atmosphere, osg::Camera *osgCamera, SilverLining::ThreadCameraStreamData *tcsData) const |
| virtual void | setIsReflectionUniform (osg::State &state, SilverLining::Atmosphere *atm, bool isReflection, SilverLining::ThreadCameraStreamData *tcsData) const |
| virtual void | connectSingals () |
| Connects all the signals, Non-virtual, called in the ctor. More... | |
| virtual void | initUniforms () |
| setup uniforms More... | |
| virtual void | disconnectSignals () |
| Disconnects all the signals, called in the dtor. More... | |
| virtual void | slot_environmentChanged (const std::string &name) |
| Slot when the environment is changed, for example, change from cloudy to snowy. More... | |
| virtual bool | computeHeightAboveTerrain (const osg::Vec3d &localPosition, double &heightOfGround) const |
| virtual void | updateCloudLayerAltitudes (SilverLining::Atmosphere *atmosphere, SilverLining::ThreadCameraStreamData *tcsData) |
| virtual void | updateDepthTexture (osg::RenderInfo &renderInfo) const |
| Copy the depth buffer from the currently bound frame buffer to a texture that the clouds can use for smoothing clouds near other objects. More... | |
| virtual void | unbindDepthTexture (osg::RenderInfo &renderInfo) const |
| After the drawable is done with the depth texture we need to unbind it so SLI is fast. More... | |
| virtual void | updateSoftnessAndSmoothCloudsFromImGui () const |
Private Member Functions | |
| DtCloudDrawable & | operator= (const DtCloudDrawable &rhs)=delete |
| not allowed More... | |
A drawable for drawing the cloud layer.
| makVrv::DtCloudDrawable::DtCloudDrawable | ( | const DtCloudDrawable & | copy, |
| const osg::CopyOp & | op | ||
| ) |
CopyCOTR.
|
virtual |
DTOR.
|
protected |
CTOR.
|
privatedelete |
not allowed
|
inlinevirtual |
required functions for derriving from osg::Drawable
|
inlinevirtual |
|
virtual |
release gl objects
|
virtual |
connected to the signal_channelToBeDestroyed to cleanup the camera map
|
virtual |
Request an updated cube map with the next draw.
|
virtual |
Returns the latest environmental cube map for a camera, or NULL.
|
virtual |
Actually do the drawing.
|
virtual |
Indicate if we are in a geocentric terrain.
|
virtual |
Used to cleanup any SilverLining::CloudLayer specific state that the drawable has.
currently only removes the entry in the default altitude map.
|
protectedvirtual |
fade clouds depending on the altitude, for a given layer
|
protectedvirtual |
fade clouds depending on the altitude for all layers; calls the method above for each layer
|
protectedvirtual |
update cloud altitudes
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Connects all the signals, Non-virtual, called in the ctor.
|
protectedvirtual |
setup uniforms
|
protectedvirtual |
Disconnects all the signals, called in the dtor.
|
protectedvirtual |
Slot when the environment is changed, for example, change from cloudy to snowy.
| name | The new name of the environment |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Copy the depth buffer from the currently bound frame buffer to a texture that the clouds can use for smoothing clouds near other objects.
|
protectedvirtual |
After the drawable is done with the depth texture we need to unbind it so SLI is fast.
|
protectedvirtual |
| friend makVrv::DtCloudDrawable::DtCloudDrawableCreator |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This flag is used to skip updating the altitude when an environmented changed, since the actual change for silver lining happen in next frame.
|
protected |
|
mutableprotected |
mutable due to osg drawImplementation limitations.
Used to setup uniforms so they the opengl calls are not called directly in this class.
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |
mutable due to osg drawImplementation limitations. Used for imgui settings for cloud smoothing.
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |