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 (ViewDependentShadow, StandardShadowMap)
void setBaseTextureUnit (unsigned int unit)
unsigned int getBaseTextureUnit (void)
void setShadowTextureUnit (unsigned int unit)
unsigned int getShadowTextureUnit (void)
void setBaseTextureCoordIndex (unsigned int index)
unsigned int getBaseTextureCoordIndex (void)
void setShadowTextureCoordIndex (unsigned int index)
unsigned int getShadowTextureCoordIndex (void)
void setTextureSize (const osg::Vec2s &textureSize)
osg::Vec2s getTextureSize ()
void setLight (osg::Light *light)
osg::LightgetLight (void)
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

osgShadow::StandardShadowMap::StandardShadowMap (  ) 

Classic OSG constructor

osgShadow::StandardShadowMap::StandardShadowMap ( const StandardShadowMap ssm,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Classic OSG cloning constructor

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

Classic protected OSG destructor


Member Function Documentation

unsigned int osgShadow::StandardShadowMap::getBaseTextureCoordIndex ( void   )  [inline]
unsigned int osgShadow::StandardShadowMap::getBaseTextureUnit ( void   )  [inline]
osg::Light* osgShadow::StandardShadowMap::getLight ( void   )  [inline]
osg::Shader* osgShadow::StandardShadowMap::getMainFragmentShader (  )  [inline]
osg::Shader* osgShadow::StandardShadowMap::getMainVertexShader (  )  [inline]
osg::Shader* osgShadow::StandardShadowMap::getShadowFragmentShader (  )  [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureCoordIndex ( void   )  [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureUnit ( void   )  [inline]
osg::Shader* osgShadow::StandardShadowMap::getShadowVertexShader (  )  [inline]
osg::Vec2s osgShadow::StandardShadowMap::getTextureSize (  )  [inline]
osgShadow::StandardShadowMap::META_Object ( ViewDependentShadow  ,
StandardShadowMap   
)

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::setLight ( osg::Light light  )  [inline]
void osgShadow::StandardShadowMap::setMainFragmentShader ( osg::Shader shader  )  [inline]
void osgShadow::StandardShadowMap::setMainVertexShader ( osg::Shader shader  )  [inline]
void osgShadow::StandardShadowMap::setShadowFragmentShader ( osg::Shader shader  )  [inline]
void osgShadow::StandardShadowMap::setShadowTextureCoordIndex ( unsigned int  index  )  [inline]
void osgShadow::StandardShadowMap::setShadowTextureUnit ( unsigned int  unit  )  [inline]
void osgShadow::StandardShadowMap::setShadowVertexShader ( osg::Shader shader  )  [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:
Generated on Sat Jun 5 21:48:41 2010 for openscenegraph by  doxygen 1.6.3