OpenSceneGraph
3.0.1
|
Class used as a layer for debuging resources used by derived xxxShadowMap classes. More...
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 ©op=osg::CopyOp::SHALLOW_COPY) | |
Classic OSG cloning constructor. | |
META_Object (osgShadow, 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) const |
Tell if debuging hud & rendering of debug volumes is active. | |
std::string | getDebugDump (void) const |
Get the file name of debuging dump. | |
void | setDebugDump (const std::string &debugDumpFile) |
Set the file name of debuging dump. | |
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 |
std::string | _debugDump |
osg::ref_ptr< osg::Shader > | _depthColorFragmentShader |
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)
Convenient typedef used in definition of ViewData struct and methods.
Reimplemented in osgShadow::MinimalDrawBoundsShadowMap, osgShadow::MinimalCullBoundsShadowMap, osgShadow::MinimalShadowMap, and osgShadow::StandardShadowMap.
Convenient typedef used in definition of ViewData struct and methods.
Reimplemented in osgShadow::MinimalDrawBoundsShadowMap, osgShadow::MinimalCullBoundsShadowMap, osgShadow::MinimalShadowMap, and osgShadow::StandardShadowMap.
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.
bool osgShadow::DebugShadowMap::getDebugDraw | ( | void | ) | const [inline] |
Tell if debuging hud & rendering of debug volumes is active.
std::string osgShadow::DebugShadowMap::getDebugDump | ( | void | ) | const [inline] |
Get the file name of debuging dump.
osgShadow::DebugShadowMap::META_Object | ( | osgShadow | , |
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.
void osgShadow::DebugShadowMap::setDebugDump | ( | const std::string & | debugDumpFile | ) | [inline] |
Set the file name of debuging dump.
std::string osgShadow::DebugShadowMap::_debugDump [protected] |
bool osgShadow::DebugShadowMap::_doDebugDraw [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_hudOrigin [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_hudSize [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_orthoOrigin [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_orthoSize [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_viewportOrigin [protected] |
osg::Vec2s osgShadow::DebugShadowMap::_viewportSize [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:48 for the OpenSceneGraph by doxygen 1.7.5. |