Public Member Functions | Protected Member Functions | Protected Attributes

osgShadow::ShadowVolume Class Reference

ShadowedTexture provides an implementation of shadow textures. More...

Inheritance diagram for osgShadow::ShadowVolume:
Inheritance graph
[legend]

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 ()
 initialize the ShadowedScene and local cached data structures.
virtual void update (osg::NodeVisitor &nv)
 run the update traversal of the ShadowedScene and update any loca chached data structures.
virtual void cull (osgUtil::CullVisitor &cv)
 run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.
virtual void cleanSceneGraph ()
 Clean scene graph from any shadow technique specific nodes, state and drawables.

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

OpenThreads::Mutex osgShadow::ShadowVolume::_shadowVolumeMutex [protected]

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

osg logo
Generated at Wed Nov 3 2010 02:40:19 for the OpenSceneGraph by doxygen 1.7.1.