osgShadow::ShadowMap Class Reference

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

Inheritance diagram for osgShadow::ShadowMap:

Inheritance graph
[legend]
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)
 Set the texture unit that the shadow texture will be applied on.
unsigned int getTextureUnit () const
 Get the texture unit that the shadow texture will be applied on.
void setAmbientBias (const osg::Vec2 &ambientBias)
 Set the values for the ambient bias the shader will use.
const osg::Vec2getAmbientBias () const
 Get the values that are used for the ambient bias in the shader.
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 ~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 at Thu Sep 27 08:37:25 2007 for the OpenSceneGraph by doxygen 1.5.2.