Panda3D
|
A handy class that can scrub over a scene graph and collect interesting statistics on it. More...
Public Types | |
enum | LodMode { LM_lowest = 0, LM_highest = 1, LM_all = 2, LM_none = 3 } |
Public Member Functions | |
__init__ () | |
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. More... | |
clear () | |
Resets all of the data in the analyzer in preparation for a new run. More... | |
SceneGraphAnalyzer::LodMode | getLodMode (SceneGraphAnalyzer::LodMode lod_mode) |
Returns the mode in which LODNodes are analyzed. More... | |
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. More... | |
write (Ostream out, int indent_level) | |
Describes all the data collected. More... | |
A handy class that can scrub over a scene graph and collect interesting statistics on it.
enum LodMode |
__init__ | ( | ) |
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.