openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes
osgShadow::ShadowVolume Class Reference
Inheritance diagram for osgShadow::ShadowVolume:
osgShadow::ShadowTechnique osg::Object osg::Referenced

List of all members.

Public Member Functions

 ShadowVolume ()
 ShadowVolume (const ShadowVolume &es, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgShadow, ShadowVolume)
void setDrawMode (osgShadow::ShadowVolumeGeometry::DrawMode drawMode)
osgShadow::ShadowVolumeGeometry::DrawMode getDrawMode () const
void setDynamicShadowVolumes (bool dynamicShadowVolumes)
bool getDynamicShadowVolumes () const
virtual void init ()
virtual void update (osg::NodeVisitor &nv)
virtual void cull (osgUtil::CullVisitor &cv)
virtual void cleanSceneGraph ()

Protected Member Functions

virtual ~ShadowVolume ()

Protected Attributes

osgShadow::ShadowVolumeGeometry::DrawMode _drawMode
bool _dynamicShadowVolumes
osg::ref_ptr
< osgShadow::OccluderGeometry
_occluder
OpenThreads::Mutex _shadowVolumeMutex
osg::ref_ptr
< osgShadow::ShadowVolumeGeometry
_shadowVolume
osg::Vec4 _lightpos
osg::ref_ptr< osg::Light_ambientLight
osg::ref_ptr< osg::Light_diffuseLight
osg::ref_ptr< osg::StateSet_ss1
osg::ref_ptr< osg::StateSet_mainShadowStateSet
osg::ref_ptr< osg::StateSet_shadowVolumeStateSet
osg::ref_ptr< osg::StateSet_shadowedSceneStateSet

Detailed Description

ShadowedTexture provides an implementation of shadow textures.


Constructor & Destructor Documentation

osgShadow::ShadowVolume::ShadowVolume ( )
osgShadow::ShadowVolume::ShadowVolume ( const ShadowVolume es,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgShadow::ShadowVolume::~ShadowVolume ( ) [protected, virtual]

Member Function Documentation

virtual void osgShadow::ShadowVolume::cleanSceneGraph ( ) [virtual]

Clean scene graph from any shadow technique specific nodes, state and drawables.

Reimplemented from osgShadow::ShadowTechnique.

virtual void osgShadow::ShadowVolume::cull ( osgUtil::CullVisitor cv) [virtual]

run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.

Reimplemented from osgShadow::ShadowTechnique.

osgShadow::ShadowVolumeGeometry::DrawMode osgShadow::ShadowVolume::getDrawMode ( ) const [inline]
bool osgShadow::ShadowVolume::getDynamicShadowVolumes ( ) const [inline]
virtual void osgShadow::ShadowVolume::init ( ) [virtual]

initialize the ShadowedScene and local cached data structures.

Reimplemented from osgShadow::ShadowTechnique.

osgShadow::ShadowVolume::META_Object ( osgShadow  ,
ShadowVolume   
)
void osgShadow::ShadowVolume::setDrawMode ( osgShadow::ShadowVolumeGeometry::DrawMode  drawMode)
void osgShadow::ShadowVolume::setDynamicShadowVolumes ( bool  dynamicShadowVolumes)
virtual void osgShadow::ShadowVolume::update ( osg::NodeVisitor nv) [virtual]

run the update traversal of the ShadowedScene and update any loca chached data structures.

Reimplemented from osgShadow::ShadowTechnique.


Member Data Documentation


The documentation for this class was generated from the following file: