OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::StatsVisitor Class Reference

#include <Statistics.h>

Inheritance diagram for osgUtil::StatsVisitor:
Inheritance graph
[legend]
Collaboration diagram for osgUtil::StatsVisitor:
Collaboration graph
[legend]

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, INTERSECTION_VISITOR
}
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 

Public Member Functions

 StatsVisitor ()
 
 META_NodeVisitor (osgUtil, StatsVisitor) virtual void reset()
 
virtual void apply (osg::Node &node)
 
virtual void apply (osg::Group &node)
 
virtual void apply (osg::Transform &node)
 
virtual void apply (osg::LOD &node)
 
virtual void apply (osg::Switch &node)
 
virtual void apply (osg::Geode &node)
 
virtual void apply (osg::Drawable &drawable)
 
virtual void apply (osg::StateSet &ss)
 
virtual void totalUpStats ()
 
virtual void print (std::ostream &out)
 
- Public Member Functions inherited from osg::NodeVisitor
 NodeVisitor (TraversalMode tm=TRAVERSE_NONE)
 
 NodeVisitor (VisitorType type, TraversalMode tm=TRAVERSE_NONE)
 
 NodeVisitor (const NodeVisitor &nv, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
virtual ~NodeVisitor ()
 
 META_Object (osg, NodeVisitor) virtual NodeVisitor *asNodeVisitor()
 
virtual const NodeVisitorasNodeVisitor () 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 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 (Geometry &geometry)
 
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::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (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 NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () 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::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () 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
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
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::Object
virtual ~Object ()
 
- 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< DatabaseRequestHandler_databaseRequestHandler
 
ref_ptr< ImageRequestHandler_imageRequestHandler
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

StatsVisitor for collecting statistics about scene graph.

Definition at line 174 of file Statistics.h.

Member Typedef Documentation

Definition at line 179 of file Statistics.h.

Definition at line 178 of file Statistics.h.

Definition at line 180 of file Statistics.h.

Constructor & Destructor Documentation

osgUtil::StatsVisitor::StatsVisitor ( )

Member Function Documentation

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

virtual void osgUtil::StatsVisitor::apply ( osg::Drawable drawable)
virtual

Reimplemented from osg::NodeVisitor.

virtual void osgUtil::StatsVisitor::apply ( osg::StateSet ss)
virtual
osgUtil::StatsVisitor::META_NodeVisitor ( osgUtil  ,
StatsVisitor   
)
virtual void osgUtil::StatsVisitor::print ( std::ostream &  out)
virtual
virtual void osgUtil::StatsVisitor::totalUpStats ( )
virtual

Member Data Documentation

DrawableSet osgUtil::StatsVisitor::_drawableSet

Definition at line 216 of file Statistics.h.

DrawableSet osgUtil::StatsVisitor::_fastGeometrySet

Definition at line 218 of file Statistics.h.

NodeSet osgUtil::StatsVisitor::_geodeSet

Definition at line 215 of file Statistics.h.

DrawableSet osgUtil::StatsVisitor::_geometrySet

Definition at line 217 of file Statistics.h.

NodeSet osgUtil::StatsVisitor::_groupSet

Definition at line 211 of file Statistics.h.

osgUtil::Statistics osgUtil::StatsVisitor::_instancedStats

Definition at line 222 of file Statistics.h.

NodeSet osgUtil::StatsVisitor::_lodSet

Definition at line 213 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedDrawable

Definition at line 206 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedFastGeometry

Definition at line 208 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedGeode

Definition at line 205 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedGeometry

Definition at line 207 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedGroup

Definition at line 201 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedLOD

Definition at line 203 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedStateSet

Definition at line 209 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedSwitch

Definition at line 202 of file Statistics.h.

unsigned int osgUtil::StatsVisitor::_numInstancedTransform

Definition at line 204 of file Statistics.h.

StateSetSet osgUtil::StatsVisitor::_statesetSet

Definition at line 219 of file Statistics.h.

NodeSet osgUtil::StatsVisitor::_switchSet

Definition at line 214 of file Statistics.h.

NodeSet osgUtil::StatsVisitor::_transformSet

Definition at line 212 of file Statistics.h.

osgUtil::Statistics osgUtil::StatsVisitor::_uniqueStats

Definition at line 221 of file Statistics.h.


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