Panda3D
 All Classes Functions Variables Enumerations
sceneGraphAnalyzer.I
00001 // Filename: sceneGraphAnalyzer.I
00002 // Created by:  drose (15Oct06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: SceneGraphAnalyzer::set_lod_mode
00018 //       Access: Published
00019 //  Description: Specifies the mode in which LODNodes are analyzed.
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE void SceneGraphAnalyzer::
00022 set_lod_mode(LodMode lod_mode) {
00023   _lod_mode = lod_mode;
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: SceneGraphAnalyzer::get_lod_mode
00028 //       Access: Published
00029 //  Description: Returns the mode in which LODNodes are analyzed.
00030 ////////////////////////////////////////////////////////////////////
00031 INLINE  SceneGraphAnalyzer::LodMode SceneGraphAnalyzer::
00032 get_lod_mode(LodMode lod_mode) const {
00033   return _lod_mode;
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: SceneGraphAnalyzer::get_num_nodes
00038 //       Access: Published
00039 //  Description: 
00040 ////////////////////////////////////////////////////////////////////
00041 int SceneGraphAnalyzer::
00042 get_num_nodes() const {
00043   return _num_nodes;
00044 }
00045 
00046 ////////////////////////////////////////////////////////////////////
00047 //     Function: SceneGraphAnalyzer::get_num_instances
00048 //       Access: Published
00049 //  Description: 
00050 ////////////////////////////////////////////////////////////////////
00051 int SceneGraphAnalyzer::
00052 get_num_instances() const {
00053   return _num_instances;
00054 }
00055 
00056 ////////////////////////////////////////////////////////////////////
00057 //     Function: SceneGraphAnalyzer::get_num_transforms
00058 //       Access: Published
00059 //  Description: 
00060 ////////////////////////////////////////////////////////////////////
00061 int SceneGraphAnalyzer::
00062 get_num_transforms() const {
00063   return _num_transforms;
00064 }
00065 
00066 ////////////////////////////////////////////////////////////////////
00067 //     Function: SceneGraphAnalyzer::get_num_nodes_with_attribs
00068 //       Access: Published
00069 //  Description: 
00070 ////////////////////////////////////////////////////////////////////
00071 int SceneGraphAnalyzer::
00072 get_num_nodes_with_attribs() const {
00073   return _num_nodes_with_attribs;
00074 }
00075 
00076 ////////////////////////////////////////////////////////////////////
00077 //     Function: SceneGraphAnalyzer::get_num_lod_nodes
00078 //       Access: Published
00079 //  Description: 
00080 ////////////////////////////////////////////////////////////////////
00081 int SceneGraphAnalyzer::
00082 get_num_lod_nodes() const {
00083   return _num_lod_nodes;
00084 }
00085 
00086 ////////////////////////////////////////////////////////////////////
00087 //     Function: SceneGraphAnalyzer::get_num_geom_nodes
00088 //       Access: Published
00089 //  Description: 
00090 ////////////////////////////////////////////////////////////////////
00091 int SceneGraphAnalyzer::
00092 get_num_geom_nodes() const {
00093   return _num_geom_nodes;
00094 }
00095 
00096 ////////////////////////////////////////////////////////////////////
00097 //     Function: SceneGraphAnalyzer::get_num_geoms
00098 //       Access: Published
00099 //  Description: 
00100 ////////////////////////////////////////////////////////////////////
00101 int SceneGraphAnalyzer::
00102 get_num_geoms() const {
00103   return _num_geoms;
00104 }
00105 
00106 ////////////////////////////////////////////////////////////////////
00107 //     Function: SceneGraphAnalyzer::get_num_geom_vertex_datas
00108 //       Access: Published
00109 //  Description: 
00110 ////////////////////////////////////////////////////////////////////
00111 int SceneGraphAnalyzer::
00112 get_num_geom_vertex_datas() const {
00113   return _num_geom_vertex_datas;
00114 }
00115 
00116 ////////////////////////////////////////////////////////////////////
00117 //     Function: SceneGraphAnalyzer::get_num_geom_vertex_formats
00118 //       Access: Published
00119 //  Description: 
00120 ////////////////////////////////////////////////////////////////////
00121 int SceneGraphAnalyzer::
00122 get_num_geom_vertex_formats() const {
00123   return _num_geom_vertex_formats;
00124 }
00125 
00126 ////////////////////////////////////////////////////////////////////
00127 //     Function: SceneGraphAnalyzer::get_vertex_data_size
00128 //       Access: Published
00129 //  Description: 
00130 ////////////////////////////////////////////////////////////////////
00131 int SceneGraphAnalyzer::
00132 get_vertex_data_size() const {
00133   return _vertex_data_size;
00134 }
00135 
00136 
00137 ////////////////////////////////////////////////////////////////////
00138 //     Function: SceneGraphAnalyzer::get_num_vertices
00139 //       Access: Published
00140 //  Description: 
00141 ////////////////////////////////////////////////////////////////////
00142 int SceneGraphAnalyzer::
00143 get_num_vertices() const {
00144   return _num_vertices;
00145 }
00146 
00147 ////////////////////////////////////////////////////////////////////
00148 //     Function: SceneGraphAnalyzer::get_num_normals
00149 //       Access: Published
00150 //  Description: 
00151 ////////////////////////////////////////////////////////////////////
00152 int SceneGraphAnalyzer::
00153 get_num_normals() const {
00154   return _num_normals;
00155 }
00156 
00157 ////////////////////////////////////////////////////////////////////
00158 //     Function: SceneGraphAnalyzer::get_num_colors
00159 //       Access: Published
00160 //  Description: 
00161 ////////////////////////////////////////////////////////////////////
00162 int SceneGraphAnalyzer::
00163 get_num_colors() const {
00164   return _num_colors;
00165 }
00166 
00167 ////////////////////////////////////////////////////////////////////
00168 //     Function: SceneGraphAnalyzer::get_num_texcoords
00169 //       Access: Published
00170 //  Description: 
00171 ////////////////////////////////////////////////////////////////////
00172 int SceneGraphAnalyzer::
00173 get_num_texcoords() const {
00174   return _num_texcoords;
00175 }
00176 
00177 ////////////////////////////////////////////////////////////////////
00178 //     Function: SceneGraphAnalyzer::get_num_tris
00179 //       Access: Published
00180 //  Description: 
00181 ////////////////////////////////////////////////////////////////////
00182 int SceneGraphAnalyzer::
00183 get_num_tris() const {
00184   return _num_tris;
00185 }
00186 
00187 ////////////////////////////////////////////////////////////////////
00188 //     Function: SceneGraphAnalyzer::get_num_lines
00189 //       Access: Published
00190 //  Description: 
00191 ////////////////////////////////////////////////////////////////////
00192 int SceneGraphAnalyzer::
00193 get_num_lines() const {
00194   return _num_lines;
00195 }
00196 
00197 ////////////////////////////////////////////////////////////////////
00198 //     Function: SceneGraphAnalyzer::get_num_points
00199 //       Access: Published
00200 //  Description: 
00201 ////////////////////////////////////////////////////////////////////
00202 int SceneGraphAnalyzer::
00203 get_num_points() const {
00204   return _num_points;
00205 }
00206 
00207 
00208 ////////////////////////////////////////////////////////////////////
00209 //     Function: SceneGraphAnalyzer::get_num_individual_tris
00210 //       Access: Published
00211 //  Description: 
00212 ////////////////////////////////////////////////////////////////////
00213 int SceneGraphAnalyzer::
00214 get_num_individual_tris() const {
00215   return _num_individual_tris;
00216 }
00217 
00218 ////////////////////////////////////////////////////////////////////
00219 //     Function: SceneGraphAnalyzer::get_num_tristrips
00220 //       Access: Published
00221 //  Description: 
00222 ////////////////////////////////////////////////////////////////////
00223 int SceneGraphAnalyzer::
00224 get_num_tristrips() const {
00225   return _num_tristrips;
00226 }
00227 
00228 ////////////////////////////////////////////////////////////////////
00229 //     Function: SceneGraphAnalyzer::get_num_triangles_in_strips
00230 //       Access: Published
00231 //  Description: 
00232 ////////////////////////////////////////////////////////////////////
00233 int SceneGraphAnalyzer::
00234 get_num_triangles_in_strips() const {
00235   return _num_triangles_in_strips;
00236 }
00237 
00238 ////////////////////////////////////////////////////////////////////
00239 //     Function: SceneGraphAnalyzer::get_num_trifans
00240 //       Access: Published
00241 //  Description: 
00242 ////////////////////////////////////////////////////////////////////
00243 int SceneGraphAnalyzer::
00244 get_num_trifans() const {
00245   return _num_trifans;
00246 }
00247 
00248 ////////////////////////////////////////////////////////////////////
00249 //     Function: SceneGraphAnalyzer::get_num_triangles_in_fans
00250 //       Access: Published
00251 //  Description: 
00252 ////////////////////////////////////////////////////////////////////
00253 int SceneGraphAnalyzer::
00254 get_num_triangles_in_fans() const {
00255   return _num_triangles_in_fans;
00256 }
00257 
00258 
00259 ////////////////////////////////////////////////////////////////////
00260 //     Function: SceneGraphAnalyzer::get_texture_bytes
00261 //       Access: Published
00262 //  Description: 
00263 ////////////////////////////////////////////////////////////////////
00264 int SceneGraphAnalyzer::
00265 get_texture_bytes() const {
00266   return _texture_bytes;
00267 }
00268 
00269 
00270 ////////////////////////////////////////////////////////////////////
00271 //     Function: SceneGraphAnalyzer::get_num_long_normals
00272 //       Access: Published
00273 //  Description: 
00274 ////////////////////////////////////////////////////////////////////
00275 int SceneGraphAnalyzer::
00276 get_num_long_normals() const {
00277   return _num_long_normals;
00278 }
00279 
00280 ////////////////////////////////////////////////////////////////////
00281 //     Function: SceneGraphAnalyzer::get_num_short_normals
00282 //       Access: Published
00283 //  Description: 
00284 ////////////////////////////////////////////////////////////////////
00285 int SceneGraphAnalyzer::
00286 get_num_short_normals() const {
00287   return _num_short_normals;
00288 }
00289 
00290 ////////////////////////////////////////////////////////////////////
00291 //     Function: SceneGraphAnalyzer::get_total_normal_length
00292 //       Access: Published
00293 //  Description: 
00294 ////////////////////////////////////////////////////////////////////
00295 PN_stdfloat SceneGraphAnalyzer::
00296 get_total_normal_length() const {
00297   return _total_normal_length;
00298 }
 All Classes Functions Variables Enumerations