class SG_EXPORT osg::Statistics

Statistics base class.

Inheritance:


Public Fields

[more]int numOpaque
[more]int nummat
[more]int nbins
[more]int nprims
[more]int nlights
[more]int depth
[more]int _binNo
[more]statsType stattype
[more]int nimpostor
[more]int numprimtypes[16]
[more]int primtypes[16]
[more]int primlens[16]
[more]int primverts[16]

Public Methods

[more] Statistics()
[more] ~Statistics()
[more]void reset()
[more]void setType(statsType t)
[more]virtual bool apply(osg::Drawable::AttributeBitMask abm, osg::Vec3* begin, osg::Vec3* end)
[more]void addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)
[more]void addOpaque()
[more]void addMatrix()
[more]void addLight(const int np)
[more]void addNumPrims(const int np)
[more]void addImpostor(const int np)
[more]inline const int getBins()
[more]void setDepth(const int d)
[more]void addBins(const int np)
[more]void setBinNo(const int n)

Public Members

[more]enum PrimitiveType
[more]enum statsType


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Inherited from AttributeFunctor:

Public Methods

ovoid setAttributeBitMask(AttributeBitMask abm)
oAttributeBitMask getAttributeBitMask() const

Protected Fields

oAttributeBitMask _abm


Documentation

Statistics base class. Used to extract primitive information from the renderBin(s). Add a case of getStats(osgUtil::Statistics *stat) for any new drawable (or drawable derived class) that you generate (eg see GeoSet.cpp). There are 20 types of drawable counted - actually only 14 cases can occur in reality. these represent sets of GL_POINTS, GL_LINES GL_LINESTRIPS, LOOPS, TRIANGLES, TRI-fans, tristrips, quads, quadstrips etc The number of triangles rendered is inferred: each triangle = 1 triangle (number of vertices/3) each quad = 2 triangles (nverts/2) each trifan or tristrip = (length-2) triangles and so on.
o Statistics()

oenum PrimitiveType

o NO_TYPE

o POINTS

o LINES

o LINE_STRIP

o FLAT_LINE_STRIP

o LINE_LOOP

o TRIANGLES

o TRIANGLE_STRIP

o FLAT_TRIANGLE_STRIP

o TRIANGLE_FAN

o FLAT_TRIANGLE_FAN

o QUADS

o QUAD_STRIP

o POLYGON

o IMPOSTOR

o ~Statistics()

oenum statsType

o STAT_NONE

o STAT_FRAMERATE

o STAT_GRAPHS

o STAT_VIEWPARMS

o STAT_PRIMS

o STAT_PRIMSPERVIEW

o STAT_PRIMSPERBIN

o STAT_DC

o STAT_RESTART

ovoid reset()

ovoid setType(statsType t)

ovirtual bool apply(osg::Drawable::AttributeBitMask abm, osg::Vec3* begin, osg::Vec3* end)

ovoid addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)

ovoid addOpaque()

ovoid addMatrix()

ovoid addLight(const int np)

ovoid addNumPrims(const int np)

ovoid addImpostor(const int np)

oinline const int getBins()

ovoid setDepth(const int d)

ovoid addBins(const int np)

ovoid setBinNo(const int n)

oint numOpaque

oint nummat

oint nbins

oint nprims

oint nlights

oint depth

oint _binNo

ostatsType stattype

oint nimpostor

oint numprimtypes[16]

oint primtypes[16]

oint primlens[16]

oint primverts[16]


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.