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

Classes | |
| struct | CubeMapData |
Public Member Functions | |
| DtCloudDrawable (DtSilverliningGroup *parent=0) | |
| CTOR. | |
| DtCloudDrawable (const DtCloudDrawable ©, const osg::CopyOp &op) | |
| CopyCOTR. | |
| virtual | ~DtCloudDrawable () |
| DTOR. | |
| void | updateCubeMaps (bool fullRegenerate) |
| Request an updated cube map with the next draw. | |
| unsigned int | getCubeMap (const osg::ref_ptr< osg::Camera > camera) const |
| Returns the latest environmental cube map for a camera, or NULL. | |
| unsigned int | getPrimaryCubeMap () const |
| Returns the latest environmental cube map for general use, or NULL. | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| Actually do the drawing. | |
| void | setGeocentricMode (bool mode) |
| Indicate if we are in a geocentric terrain. | |
Protected Member Functions | |
| void | fadeCloudsWithAltitude (double altitudeMSL, SilverLining::CloudLayer *layer) |
| void | updateCloudAltitudes (const osg::Vec3d &localPosition, SilverLining::Atmosphere *atm) |
| void | updateShader (osg::Node *node, osg::State &state, SilverLining::Atmosphere *atm) const |
| void | updateOpenGLState (osg::State &state, SilverLining::Atmosphere *atm, osg::Camera *cam) const |
| void | setIsReflectionUniform (SilverLining::Atmosphere *atm, bool isReflection) const |
| void | connectSingals () |
| Connects all the signals, Non-virtural, called in the ctor. | |
| virtual void | disconnectSignals () |
| Disconnects all the signals, called in the dtor. | |
| virtual void | slot_environmentChanged (const std::string &name) |
| Slot when the environment is changed, for example, change from cloudy to snowy. | |
| bool | computeHeightAboveTerrain (const osg::Vec3d &localPosition, double &heightOfGround) |
| void | updateCloudLayerAltitudes (SilverLining::Atmosphere *atm) |
Protected Attributes | |
| std::vector< unsigned int > | myUserShaderVector |
| DtSilverliningGroup * | myParent |
| DtDe & | myDe |
| bool | myCrepuscularRays |
| bool | myGeocentricFlag |
| osg::Vec3d | myLastHOTUpdatePos |
| bool | myForceHOTUpdate |
| double | myHOT |
| bool | mySkipUpdateAltitudes |
| This flag is used to skip updating the altitude when an environmented changed, since the actual change for silver lining happen in next frame. | |
| std::map < SilverLining::CloudLayer *, double > | myOriginalAltitudesMap |
| std::map< osg::observer_ptr < osg::Camera >, CubeMapData * > | myCubeMapDataMap |
| unsigned int | myMutableLastFrameNum |
| unsigned int | myMutablePrimaryCubeMap |
A drawable for drawing the cloud layer.
| makVrv::DtCloudDrawable::DtCloudDrawable | ( | DtSilverliningGroup * | parent = 0 | ) |
CTOR.
| makVrv::DtCloudDrawable::DtCloudDrawable | ( | const DtCloudDrawable & | copy, |
| const osg::CopyOp & | op | ||
| ) |
CopyCOTR.
|
virtual |
DTOR.
| void makVrv::DtCloudDrawable::updateCubeMaps | ( | bool | fullRegenerate | ) |
Request an updated cube map with the next draw.
Returns the latest environmental cube map for a camera, or NULL.
Returns the latest environmental cube map for general use, or NULL.
|
virtual |
Actually do the drawing.
| void makVrv::DtCloudDrawable::setGeocentricMode | ( | bool | mode | ) |
Indicate if we are in a geocentric terrain.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Connects all the signals, Non-virtural, called in the ctor.
|
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 |
|
protected |
|
protected |
|
protected |
|
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 |