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

Public Member Functions

 DtShadowMapMinimal ()
 DtShadowMapMinimal (const DtShadowMapMinimal &orig, const osg::CopyOp &op)
 META_Object (makOsgShadowFX, DtShadowMapMinimal)
- Public Member Functions inherited from makOsgShadowFX::DtShadowMap
 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 Types

enum  ShadowReceivingCoarseBoundAccuracy { EMPTY_BOX, BOUNDING_SPHERE, BOUNDING_BOX }

Protected Member Functions

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 aimShadowCastingCameraWithBounds (const osg::BoundingSphere &bounds, const osg::Light *light, const osg::Vec4 &worldLightPos, const osg::Vec3 &worldLightDir, const osg::Vec3 &worldLightUp=osg::Vec3(0, 1, 0))
virtual osg::BoundingBox computeScenePolytopeBounds (const osg::Matrix *m=NULL)
virtual void cutScenePolytope (const osg::Matrix &matrix, const osg::Matrix &inverse, const osg::BoundingBox &bb=osg::BoundingBox(-1,-1,-1, 1, 1, 1))
virtual void frameShadowCastingCamera (const osg::Camera *cameraMain, osg::Camera *cameraShadow, int pass=1)
virtual osg::BoundingBox computeShadowReceivingCoarseBounds ()
- Protected Member Functions inherited from makOsgShadowFX::DtShadowMap
virtual ~DtShadowMap (void)
virtual const osg::Light * selectLight (osg::Vec4 &viewLightPos, osg::Vec3 &viewLightDir)
virtual void generateShadowMap ()
virtual void updateTexGen ()

Static Protected Member Functions

static void trimProjection (osg::Matrixd &projection, osg::BoundingBox subrange, unsigned int trimMask=(1|2|4|8|16|32))
static void clampProjection (osg::Matrixd &projection, float n=0, float f=FLT_MAX)
static void extendProjection (osg::Matrixd &projection, osg::Viewport *viewport, const osg::Vec2 &margin)

Protected Attributes

ConvexPolyhedron mySceneReceivingShadowPolytope
std::vector< osg::Vec3d > mySceneReceivingShadowPolytopePoints
osg::Matrixd myClampedProjection
- Protected Attributes inherited from makOsgShadowFX::DtShadowMap
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

Member Enumeration Documentation

Enumerator:
EMPTY_BOX 
BOUNDING_SPHERE 
BOUNDING_BOX 

Constructor & Destructor Documentation

makOsgShadowFX::DtShadowMapMinimal::DtShadowMapMinimal ( )
makOsgShadowFX::DtShadowMapMinimal::DtShadowMapMinimal ( const DtShadowMapMinimal orig,
const osg::CopyOp &  op 
)

Member Function Documentation

makOsgShadowFX::DtShadowMapMinimal::META_Object ( makOsgShadowFX  ,
DtShadowMapMinimal   
)
virtual void makOsgShadowFX::DtShadowMapMinimal::setupShadowReceivingScene ( )
protectedvirtual

Reimplemented from makOsgShadowFX::DtShadowMap.

virtual void makOsgShadowFX::DtShadowMapMinimal::aimShadowCastingCamera ( const osg::Light *  light,
const osg::Vec4 &  worldLightPos,
const osg::Vec3 &  worldLightDir,
const osg::Vec3 &  worldLightUp = osg::Vec3(0, 1, 0) 
)
protectedvirtual

Reimplemented from makOsgShadowFX::DtShadowMap.

Reimplemented in makOsgShadowFX::DtShadowMapLispm.

virtual void makOsgShadowFX::DtShadowMapMinimal::aimShadowCastingCameraWithBounds ( const osg::BoundingSphere &  bounds,
const osg::Light *  light,
const osg::Vec4 &  worldLightPos,
const osg::Vec3 &  worldLightDir,
const osg::Vec3 &  worldLightUp = osg::Vec3(0, 1, 0) 
)
protectedvirtual
virtual osg::BoundingBox makOsgShadowFX::DtShadowMapMinimal::computeScenePolytopeBounds ( const osg::Matrix *  m = NULL)
protectedvirtual
virtual void makOsgShadowFX::DtShadowMapMinimal::cutScenePolytope ( const osg::Matrix &  matrix,
const osg::Matrix &  inverse,
const osg::BoundingBox &  bb = osg::BoundingBox(-1,-1,-1, 1, 1, 1) 
)
protectedvirtual
virtual void makOsgShadowFX::DtShadowMapMinimal::frameShadowCastingCamera ( const osg::Camera *  cameraMain,
osg::Camera *  cameraShadow,
int  pass = 1 
)
protectedvirtual
virtual osg::BoundingBox makOsgShadowFX::DtShadowMapMinimal::computeShadowReceivingCoarseBounds ( )
protectedvirtual
static void makOsgShadowFX::DtShadowMapMinimal::trimProjection ( osg::Matrixd &  projection,
osg::BoundingBox  subrange,
unsigned int  trimMask = (1|2|4|8|16|32) 
)
staticprotected
static void makOsgShadowFX::DtShadowMapMinimal::clampProjection ( osg::Matrixd &  projection,
float  n = 0,
float  f = FLT_MAX 
)
staticprotected
static void makOsgShadowFX::DtShadowMapMinimal::extendProjection ( osg::Matrixd &  projection,
osg::Viewport *  viewport,
const osg::Vec2 &  margin 
)
staticprotected

Member Data Documentation

ConvexPolyhedron makOsgShadowFX::DtShadowMapMinimal::mySceneReceivingShadowPolytope
protected
std::vector< osg::Vec3d > makOsgShadowFX::DtShadowMapMinimal::mySceneReceivingShadowPolytopePoints
protected
osg::Matrixd makOsgShadowFX::DtShadowMapMinimal::myClampedProjection
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)