openscenegraph
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
osgShadow::StandardShadowMap Class Reference
Inheritance diagram for osgShadow::StandardShadowMap:
osgShadow::DebugShadowMap osgShadow::ViewDependentShadowTechnique osgShadow::ShadowTechnique osg::Object osg::Referenced osgShadow::MinimalShadowMap osgShadow::MinimalCullBoundsShadowMap osgShadow::MinimalDrawBoundsShadowMap osgShadow::ProjectionShadowMap< MinimalShadowMap, LightSpacePerspectiveShadowMapAlgorithm > osgShadow::ProjectionShadowMap< MinimalCullBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > osgShadow::ProjectionShadowMap< MinimalDrawBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > osgShadow::LightSpacePerspectiveShadowMapVB osgShadow::LightSpacePerspectiveShadowMapCB osgShadow::LightSpacePerspectiveShadowMapDB

List of all members.

Classes

struct  ViewData

Public Types

typedef StandardShadowMap ThisClass
typedef DebugShadowMap BaseClass

Public Member Functions

 StandardShadowMap ()
 StandardShadowMap (const StandardShadowMap &ssm, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgShadow, StandardShadowMap)
void setBaseTextureUnit (unsigned int unit)
unsigned int getBaseTextureUnit (void) const
void setShadowTextureUnit (unsigned int unit)
unsigned int getShadowTextureUnit (void) const
void setBaseTextureCoordIndex (unsigned int index)
unsigned int getBaseTextureCoordIndex (void) const
void setShadowTextureCoordIndex (unsigned int index)
unsigned int getShadowTextureCoordIndex (void) const
void setTextureSize (const osg::Vec2s &textureSize)
const osg::Vec2sgetTextureSize () const
void setLight (osg::Light *light)
osg::LightgetLight (void)
const osg::LightgetLight (void) const
osg::ShadergetShadowVertexShader ()
osg::ShadergetShadowFragmentShader ()
osg::ShadergetMainVertexShader ()
osg::ShadergetMainFragmentShader ()
void setShadowVertexShader (osg::Shader *shader)
void setShadowFragmentShader (osg::Shader *shader)
void setMainVertexShader (osg::Shader *shader)
void setMainFragmentShader (osg::Shader *shader)

Protected Member Functions

virtual ~StandardShadowMap (void)
virtual void updateTextureCoordIndices (unsigned int baseTexCoordIndex, unsigned int shadowTexCoordIndex)
virtual void searchAndReplaceShaderSource (osg::Shader *, std::string fromString, std::string toString)

Protected Attributes

osg::ref_ptr< osg::Shader_mainVertexShader
osg::ref_ptr< osg::Shader_mainFragmentShader
osg::ref_ptr< osg::Shader_shadowVertexShader
osg::ref_ptr< osg::Shader_shadowFragmentShader
osg::ref_ptr< osg::Light_light
float _polygonOffsetFactor
float _polygonOffsetUnits
osg::Vec2s _textureSize
unsigned int _baseTextureUnit
unsigned int _shadowTextureUnit
unsigned int _baseTextureCoordIndex
unsigned int _shadowTextureCoordIndex

Friends

struct ViewData

Member Typedef Documentation


Constructor & Destructor Documentation

Classic OSG constructor

Classic OSG cloning constructor

virtual osgShadow::StandardShadowMap::~StandardShadowMap ( void  ) [protected, virtual]

Classic protected OSG destructor


Member Function Documentation

unsigned int osgShadow::StandardShadowMap::getBaseTextureCoordIndex ( void  ) const [inline]
unsigned int osgShadow::StandardShadowMap::getBaseTextureUnit ( void  ) const [inline]
const osg::Light* osgShadow::StandardShadowMap::getLight ( void  ) const [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureCoordIndex ( void  ) const [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureUnit ( void  ) const [inline]

Declaration of standard OSG object methods

virtual void osgShadow::StandardShadowMap::searchAndReplaceShaderSource ( osg::Shader ,
std::string  fromString,
std::string  toString 
) [protected, virtual]
void osgShadow::StandardShadowMap::setBaseTextureCoordIndex ( unsigned int  index) [inline]
void osgShadow::StandardShadowMap::setBaseTextureUnit ( unsigned int  unit) [inline]
void osgShadow::StandardShadowMap::setShadowTextureCoordIndex ( unsigned int  index) [inline]
void osgShadow::StandardShadowMap::setShadowTextureUnit ( unsigned int  unit) [inline]
void osgShadow::StandardShadowMap::setTextureSize ( const osg::Vec2s textureSize) [inline]
virtual void osgShadow::StandardShadowMap::updateTextureCoordIndices ( unsigned int  baseTexCoordIndex,
unsigned int  shadowTexCoordIndex 
) [protected, virtual]

Friends And Related Function Documentation

friend struct ViewData [friend]

Member Data Documentation


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