VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makOsgShadowFX::DtShadowMap Class Reference
Inheritance diagram for makOsgShadowFX::DtShadowMap:
Inheritance graph
[legend]

Public Member Functions

 DtShadowMap ()
 DtShadowMap (const DtShadowMap &orig, const osg::CopyOp &op)
 META_Object (makOsgShadowFX, DtShadowMap)
virtual void init ()
 initialize the ShadowedScene and local cached data structures.
virtual void cull (osgUtil::CullVisitor &cv)
 run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.
virtual osg::Texture2D * shadowTexture () const
virtual void setShadowScene (osg::Group *scene)
virtual osg::Group * shadowScene ()
virtual void traverse (osg::NodeVisitor &nv)
virtual osg::Camera * shadowCamera () const
virtual osg::TexGen * texureGen () const
virtual void setPolygonOffset (const osg::Vec2 &polyOffset)
 set the polygon offset used initially
virtual const osg::Vec2 & getPolygonOffset () const
 get the used polygon offset
virtual void setTextureSize (const osg::Vec2s &textureSize)
 set the size in pixels x / y for the shadow texture.
virtual const osg::Vec2s & getTextureSize () const
 Get the values that are used for the ambient bias in the shader.
virtual void setLight (osg::Light *light)
 Set the Light that will cast shadows.
virtual void setLight (osg::LightSource *ls)
void setMaxDistance (float dist)
void setMinLightMargin (float mar)

Protected Member Functions

virtual ~DtShadowMap (void)
virtual const osg::Light * selectLight (osg::Vec4 &viewLightPos, osg::Vec3 &viewLightDir)
virtual void setupShadowReceivingScene ()
virtual void aimShadowCastingCamera (const osg::Light *light, const osg::Vec4 &worldLightPos, const osg::Vec3 &worldLightDir, const osg::Vec3 &worldLightUp=osg::Vec3(0, 1, 0))
virtual void generateShadowMap ()
virtual void updateTexGen ()

Protected Attributes

osg::ref_ptr< osg::Light > mySetLight
osg::Vec2 myPolyOffset
osg::ref_ptr< osg::Camera > myShadowCamera
osg::ref_ptr< osg::StateSet > myShadowCameraStateSet
osg::ref_ptr< osg::Texture2D > myShadowMap
osg::Vec2s myShadowMapSize
float myMaxDistance
float myMinLightMargin
osg::observer_ptr
< osgUtil::CullVisitor > 
myCullVisitor
osg::ref_ptr< osg::Group > myShadowScene
osg::ref_ptr< osg::TexGen > myTexGen
bool myIsDirty

Constructor & Destructor Documentation

makOsgShadowFX::DtShadowMap::DtShadowMap ( )
makOsgShadowFX::DtShadowMap::DtShadowMap ( const DtShadowMap orig,
const osg::CopyOp &  op 
)
virtual makOsgShadowFX::DtShadowMap::~DtShadowMap ( void  )
inlineprotectedvirtual

Member Function Documentation

makOsgShadowFX::DtShadowMap::META_Object ( makOsgShadowFX  ,
DtShadowMap   
)
virtual void makOsgShadowFX::DtShadowMap::init ( )
virtual

initialize the ShadowedScene and local cached data structures.

virtual void makOsgShadowFX::DtShadowMap::cull ( osgUtil::CullVisitor &  cv)
virtual

run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.

virtual osg::Texture2D* makOsgShadowFX::DtShadowMap::shadowTexture ( ) const
inlinevirtual
virtual void makOsgShadowFX::DtShadowMap::setShadowScene ( osg::Group *  scene)
inlinevirtual
virtual osg::Group* makOsgShadowFX::DtShadowMap::shadowScene ( )
inlinevirtual
virtual void makOsgShadowFX::DtShadowMap::traverse ( osg::NodeVisitor &  nv)
virtual
virtual osg::Camera* makOsgShadowFX::DtShadowMap::shadowCamera ( ) const
inlinevirtual
virtual osg::TexGen* makOsgShadowFX::DtShadowMap::texureGen ( ) const
inlinevirtual
virtual void makOsgShadowFX::DtShadowMap::setPolygonOffset ( const osg::Vec2 &  polyOffset)
virtual

set the polygon offset used initially

virtual const osg::Vec2& makOsgShadowFX::DtShadowMap::getPolygonOffset ( ) const
inlinevirtual

get the used polygon offset

virtual void makOsgShadowFX::DtShadowMap::setTextureSize ( const osg::Vec2s &  textureSize)
virtual

set the size in pixels x / y for the shadow texture.

virtual const osg::Vec2s& makOsgShadowFX::DtShadowMap::getTextureSize ( ) const
inlinevirtual

Get the values that are used for the ambient bias in the shader.

virtual void makOsgShadowFX::DtShadowMap::setLight ( osg::Light *  light)
virtual

Set the Light that will cast shadows.

virtual void makOsgShadowFX::DtShadowMap::setLight ( osg::LightSource *  ls)
virtual
void makOsgShadowFX::DtShadowMap::setMaxDistance ( float  dist)
inline
void makOsgShadowFX::DtShadowMap::setMinLightMargin ( float  mar)
inline
virtual const osg::Light* makOsgShadowFX::DtShadowMap::selectLight ( osg::Vec4 &  viewLightPos,
osg::Vec3 &  viewLightDir 
)
protectedvirtual
virtual void makOsgShadowFX::DtShadowMap::setupShadowReceivingScene ( )
protectedvirtual
virtual void makOsgShadowFX::DtShadowMap::aimShadowCastingCamera ( const osg::Light *  light,
const osg::Vec4 &  worldLightPos,
const osg::Vec3 &  worldLightDir,
const osg::Vec3 &  worldLightUp = osg::Vec3(0, 1, 0) 
)
protectedvirtual
virtual void makOsgShadowFX::DtShadowMap::generateShadowMap ( )
protectedvirtual
virtual void makOsgShadowFX::DtShadowMap::updateTexGen ( )
protectedvirtual

Member Data Documentation

osg::ref_ptr<osg::Light> makOsgShadowFX::DtShadowMap::mySetLight
protected
osg::Vec2 makOsgShadowFX::DtShadowMap::myPolyOffset
protected
osg::ref_ptr<osg::Camera> makOsgShadowFX::DtShadowMap::myShadowCamera
protected
osg::ref_ptr<osg::StateSet> makOsgShadowFX::DtShadowMap::myShadowCameraStateSet
protected
osg::ref_ptr<osg::Texture2D> makOsgShadowFX::DtShadowMap::myShadowMap
protected
osg::Vec2s makOsgShadowFX::DtShadowMap::myShadowMapSize
protected
float makOsgShadowFX::DtShadowMap::myMaxDistance
protected
float makOsgShadowFX::DtShadowMap::myMinLightMargin
protected
osg::observer_ptr< osgUtil::CullVisitor > makOsgShadowFX::DtShadowMap::myCullVisitor
protected
osg::ref_ptr<osg::Group> makOsgShadowFX::DtShadowMap::myShadowScene
protected
osg::ref_ptr<osg::TexGen> makOsgShadowFX::DtShadowMap::myTexGen
protected
bool makOsgShadowFX::DtShadowMap::myIsDirty
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)