OSG
3.4.0
|
#include <DebugShadowMap.h>
Classes | |
struct | ViewData |
Public Types | |
typedef DebugShadowMap | ThisClass |
typedef ViewDependentShadowTechnique | BaseClass |
![]() | |
enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Public Member Functions | |
DebugShadowMap () | |
DebugShadowMap (const DebugShadowMap &dsm, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgShadow, DebugShadowMap) | |
void | setDebugDraw (bool draw) |
bool | getDebugDraw (void) const |
std::string | getDebugDump (void) const |
void | setDebugDump (const std::string &debugDumpFile) |
![]() | |
ViewDependentShadowTechnique (void) | |
ViewDependentShadowTechnique (const ViewDependentShadowTechnique &vdst, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgShadow, ViewDependentShadowTechnique) | |
virtual void | dirty () |
virtual void | init () |
virtual void | update (osg::NodeVisitor &nv) |
virtual void | cull (osgUtil::CullVisitor &cv) |
virtual void | cleanSceneGraph () |
virtual void | traverse (osg::NodeVisitor &nv) |
![]() | |
ShadowTechnique () | |
ShadowTechnique (const ShadowTechnique &es, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgShadow, ShadowTechnique) | |
ShadowedScene * | getShadowedScene () |
const ShadowedScene * | getShadowedScene () const |
![]() | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
virtual const char * | className () const =0 |
std::string | getCompoundClassName () const |
virtual Node * | asNode () |
virtual const Node * | asNode () const |
virtual NodeVisitor * | asNodeVisitor () |
virtual const NodeVisitor * | asNodeVisitor () const |
virtual StateAttribute * | asStateAttribute () |
virtual const StateAttribute * | asStateAttribute () const |
virtual Uniform * | asUniform () |
virtual const Uniform * | asUniform () const |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > | |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > | |
void | setUserValue (const std::string &name, const T &value) |
virtual void | resizeGLObjectBuffers (unsigned int) |
virtual void | releaseGLObjects (osg::State *=0) const |
template<typename T > | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Protected Member Functions | |
virtual | ~DebugShadowMap () |
![]() | |
~ViewDependentShadowTechnique (void) | |
virtual ViewDependentShadowTechnique::ViewData * | getViewDependentData (osgUtil::CullVisitor *cv) |
virtual void | setViewDependentData (osgUtil::CullVisitor *cv, ViewDependentShadowTechnique::ViewData *data) |
![]() | |
osg::Vec3 | computeOrthogonalVector (const osg::Vec3 &direction) const |
virtual | ~ShadowTechnique () |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
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 |
![]() | |
ViewDataMap | _viewDataMap |
OpenThreads::Mutex | _viewDataMapMutex |
![]() | |
ShadowedScene * | _shadowedScene |
bool | _dirty |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
typedef std::map< osg::ref_ptr < osgUtil::CullVisitor > , osg::ref_ptr< ViewData > > | ViewDataMap |
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)
Definition at line 41 of file DebugShadowMap.h.
Convenient typedef used in definition of ViewData struct and methods
Definition at line 57 of file DebugShadowMap.h.
Convenient typedef used in definition of ViewData struct and methods
Definition at line 55 of file DebugShadowMap.h.
osgShadow::DebugShadowMap::DebugShadowMap | ( | ) |
Classic OSG constructor
osgShadow::DebugShadowMap::DebugShadowMap | ( | const DebugShadowMap & | dsm, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
Classic OSG cloning constructor
|
protectedvirtual |
Classic protected OSG destructor
|
inline |
Tell if debuging hud & rendering of debug volumes is active
Definition at line 72 of file DebugShadowMap.h.
|
inline |
Get the file name of debuging dump
Definition at line 75 of file DebugShadowMap.h.
osgShadow::DebugShadowMap::META_Object | ( | osgShadow | , |
DebugShadowMap | |||
) |
Declaration of standard OSG object methods
|
inline |
Turn on/off debuging hud & rendering of debug volumes in main view
Definition at line 69 of file DebugShadowMap.h.
|
inline |
Set the file name of debuging dump
Definition at line 78 of file DebugShadowMap.h.
|
protected |
Definition at line 95 of file DebugShadowMap.h.
|
protected |
Definition at line 97 of file DebugShadowMap.h.
|
protected |
Definition at line 94 of file DebugShadowMap.h.
|
protected |
Definition at line 88 of file DebugShadowMap.h.
|
protected |
Definition at line 85 of file DebugShadowMap.h.
|
protected |
Definition at line 92 of file DebugShadowMap.h.
|
protected |
Definition at line 91 of file DebugShadowMap.h.
|
protected |
Definition at line 90 of file DebugShadowMap.h.
|
protected |
Definition at line 89 of file DebugShadowMap.h.