Statistics base class.
Inheritance:
Public Fields
-
int numOpaque
-
int nummat
-
int nbins
-
int nprims
-
int nlights
-
int depth
-
int _binNo
-
statsType stattype
-
int nimpostor
-
int numprimtypes[16]
-
int primtypes[16]
-
int primlens[16]
-
int primverts[16]
Public Methods
-
Statistics()
-
~Statistics()
-
void reset()
-
void setType(statsType t)
-
virtual bool apply(osg::Drawable::AttributeBitMask abm, osg::Vec3* begin, osg::Vec3* end)
-
void addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)
-
void addOpaque()
-
void addMatrix()
-
void addLight(const int np)
-
void addNumPrims(const int np)
-
void addImpostor(const int np)
-
inline const int getBins()
-
void setDepth(const int d)
-
void addBins(const int np)
-
void setBinNo(const int n)
Public Members
-
enum PrimitiveType
-
enum statsType
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Public Methods
-
void setAttributeBitMask(AttributeBitMask abm)
-
AttributeBitMask getAttributeBitMask() const
Protected Fields
-
AttributeBitMask _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.
Statistics()
enum PrimitiveType
NO_TYPE
POINTS
LINES
LINE_STRIP
FLAT_LINE_STRIP
LINE_LOOP
TRIANGLES
TRIANGLE_STRIP
FLAT_TRIANGLE_STRIP
TRIANGLE_FAN
FLAT_TRIANGLE_FAN
QUADS
QUAD_STRIP
POLYGON
IMPOSTOR
~Statistics()
enum statsType
STAT_NONE
STAT_FRAMERATE
STAT_GRAPHS
STAT_VIEWPARMS
STAT_PRIMS
STAT_PRIMSPERVIEW
STAT_PRIMSPERBIN
STAT_DC
STAT_RESTART
void reset()
void setType(statsType t)
virtual bool apply(osg::Drawable::AttributeBitMask abm, osg::Vec3* begin, osg::Vec3* end)
void addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)
void addOpaque()
void addMatrix()
void addLight(const int np)
void addNumPrims(const int np)
void addImpostor(const int np)
inline const int getBins()
void setDepth(const int d)
void addBins(const int np)
void setBinNo(const int n)
int numOpaque
int nummat
int nbins
int nprims
int nlights
int depth
int _binNo
statsType stattype
int nimpostor
int numprimtypes[16]
int primtypes[16]
int primlens[16]
int 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++.