osgUtil::StatsVisitor Class Reference

Inheritance diagram for osgUtil::StatsVisitor:

osg::NodeVisitor osg::Referenced List of all members.

Public Types

typedef std::set< osg::Node * > NodeSet
typedef std::set< osg::Drawable * > DrawableSet
typedef std::set< osg::StateSet * > StateSetSet

Public Member Functions

 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 Attributes

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

Detailed Description

StatsVisitor for collecting statistics about scene graph.


Member Typedef Documentation

typedef std::set<osg::Drawable*> osgUtil::StatsVisitor::DrawableSet
 

typedef std::set<osg::Node*> osgUtil::StatsVisitor::NodeSet
 

typedef std::set<osg::StateSet*> osgUtil::StatsVisitor::StateSetSet
 


Constructor & Destructor Documentation

osgUtil::StatsVisitor::StatsVisitor  )  [inline]
 


Member Function Documentation

void osgUtil::StatsVisitor::apply osg::Drawable drawable  )  [inline]
 

void osgUtil::StatsVisitor::apply osg::Geode node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply osg::Switch node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply osg::LOD node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply osg::Transform node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply osg::Group node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::apply osg::Node node  )  [inline, virtual]
 

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::print std::ostream &  out  )  [inline]
 

void osgUtil::StatsVisitor::reset  )  [inline, virtual]
 

Method to call to reset visitor. Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.

Reimplemented from osg::NodeVisitor.

void osgUtil::StatsVisitor::totalUpStats  )  [inline]
 


Member Data Documentation

DrawableSet osgUtil::StatsVisitor::_drawableSet
 

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::_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:
Generated on Fri Oct 13 17:03:17 2006 for openscenegraph by  doxygen 1.4.6