OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions | Protected Attributes
osgShadow::ShadowedScene Class Reference

ShadowedScene provides a mechansim for decorating a scene that the needs to have shadows cast upon it. More...

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

List of all members.

Public Member Functions

 ShadowedScene (ShadowTechnique *st=0)
 ShadowedScene (const ShadowedScene &es, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgShadow, ShadowedScene)
virtual void traverse (osg::NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.
void setShadowSettings (ShadowSettings *ss)
ShadowSettingsgetShadowSettings ()
const ShadowSettingsgetShadowSettings () const
void setShadowTechnique (ShadowTechnique *technique)
ShadowTechniquegetShadowTechnique ()
const ShadowTechniquegetShadowTechnique () const
void cleanSceneGraph ()
 Clean scene graph from any shadow technique specific nodes, state and drawables.
void dirty ()
 Dirty any cache data structures held in the attached ShadowTechnqiue.
virtual void resizeGLObjectBuffers (unsigned int maxSize)
 Resize any per context GLObject buffers to specified size.
virtual void releaseGLObjects (osg::State *=0) const
 If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.
void setReceivesShadowTraversalMask (unsigned int mask)
 deprecated, moved to ShadowSettings.
unsigned int getReceivesShadowTraversalMask () const
 deprecated, moved to ShadowSettings.
void setCastsShadowTraversalMask (unsigned int mask)
 deprecated, moved to ShadowSettings.
unsigned int getCastsShadowTraversalMask () const
 deprecated, moved to ShadowSettings.

Protected Member Functions

virtual ~ShadowedScene ()

Protected Attributes

osg::ref_ptr< ShadowSettings_shadowSettings
osg::ref_ptr< ShadowTechnique_shadowTechnique

Detailed Description

ShadowedScene provides a mechansim for decorating a scene that the needs to have shadows cast upon it.


Constructor & Destructor Documentation

virtual osgShadow::ShadowedScene::~ShadowedScene ( ) [protected, virtual]

Member Function Documentation

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

Dirty any cache data structures held in the attached ShadowTechnqiue.

deprecated, moved to ShadowSettings.

deprecated, moved to ShadowSettings.

virtual void osgShadow::ShadowedScene::releaseGLObjects ( osg::State = 0) const [virtual]

If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.

Otherwise, releases OpenGL objects for all graphics contexts.

Reimplemented from osg::Group.

virtual void osgShadow::ShadowedScene::resizeGLObjectBuffers ( unsigned int  maxSize) [virtual]

Resize any per context GLObject buffers to specified size.

Reimplemented from osg::Group.

void osgShadow::ShadowedScene::setCastsShadowTraversalMask ( unsigned int  mask) [inline]

deprecated, moved to ShadowSettings.

void osgShadow::ShadowedScene::setReceivesShadowTraversalMask ( unsigned int  mask) [inline]

deprecated, moved to ShadowSettings.

virtual void osgShadow::ShadowedScene::traverse ( osg::NodeVisitor ) [virtual]

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Group.


Member Data Documentation


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

osg logo
Generated at Tue Dec 8 2015 00:14:30 for the OpenSceneGraph by doxygen 1.7.6.1.