Files
OpenSceneGraph/doc/doc++/osg/Statistics.html
2001-12-24 23:34:25 +00:00

369 lines
14 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class SG_EXPORT osg::Statistics</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::Statistics</A></H2></H2><BLOCKQUOTE> Statistics base class.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CStatistics,MStatistics.html">
<param name=before value="M,M,M">
<param name=after value="Md_SP,Md_,M">
<param name=indent value="0,1,2">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.20">numOpaque</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.21">nummat</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.22">nbins</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.23">nprims</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.24">nlights</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.25">depth</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.26">_binNo</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Statistics.html#DOC.2.98.7">statsType</A> <B><A HREF="#DOC.2.98.27">stattype</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.28">nimpostor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.29">numprimtypes</A></B>[16]
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.30">primtypes</A></B>[16]
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.31">primlens</A></B>[16]
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.98.32">primverts</A></B>[16]
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.98.1">Statistics</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.98.3">~Statistics</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <!1><A HREF="Object.html">osg::Object</A>* <B><A HREF="#DOC.2.98.4">clone</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.98.5">isSameKindAs</A></B>(const <!1><A HREF="Object.html">osg::Object</A>* obj) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.98.6">className</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.8">reset</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.9">setType</A></B>(<!1><A HREF="Statistics.html#DOC.2.98.7">statsType</A> <!1><A HREF="ImpostorSprite.html#DOC.2.44.23">t</A>)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.10">addNumPrims</A></B>(const int typ, const int nprimlen, const int numprimtype, const int primvert)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.11">addOpaque</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.12">addMatrix</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.13">addLight</A></B>(const int np)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.14">addNumPrims</A></B>(const int np)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.15">addImpostor</A></B>(const int np)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const int <B><A HREF="#DOC.2.98.16">getBins</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.17">setDepth</A></B>(const int d)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.18">addBins</A></B>(const int np)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.98.19">setBinNo</A></B>(const int n)
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.98.2">PrimitiveType</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.98.7">statsType</A></B>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
</DL>
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>&amp; <B>operator = </B>(<!1><A HREF="Referenced.html">Referenced</A>&amp;)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const int <B>referenceCount</B>() const
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
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.</BLOCKQUOTE>
<DL>
<A NAME="Statistics"></A>
<A NAME="DOC.2.98.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Statistics()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="PrimitiveType"></A>
<A NAME="DOC.2.98.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum PrimitiveType</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="NO_TYPE"></A>
<A NAME="DOC.2.98.2.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> NO_TYPE</B></TT>
<DL><DT><DD></DL><P>
<A NAME="POINTS"></A>
<A NAME="DOC.2.98.2.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POINTS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINES"></A>
<A NAME="DOC.2.98.2.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINE_STRIP"></A>
<A NAME="DOC.2.98.2.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FLAT_LINE_STRIP"></A>
<A NAME="DOC.2.98.2.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FLAT_LINE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINE_LOOP"></A>
<A NAME="DOC.2.98.2.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINE_LOOP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLES"></A>
<A NAME="DOC.2.98.2.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLE_STRIP"></A>
<A NAME="DOC.2.98.2.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FLAT_TRIANGLE_STRIP"></A>
<A NAME="DOC.2.98.2.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FLAT_TRIANGLE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLE_FAN"></A>
<A NAME="DOC.2.98.2.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLE_FAN</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FLAT_TRIANGLE_FAN"></A>
<A NAME="DOC.2.98.2.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FLAT_TRIANGLE_FAN</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUADS"></A>
<A NAME="DOC.2.98.2.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUADS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD_STRIP"></A>
<A NAME="DOC.2.98.2.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="POLYGON"></A>
<A NAME="DOC.2.98.2.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POLYGON</B></TT>
<DL><DT><DD></DL><P>
<A NAME="IMPOSTOR"></A>
<A NAME="DOC.2.98.2.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> IMPOSTOR</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="~Statistics"></A>
<A NAME="DOC.2.98.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ~Statistics()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="clone"></A>
<A NAME="DOC.2.98.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual <!1><A HREF="Object.html">osg::Object</A>* clone() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="isSameKindAs"></A>
<A NAME="DOC.2.98.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool isSameKindAs(const <!1><A HREF="Object.html">osg::Object</A>* obj) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="className"></A>
<A NAME="DOC.2.98.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="statsType"></A>
<A NAME="DOC.2.98.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum statsType</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="STAT_NONE"></A>
<A NAME="DOC.2.98.7.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_NONE</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_FRAMERATE"></A>
<A NAME="DOC.2.98.7.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_FRAMERATE</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_GRAPHS"></A>
<A NAME="DOC.2.98.7.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_GRAPHS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_PRIMS"></A>
<A NAME="DOC.2.98.7.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_PRIMS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_PRIMSPERVIEW"></A>
<A NAME="DOC.2.98.7.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_PRIMSPERVIEW</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_PRIMSPERBIN"></A>
<A NAME="DOC.2.98.7.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_PRIMSPERBIN</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_DC"></A>
<A NAME="DOC.2.98.7.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_DC</B></TT>
<DL><DT><DD></DL><P>
<A NAME="STAT_RESTART"></A>
<A NAME="DOC.2.98.7.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> STAT_RESTART</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="reset"></A>
<A NAME="DOC.2.98.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void reset()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setType"></A>
<A NAME="DOC.2.98.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setType(<!1><A HREF="Statistics.html#DOC.2.98.7">statsType</A> <!1><A HREF="ImpostorSprite.html#DOC.2.44.23">t</A>)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addNumPrims"></A>
<A NAME="DOC.2.98.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addOpaque"></A>
<A NAME="DOC.2.98.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addOpaque()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addMatrix"></A>
<A NAME="DOC.2.98.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addMatrix()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addLight"></A>
<A NAME="DOC.2.98.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addLight(const int np)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addNumPrims"></A>
<A NAME="DOC.2.98.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addNumPrims(const int np)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addImpostor"></A>
<A NAME="DOC.2.98.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addImpostor(const int np)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getBins"></A>
<A NAME="DOC.2.98.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const int getBins()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setDepth"></A>
<A NAME="DOC.2.98.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDepth(const int d)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addBins"></A>
<A NAME="DOC.2.98.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addBins(const int np)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setBinNo"></A>
<A NAME="DOC.2.98.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setBinNo(const int n)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="numOpaque"></A>
<A NAME="DOC.2.98.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int numOpaque</B></TT>
<DL><DT><DD></DL><P>
<A NAME="nummat"></A>
<A NAME="DOC.2.98.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int nummat</B></TT>
<DL><DT><DD></DL><P>
<A NAME="nbins"></A>
<A NAME="DOC.2.98.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int nbins</B></TT>
<DL><DT><DD></DL><P>
<A NAME="nprims"></A>
<A NAME="DOC.2.98.23"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int nprims</B></TT>
<DL><DT><DD></DL><P>
<A NAME="nlights"></A>
<A NAME="DOC.2.98.24"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int nlights</B></TT>
<DL><DT><DD></DL><P>
<A NAME="depth"></A>
<A NAME="DOC.2.98.25"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int depth</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_binNo"></A>
<A NAME="DOC.2.98.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _binNo</B></TT>
<DL><DT><DD></DL><P>
<A NAME="stattype"></A>
<A NAME="DOC.2.98.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Statistics.html#DOC.2.98.7">statsType</A> stattype</B></TT>
<DL><DT><DD></DL><P>
<A NAME="nimpostor"></A>
<A NAME="DOC.2.98.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int nimpostor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="numprimtypes"></A>
<A NAME="DOC.2.98.29"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int numprimtypes[16]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="primtypes"></A>
<A NAME="DOC.2.98.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int primtypes[16]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="primlens"></A>
<A NAME="DOC.2.98.31"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int primlens[16]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="primverts"></A>
<A NAME="DOC.2.98.32"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int primverts[16]</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>