openscenegraph
Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::StatsVisitor Class Reference
Inheritance diagram for osgUtil::StatsVisitor:
osg::NodeVisitor osg::Referenced

Public Types

typedef std::set< osg::Node * > NodeSet
typedef std::set< osg::Drawable * > DrawableSet
typedef std::set< osg::StateSet * > StateSetSet
- Public Types inherited from osg::NodeVisitor
enum  TraversalMode { TRAVERSE_NONE, TRAVERSE_PARENTS, TRAVERSE_ALL_CHILDREN, TRAVERSE_ACTIVE_CHILDREN }
enum  VisitorType {
  NODE_VISITOR = 0, UPDATE_VISITOR, EVENT_VISITOR, COLLECT_OCCLUDER_VISITOR,
  CULL_VISITOR
}

Public Member Functions

 StatsVisitor ()
 META_NodeVisitor ("osgUtil","StatsVisitor") void reset()
void apply (osg::Node &node)
void apply (osg::Group &node)
void apply (osg::Transform &node)
void apply (osg::LOD &node)
void apply (osg::Switch &node)
void apply (osg::Geode &node)
void apply (osg::Drawable &drawable)
void totalUpStats ()
void print (std::ostream &out)
- Public Member Functions inherited from osg::NodeVisitor
 NodeVisitor (TraversalMode tm=TRAVERSE_NONE)
 NodeVisitor (VisitorType type, TraversalMode tm=TRAVERSE_NONE)
virtual ~NodeVisitor ()
virtual const char * libraryName () const
virtual const char * className () const
virtual void reset ()
void setVisitorType (VisitorType type)
VisitorType getVisitorType () const
void setTraversalNumber (unsigned int fn)
unsigned int getTraversalNumber () const
void setFrameStamp (FrameStamp *fs)
const FrameStampgetFrameStamp () const
void setTraversalMask (Node::NodeMask mask)
Node::NodeMask getTraversalMask () const
void setNodeMaskOverride (Node::NodeMask mask)
Node::NodeMask getNodeMaskOverride () const
bool validNodeMask (const osg::Node &node) const
void setTraversalMode (TraversalMode mode)
TraversalMode getTraversalMode () const
void setUserData (Referenced *obj)
ReferencedgetUserData ()
const ReferencedgetUserData () const
void traverse (Node &node)
void pushOntoNodePath (Node *node)
void popFromNodePath ()
NodePathgetNodePath ()
const NodePathgetNodePath () const
virtual osg::Vec3 getEyePoint () const
virtual osg::Vec3 getViewPoint () const
virtual float getDistanceToEyePoint (const Vec3 &, bool) const
virtual float getDistanceFromEyePoint (const Vec3 &, bool) const
virtual float getDistanceToViewPoint (const Vec3 &, bool) const
virtual void apply (Billboard &node)
virtual void apply (ProxyNode &node)
virtual void apply (Projection &node)
virtual void apply (CoordinateSystemNode &node)
virtual void apply (ClipNode &node)
virtual void apply (TexGenNode &node)
virtual void apply (LightSource &node)
virtual void apply (Camera &node)
virtual void apply (CameraView &node)
virtual void apply (MatrixTransform &node)
virtual void apply (PositionAttitudeTransform &node)
virtual void apply (Sequence &node)
virtual void apply (PagedLOD &node)
virtual void apply (ClearNode &node)
virtual void apply (OccluderNode &node)
virtual void apply (OcclusionQueryNode &node)
void setDatabaseRequestHandler (DatabaseRequestHandler *handler)
DatabaseRequestHandlergetDatabaseRequestHandler ()
const DatabaseRequestHandlergetDatabaseRequestHandler () const
void setImageRequestHandler (ImageRequestHandler *handler)
ImageRequestHandlergetImageRequestHandler ()
const ImageRequestHandlergetImageRequestHandler () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Public Attributes

unsigned int _numInstancedGroup
unsigned int _numInstancedSwitch
unsigned int _numInstancedLOD
unsigned int _numInstancedTransform
unsigned int _numInstancedGeode
unsigned int _numInstancedDrawable
unsigned int _numInstancedGeometry
unsigned int _numInstancedFastGeometry
unsigned int _numInstancedStateSet
NodeSet _groupSet
NodeSet _transformSet
NodeSet _lodSet
NodeSet _switchSet
NodeSet _geodeSet
DrawableSet _drawableSet
DrawableSet _geometrySet
DrawableSet _fastGeometrySet
StateSetSet _statesetSet
osgUtil::Statistics _uniqueStats
osgUtil::Statistics _instancedStats

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const
- Protected Attributes inherited from osg::NodeVisitor
VisitorType _visitorType
unsigned int _traversalNumber
ref_ptr< FrameStamp_frameStamp
TraversalMode _traversalMode
Node::NodeMask _traversalMask
Node::NodeMask _nodeMaskOverride
NodePath _nodePath
ref_ptr< Referenced_userData
ref_ptr< DatabaseRequestHandler_databaseRequestHandler
ref_ptr< ImageRequestHandler_imageRequestHandler

Detailed Description

StatsVisitor for collecting statistics about scene graph.

Member Typedef Documentation

Constructor & Destructor Documentation

osgUtil::StatsVisitor::StatsVisitor ( )

Member Function Documentation

void osgUtil::StatsVisitor::apply ( osg::Node node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::Group node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::Transform node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::LOD node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::Switch node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::Geode node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply ( osg::Drawable drawable)
osgUtil::StatsVisitor::META_NodeVisitor ( "osgUtil"  ,
"StatsVisitor"   
)
void osgUtil::StatsVisitor::print ( std::ostream &  out)
void osgUtil::StatsVisitor::totalUpStats ( )

Member Data Documentation

DrawableSet osgUtil::StatsVisitor::_drawableSet
DrawableSet osgUtil::StatsVisitor::_fastGeometrySet
NodeSet osgUtil::StatsVisitor::_geodeSet
DrawableSet osgUtil::StatsVisitor::_geometrySet
NodeSet osgUtil::StatsVisitor::_groupSet
osgUtil::Statistics osgUtil::StatsVisitor::_instancedStats
NodeSet osgUtil::StatsVisitor::_lodSet
unsigned int osgUtil::StatsVisitor::_numInstancedDrawable
unsigned int osgUtil::StatsVisitor::_numInstancedFastGeometry
unsigned int osgUtil::StatsVisitor::_numInstancedGeode
unsigned int osgUtil::StatsVisitor::_numInstancedGeometry
unsigned int osgUtil::StatsVisitor::_numInstancedGroup
unsigned int osgUtil::StatsVisitor::_numInstancedLOD
unsigned int osgUtil::StatsVisitor::_numInstancedStateSet
unsigned int osgUtil::StatsVisitor::_numInstancedSwitch
unsigned int osgUtil::StatsVisitor::_numInstancedTransform
StateSetSet osgUtil::StatsVisitor::_statesetSet
NodeSet osgUtil::StatsVisitor::_switchSet
NodeSet osgUtil::StatsVisitor::_transformSet
osgUtil::Statistics osgUtil::StatsVisitor::_uniqueStats

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