OpenSceneGraph 2.8.4
Public Member Functions | Static Public Member Functions | Public Attributes
osgShadow::MinimalShadowMap::ViewData Struct Reference
Inheritance diagram for osgShadow::MinimalShadowMap::ViewData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void init (ThisClass *st, osgUtil::CullVisitor *cv)
virtual osg::BoundingBox computeShadowReceivingCoarseBounds ()
virtual void cullShadowReceivingScene ()
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 frameShadowCastingCamera (const osg::Camera *cameraMain, osg::Camera *cameraShadow, int pass=1)
void cutScenePolytope (const osg::Matrix &matrix, const osg::Matrix &inverse, const osg::BoundingBox &bb=osg::BoundingBox(-1,-1,-1, 1, 1, 1))
osg::BoundingBox computeScenePolytopeBounds (const osg::Matrix &m=*(osg::Matrix *)(NULL))

Static Public 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)

Public Attributes

osg::Matrix_modellingSpaceToWorldPtr
float * _maxFarPlanePtr
float * _minLightMarginPtr
ConvexPolyhedron _sceneReceivingShadowPolytope
std::vector< osg::Vec3d_sceneReceivingShadowPolytopePoints
osg::Matrixd _clampedProjection

Member Function Documentation

virtual void osgShadow::MinimalShadowMap::ViewData::aimShadowCastingCamera ( const osg::Light light,
const osg::Vec4 worldLightPos,
const osg::Vec3 worldLightDir,
const osg::Vec3 worldLightUp = osg::Vec3(0, 1, 0) 
) [virtual]
static void osgShadow::MinimalShadowMap::ViewData::clampProjection ( osg::Matrixd projection,
float  n = 0,
float  f = FLT_MAX 
) [static]
osg::BoundingBox osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ( const osg::Matrix m = *(osg::Matrix *)(NULL))
virtual osg::BoundingBox osgShadow::MinimalShadowMap::ViewData::computeShadowReceivingCoarseBounds ( ) [virtual]
virtual void osgShadow::MinimalShadowMap::ViewData::cullShadowReceivingScene ( ) [virtual]
void osgShadow::MinimalShadowMap::ViewData::cutScenePolytope ( const osg::Matrix matrix,
const osg::Matrix inverse,
const osg::BoundingBox bb = osg::BoundingBox(-1,-1,-1, 1, 1, 1) 
)
static void osgShadow::MinimalShadowMap::ViewData::extendProjection ( osg::Matrixd projection,
osg::Viewport viewport,
const osg::Vec2 margin 
) [static]
virtual void osgShadow::MinimalShadowMap::ViewData::frameShadowCastingCamera ( const osg::Camera cameraMain,
osg::Camera cameraShadow,
int  pass = 1 
) [virtual]
virtual void osgShadow::MinimalShadowMap::ViewData::init ( ThisClass st,
osgUtil::CullVisitor cv 
) [virtual]
static void osgShadow::MinimalShadowMap::ViewData::trimProjection ( osg::Matrixd projection,
osg::BoundingBox  subrange,
unsigned int  trimMask = (1|2|4|8|16|32) 
) [static]

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:16:50 for the OpenSceneGraph by doxygen 1.7.4.