00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #include <stdlib.h>
00044 #include <stdio.h>
00045
00046 #include <OSGConfig.h>
00047
00048 #include "OSGDrawable.h"
00049
00050 OSG_USING_NAMESPACE
00051
00056
00057
00058 StatElemDesc<StatIntElem> Drawable::statNTriangles("NTriangles",
00059 "number of rendered triangles");
00060 StatElemDesc<StatIntElem> Drawable::statNLines("NLines",
00061 "number of rendered lines");
00062 StatElemDesc<StatIntElem> Drawable::statNPoints("NPoints",
00063 "number of rendered points");
00064 StatElemDesc<StatIntElem> Drawable::statNVertices("NVertices",
00065 "number of transformed vertices");
00066 StatElemDesc<StatIntElem> Drawable::statNPrimitives("NPrimitives",
00067 "number of rendered primitive groups");
00068 StatElemDesc<StatIntOnceElem> Drawable::statNGeoBytes("NGeoBytes",
00069 "memory usages of geometry on the gfx card");
00070
00071
00072
00074
00075 Drawable::Drawable(void) :
00076 Inherited()
00077 {
00078 }
00079
00081
00082 Drawable::Drawable(const Drawable &source) :
00083 Inherited(source)
00084 {
00085 }
00086
00088
00089 Drawable::~Drawable(void)
00090 {
00091 }
00092
00093
00094
00096
00097 void Drawable::initMethod (void)
00098 {
00099 }
00100
00102
00103 void Drawable::changed(BitVector whichField, UInt32 origin)
00104 {
00105 Inherited::changed(whichField, origin);
00106 }
00107
00109
00110 void Drawable::dump( UInt32 ,
00111 const BitVector ) const
00112 {
00113 SLOG << "Dump Drawable NI" << std::endl;
00114 }
00115
00116
00117
00118
00119
00120 #ifdef OSG_SGI_CC
00121 #pragma set woff 1174
00122 #endif
00123
00124 #ifdef OSG_LINUX_ICC
00125 #pragma warning( disable : 177 )
00126 #endif
00127
00128 namespace
00129 {
00130 static Char8 cvsid_cpp [] = "@(#)$Id: OSGDrawable.cpp,v 1.7 2007/05/31 10:48:57 a-m-z Exp $";
00131 static Char8 cvsid_hpp [] = OSGDRAWABLEBASE_HEADER_CVSID;
00132 static Char8 cvsid_inl [] = OSGDRAWABLEBASE_INLINE_CVSID;
00133
00134 static Char8 cvsid_fields_hpp[] = OSGDRAWABLEFIELDS_HEADER_CVSID;
00135 }
00136
00137 #ifdef __sgi
00138 #pragma reset woff 1174
00139 #endif
00140