OpenSceneGraph  3.0.1
Public Member Functions | Public Attributes
osgShadow::ViewDependentShadowTechnique::ViewData Struct Reference

Base container class for view dependent shadow resources. More...

Inheritance diagram for osgShadow::ViewDependentShadowTechnique::ViewData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual const char * className () const
virtual void init (ViewDependentShadowTechnique *st, osgUtil::CullVisitor *cv)
 Method called upon ViewData instance to initialize internal variables.
virtual void cull ()
 Method called by ViewDependentShadowTechnique to allow ViewData do the hard work computing shadows for its associated view.
virtual void dirty (bool flag)
 Dirty is called by parent ViewDependentShadowTechnique to force update of resources after some of them were modified in parent technique.
 ViewData ()
 Simple constructor zeroing all variables.

Public Attributes

OpenThreads::Mutex _mutex
 Mutex used to guard _dirty flag from override in case when parent technique calls dirty() simultaneously with ViewData while it is updating resources inside init method.
bool _dirty
 Dirty flag tells this instance to update its resources.
osg::observer_ptr
< osgUtil::CullVisitor
_cv
 View's CullVisitor associated with this ViewData instance.
osg::observer_ptr
< ViewDependentShadowTechnique
_st
 Parent ViewDependentShadowTechnique.

Detailed Description

Base container class for view dependent shadow resources.

Techniques based on ViewDependentShadowTechnique will usually define similar struct and derive it from ViewData to contain their specufic resources.


Constructor & Destructor Documentation

osgShadow::ViewDependentShadowTechnique::ViewData::ViewData ( void  ) [inline]

Simple constructor zeroing all variables.

Reimplemented in osgShadow::MinimalDrawBoundsShadowMap::ViewData.


Member Function Documentation

virtual const char* osgShadow::ViewDependentShadowTechnique::ViewData::className ( ) const [inline, virtual]
virtual void osgShadow::ViewDependentShadowTechnique::ViewData::cull ( ) [virtual]

Method called by ViewDependentShadowTechnique to allow ViewData do the hard work computing shadows for its associated view.

Reimplemented in osgShadow::StandardShadowMap::ViewData, and osgShadow::DebugShadowMap::ViewData.

virtual void osgShadow::ViewDependentShadowTechnique::ViewData::dirty ( bool  flag) [virtual]

Dirty is called by parent ViewDependentShadowTechnique to force update of resources after some of them were modified in parent technique.

virtual void osgShadow::ViewDependentShadowTechnique::ViewData::init ( ViewDependentShadowTechnique st,
osgUtil::CullVisitor cv 
) [virtual]

Method called upon ViewData instance to initialize internal variables.


Member Data Documentation

View's CullVisitor associated with this ViewData instance.

Dirty flag tells this instance to update its resources.

Mutex used to guard _dirty flag from override in case when parent technique calls dirty() simultaneously with ViewData while it is updating resources inside init method.


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

osg logo
Generated at Mon Oct 3 2011 12:39:49 for the OpenSceneGraph by doxygen 1.7.5.