osgShadow::ShadowMap Class Reference

Inheritance diagram for osgShadow::ShadowMap:

osgShadow::ShadowTechnique osg::Object osg::Referenced List of all members.

Public Member Functions

 ShadowMap ()
 ShadowMap (const ShadowMap &es, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgShadow, ShadowMap)
void setTextureUnit (unsigned int unit)
unsigned int getTextureUnit () const
void setAmbientBias (const osg::Vec2 &ambientBias)
const osg::Vec2 & getAmbientBias () const
virtual void init ()
virtual void update (osg::NodeVisitor &nv)
virtual void cull (osgUtil::CullVisitor &cv)
virtual void cleanSceneGraph ()

Protected Member Functions

virtual ~ShadowMap ()

Protected Attributes

osg::ref_ptr< osg::Camera > _camera
osg::ref_ptr< osg::TexGen > _texgen
osg::ref_ptr< osg::Texture2D > _texture
osg::ref_ptr< osg::StateSet > _stateset
unsigned int _textureUnit
osg::Vec2 _ambientBias

Detailed Description

ShadowedTexture provides an implementation of shadow textures.


Constructor & Destructor Documentation

osgShadow::ShadowMap::ShadowMap (  ) 

osgShadow::ShadowMap::ShadowMap ( const ShadowMap &  es,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

virtual osgShadow::ShadowMap::~ShadowMap (  )  [inline, protected, virtual]


Member Function Documentation

osgShadow::ShadowMap::META_Object ( osgShadow  ,
ShadowMap   
)

void osgShadow::ShadowMap::setTextureUnit ( unsigned int  unit  ) 

Set the texture unit that the shadow texture will be applied on.

unsigned int osgShadow::ShadowMap::getTextureUnit (  )  const [inline]

Get the texture unit that the shadow texture will be applied on.

void osgShadow::ShadowMap::setAmbientBias ( const osg::Vec2 &  ambientBias  ) 

Set the values for the ambient bias the shader will use.

const osg::Vec2& osgShadow::ShadowMap::getAmbientBias (  )  const [inline]

Get the values that are used for the ambient bias in the shader.

virtual void osgShadow::ShadowMap::init (  )  [virtual]

initialize the ShadowedScene and local cached data structures.

Reimplemented from osgShadow::ShadowTechnique.

virtual void osgShadow::ShadowMap::update ( osg::NodeVisitor &  nv  )  [virtual]

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

Reimplemented from osgShadow::ShadowTechnique.

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

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

Reimplemented from osgShadow::ShadowTechnique.

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

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

Reimplemented from osgShadow::ShadowTechnique.


Member Data Documentation

osg::ref_ptr<osg::Camera> osgShadow::ShadowMap::_camera [protected]

osg::ref_ptr<osg::TexGen> osgShadow::ShadowMap::_texgen [protected]

osg::ref_ptr<osg::Texture2D> osgShadow::ShadowMap::_texture [protected]

osg::ref_ptr<osg::StateSet> osgShadow::ShadowMap::_stateset [protected]

unsigned int osgShadow::ShadowMap::_textureUnit [protected]

osg::Vec2 osgShadow::ShadowMap::_ambientBias [protected]


The documentation for this class was generated from the following file:
Generated on Sat Sep 15 21:04:40 2007 for openscenegraph by  doxygen 1.5.1