class osgUtil::Statistics

Statistics base class.

Inheritance:


Public Fields

[more]int numDrawables
[more]int nummat
[more]int nbins
[more]int nlights
[more]int depth
[more]int _binNo
[more]statsType stattype
[more]int nimpostor
[more]unsigned int _vertexCount
[more]PrimtiveValueMap _primitiveCount
[more]GLenum _currentPrimtiveFunctorMode

Public Methods

[more] Statistics()
[more]void reset()
[more]void setType(statsType t)
[more]virtual void setVertexArray(unsigned int count, const osg::Vec4*)
[more]virtual void drawArrays(GLenum mode, GLint, GLsizei count)
[more]virtual void drawElements(GLenum mode, GLsizei count, const GLuint*)
[more]virtual void begin(GLenum mode)
[more]inline void vertex()
[more]virtual void vertex(float, float, float)
[more]virtual void vertex(const osg::Vec4&)
[more]virtual void vertex(float, float)
[more]virtual void vertex(float, float, float, float)
[more]virtual void end()
[more]void addDrawable()
[more]void addMatrix()
[more]void addLight(int np)
[more]void addImpostor(int np)
[more]inline int getBins()
[more]void setDepth(int d)
[more]void addBins(int np)
[more]void setBinNo(int n)
[more]PrimtiveCountMap::iterator GetPrimitivesBegin()
[more]PrimtiveCountMap::iterator GetPrimitivesEnd()
[more]inline unsigned int _calculate_primitives_number_by_mode(GLenum mode, GLsizei count)

Public Members

[more]typedef std::pair<unsigned int,unsigned int> PrimitivePair
[more]typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap
[more]typedef std::map<GLenum, unsigned int> PrimtiveCountMap
[more]enum statsType


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 Geometry.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.
otypedef std::pair<unsigned int,unsigned int> PrimitivePair

otypedef std::map<GLenum,PrimitivePair> PrimtiveValueMap

otypedef std::map<GLenum, unsigned int> PrimtiveCountMap

o Statistics()

oenum statsType

o STAT_NONE

o STAT_FRAMERATE

o STAT_GRAPHS

o STAT_PRIMS

o STAT_PRIMSPERVIEW

o STAT_PRIMSPERBIN

o STAT_DC

o STAT_RESTART

ovoid reset()

ovoid setType(statsType t)

ovirtual void setVertexArray(unsigned int count, const osg::Vec4*)

ovirtual void drawArrays(GLenum mode, GLint, GLsizei count)

ovirtual void drawElements(GLenum mode, GLsizei count, const GLuint*)

ovirtual void begin(GLenum mode)

oinline void vertex()

ovirtual void vertex(float, float, float)

ovirtual void vertex(const osg::Vec4&)

ovirtual void vertex(float, float)

ovirtual void vertex(float, float, float, float)

ovirtual void end()

ovoid addDrawable()

ovoid addMatrix()

ovoid addLight(int np)

ovoid addImpostor(int np)

oinline int getBins()

ovoid setDepth(int d)

ovoid addBins(int np)

ovoid setBinNo(int n)

oPrimtiveCountMap::iterator GetPrimitivesBegin()

oPrimtiveCountMap::iterator GetPrimitivesEnd()

oint numDrawables

oint nummat

oint nbins

oint nlights

oint depth

oint _binNo

ostatsType stattype

oint nimpostor

ounsigned int _vertexCount

oPrimtiveValueMap _primitiveCount

oGLenum _currentPrimtiveFunctorMode

oinline unsigned int _calculate_primitives_number_by_mode(GLenum mode, GLsizei count)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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