SceneGraphAnalyzer

Inheritance:

Methods of SceneGraphAnalyzer:

Constants in SceneGraphAnalyzer:

SceneGraphAnalyzer
SceneGraphAnalyzer::SceneGraphAnalyzer(void);

Description:

addNode
void SceneGraphAnalyzer::add_node(PandaNode *node);

Description: 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
void SceneGraphAnalyzer::clear(void);

Description: Resets all of the data in the analyzer in preparation for a new run.

getLodMode
SceneGraphAnalyzer::LodMode SceneGraphAnalyzer::get_lod_mode(SceneGraphAnalyzer::LodMode lod_mode) const;

Description: Returns the mode in which LODNodes are analyzed.

getNumColors
int SceneGraphAnalyzer::get_num_colors(void) const;

Description:

getNumGeomNodes
int SceneGraphAnalyzer::get_num_geom_nodes(void) const;

Description:

getNumGeoms
int SceneGraphAnalyzer::get_num_geoms(void) const;

Description:

getNumGeomVertexDatas
int SceneGraphAnalyzer::get_num_geom_vertex_datas(void) const;

Description:

getNumGeomVertexFormats
int SceneGraphAnalyzer::get_num_geom_vertex_formats(void) const;

Description:

getNumIndividualTris
int SceneGraphAnalyzer::get_num_individual_tris(void) const;

Description:

getNumInstances
int SceneGraphAnalyzer::get_num_instances(void) const;

Description:

getNumLines
int SceneGraphAnalyzer::get_num_lines(void) const;

Description:

getNumLodNodes
int SceneGraphAnalyzer::get_num_lod_nodes(void) const;

Description:

getNumLongNormals
int SceneGraphAnalyzer::get_num_long_normals(void) const;

Description:

getNumNodes
int SceneGraphAnalyzer::get_num_nodes(void) const;

Description:

getNumNodesWithAttribs
int SceneGraphAnalyzer::get_num_nodes_with_attribs(void) const;

Description:

getNumNormals
int SceneGraphAnalyzer::get_num_normals(void) const;

Description:

getNumPoints
int SceneGraphAnalyzer::get_num_points(void) const;

Description:

getNumShortNormals
int SceneGraphAnalyzer::get_num_short_normals(void) const;

Description:

getNumTexcoords
int SceneGraphAnalyzer::get_num_texcoords(void) const;

Description:

getNumTransforms
int SceneGraphAnalyzer::get_num_transforms(void) const;

Description:

getNumTrianglesInFans
int SceneGraphAnalyzer::get_num_triangles_in_fans(void) const;

Description:

getNumTrianglesInStrips
int SceneGraphAnalyzer::get_num_triangles_in_strips(void) const;

Description:

getNumTrifans
int SceneGraphAnalyzer::get_num_trifans(void) const;

Description:

getNumTris
int SceneGraphAnalyzer::get_num_tris(void) const;

Description:

getNumTristrips
int SceneGraphAnalyzer::get_num_tristrips(void) const;

Description:

getNumVertices
int SceneGraphAnalyzer::get_num_vertices(void) const;

Description:

getTextureBytes
int SceneGraphAnalyzer::get_texture_bytes(void) const;

Description:

getTotalNormalLength
float SceneGraphAnalyzer::get_total_normal_length(void) const;

Description:

getVertexDataSize
int SceneGraphAnalyzer::get_vertex_data_size(void) const;

Description:

setLodMode
void SceneGraphAnalyzer::set_lod_mode(SceneGraphAnalyzer::LodMode lod_mode);

Description: Specifies the mode in which LODNodes are analyzed.

write
void SceneGraphAnalyzer::write(ostream &out, int indent_level = (0)) const;

Description: Describes all the data collected.