OpenSceneGraph 2.8.4
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgShadow::DebugShadowMap Class Reference

Class used as a layer for debuging resources used by derived xxxShadowMap classes. More...

Inheritance diagram for osgShadow::DebugShadowMap:
Inheritance graph
[legend]

List of all members.

Classes

struct  ViewData

Public Types

typedef DebugShadowMap ThisClass
 Convenient typedef used in definition of ViewData struct and methods.
typedef
ViewDependentShadowTechnique 
BaseClass
 Convenient typedef used in definition of ViewData struct and methods.

Public Member Functions

 DebugShadowMap ()
 Classic OSG constructor.
 DebugShadowMap (const DebugShadowMap &dsm, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Classic OSG cloning constructor.
 META_Object (ViewDependentShadow, DebugShadowMap)
 Declaration of standard OSG object methods.
void setDebugDraw (bool draw)
 Turn on/off debuging hud & rendering of debug volumes in main view.
bool getDebugDraw (void)
 Tell if debuging hud & rendering of debug volumes is active.

Protected Member Functions

virtual ~DebugShadowMap ()
 Classic protected OSG destructor.

Protected Attributes

osg::Vec2s _hudSize
osg::Vec2s _hudOrigin
osg::Vec2s _viewportSize
osg::Vec2s _viewportOrigin
osg::Vec2s _orthoSize
osg::Vec2s _orthoOrigin
bool _doDebugDraw
osg::ref_ptr< osg::Shader_depthColorFragmentShader

Detailed Description

Class used as a layer for debuging resources used by derived xxxShadowMap classes.

As designed by its base ViewDepndentShadowTechnique, DebugShadowMap serves mainly as container of DebugShadowMap::ViewData objects. Most of the debuging support work is done by these objects. DebugShadowMap technique only initializes them in initViewDependentData method.

Debuging outputs present: Shadow maps (pseudo colored to improve readability) Shadow and related volumes (represented as convex polyhedra)


Member Typedef Documentation


Constructor & Destructor Documentation

osgShadow::DebugShadowMap::DebugShadowMap ( )

Classic OSG constructor.

osgShadow::DebugShadowMap::DebugShadowMap ( const DebugShadowMap dsm,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Classic OSG cloning constructor.

virtual osgShadow::DebugShadowMap::~DebugShadowMap ( ) [protected, virtual]

Classic protected OSG destructor.


Member Function Documentation

bool osgShadow::DebugShadowMap::getDebugDraw ( void  ) [inline]

Tell if debuging hud & rendering of debug volumes is active.

osgShadow::DebugShadowMap::META_Object ( ViewDependentShadow  ,
DebugShadowMap   
)

Declaration of standard OSG object methods.

void osgShadow::DebugShadowMap::setDebugDraw ( bool  draw) [inline]

Turn on/off debuging hud & rendering of debug volumes in main view.


Member Data Documentation


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

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