Panda3D
|
A handy class that can scrub over a scene graph and collect interesting statistics on it. More...
#include <pandadoc.hpp>
Public Types | |
enum | LodMode { LM_lowest = 0 , LM_highest = 1 , LM_all = 2 , LM_none = 3 } |
A handy class that can scrub over a scene graph and collect interesting statistics on it.
enum LodMode |
__init__ | ( | ) |
__init__ | ( | const SceneGraphAnalyzer | ) |
addNode | ( | PandaNode | node | ) |
Adds a new node to the set of data for analysis.
Normally, this would only be called once, and passed the top of the scene graph, but it's possible to repeatedly pass in subgraphs to get an analysis of all the graphs together.
clear | ( | ) |
Resets all of the data in the analyzer in preparation for a new run.
SceneGraphAnalyzer::LodMode getLodMode | ( | SceneGraphAnalyzer::LodMode | lod_mode | ) |
Returns the mode in which LODNodes are analyzed.
int getNumColors | ( | ) |
int getNumGeomNodes | ( | ) |
int getNumGeoms | ( | ) |
int getNumGeomVertexDatas | ( | ) |
int getNumGeomVertexFormats | ( | ) |
int getNumIndividualTris | ( | ) |
int getNumInstances | ( | ) |
int getNumLines | ( | ) |
int getNumLodNodes | ( | ) |
int getNumLongNormals | ( | ) |
int getNumNodes | ( | ) |
int getNumNodesWithAttribs | ( | ) |
int getNumNormals | ( | ) |
int getNumPatches | ( | ) |
int getNumPoints | ( | ) |
int getNumShortNormals | ( | ) |
int getNumTexcoords | ( | ) |
int getNumTransforms | ( | ) |
int getNumTrianglesInFans | ( | ) |
int getNumTrianglesInStrips | ( | ) |
int getNumTrifans | ( | ) |
int getNumTris | ( | ) |
int getNumTristrips | ( | ) |
int getNumVertices | ( | ) |
int getNumVerticesInPatches | ( | ) |
int getTextureBytes | ( | ) |
float getTotalNormalLength | ( | ) |
int getVertexDataSize | ( | ) |
setLodMode | ( | SceneGraphAnalyzer::LodMode | lod_mode | ) |
Specifies the mode in which LODNodes are analyzed.
write | ( | Ostream | out, |
int | indent_level ) |
Describes all the data collected.