# SceneGraphAnalyzer

from pandac.PandaModules import SceneGraphAnalyzer

Class : SceneGraphAnalyzer
Description : A handy class that can scrub over a scene graph and collect interesting statistics on it.

## Inheritance:

SceneGraphAnalyzer:

## Methods of SceneGraphAnalyzer:

addNode
clear
getNumGeomNodes
getNumGeoms
getNumGeomVertexDatas
getNumIndividualTris
getNumInstances
getNumLines
getNumLongNormals
getNumNodes
getNumNodesWithAttribs
getNumNormals
getNumPoints
getNumShortNormals
getNumTexcoords
getNumTransforms
getNumTrianglesInFans
getNumTrianglesInStrips
getNumTrifans
getNumTris
getNumTristrips
getNumVertices
getTextureBytes
getTotalNormalLength
write

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.

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:

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:

getNumLongNormals int SceneGraphAnalyzer::get_num_long_normals(void) const; Description:

getNumNodes int SceneGraphAnalyzer::get_num_nodes(void) const; Filename: sceneGraphAnalyzer.I Created by: drose (15Oct06) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . 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:

write void SceneGraphAnalyzer::write(ostream &out, int indent_level = (0)) const; Description: Describes all the data collected.