Panda3D
 All Classes Functions Variables Enumerations
sceneGraphAnalyzer.I
1 // Filename: sceneGraphAnalyzer.I
2 // Created by: drose (15Oct06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: SceneGraphAnalyzer::set_lod_mode
18 // Access: Published
19 // Description: Specifies the mode in which LODNodes are analyzed.
20 ////////////////////////////////////////////////////////////////////
21 INLINE void SceneGraphAnalyzer::
22 set_lod_mode(LodMode lod_mode) {
23  _lod_mode = lod_mode;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: SceneGraphAnalyzer::get_lod_mode
28 // Access: Published
29 // Description: Returns the mode in which LODNodes are analyzed.
30 ////////////////////////////////////////////////////////////////////
31 INLINE SceneGraphAnalyzer::LodMode SceneGraphAnalyzer::
32 get_lod_mode(LodMode lod_mode) const {
33  return _lod_mode;
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: SceneGraphAnalyzer::get_num_nodes
38 // Access: Published
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 int SceneGraphAnalyzer::
42 get_num_nodes() const {
43  return _num_nodes;
44 }
45 
46 ////////////////////////////////////////////////////////////////////
47 // Function: SceneGraphAnalyzer::get_num_instances
48 // Access: Published
49 // Description:
50 ////////////////////////////////////////////////////////////////////
51 int SceneGraphAnalyzer::
52 get_num_instances() const {
53  return _num_instances;
54 }
55 
56 ////////////////////////////////////////////////////////////////////
57 // Function: SceneGraphAnalyzer::get_num_transforms
58 // Access: Published
59 // Description:
60 ////////////////////////////////////////////////////////////////////
61 int SceneGraphAnalyzer::
62 get_num_transforms() const {
63  return _num_transforms;
64 }
65 
66 ////////////////////////////////////////////////////////////////////
67 // Function: SceneGraphAnalyzer::get_num_nodes_with_attribs
68 // Access: Published
69 // Description:
70 ////////////////////////////////////////////////////////////////////
71 int SceneGraphAnalyzer::
72 get_num_nodes_with_attribs() const {
73  return _num_nodes_with_attribs;
74 }
75 
76 ////////////////////////////////////////////////////////////////////
77 // Function: SceneGraphAnalyzer::get_num_lod_nodes
78 // Access: Published
79 // Description:
80 ////////////////////////////////////////////////////////////////////
81 int SceneGraphAnalyzer::
82 get_num_lod_nodes() const {
83  return _num_lod_nodes;
84 }
85 
86 ////////////////////////////////////////////////////////////////////
87 // Function: SceneGraphAnalyzer::get_num_geom_nodes
88 // Access: Published
89 // Description:
90 ////////////////////////////////////////////////////////////////////
91 int SceneGraphAnalyzer::
92 get_num_geom_nodes() const {
93  return _num_geom_nodes;
94 }
95 
96 ////////////////////////////////////////////////////////////////////
97 // Function: SceneGraphAnalyzer::get_num_geoms
98 // Access: Published
99 // Description:
100 ////////////////////////////////////////////////////////////////////
101 int SceneGraphAnalyzer::
102 get_num_geoms() const {
103  return _num_geoms;
104 }
105 
106 ////////////////////////////////////////////////////////////////////
107 // Function: SceneGraphAnalyzer::get_num_geom_vertex_datas
108 // Access: Published
109 // Description:
110 ////////////////////////////////////////////////////////////////////
111 int SceneGraphAnalyzer::
112 get_num_geom_vertex_datas() const {
113  return _num_geom_vertex_datas;
114 }
115 
116 ////////////////////////////////////////////////////////////////////
117 // Function: SceneGraphAnalyzer::get_num_geom_vertex_formats
118 // Access: Published
119 // Description:
120 ////////////////////////////////////////////////////////////////////
121 int SceneGraphAnalyzer::
122 get_num_geom_vertex_formats() const {
123  return _num_geom_vertex_formats;
124 }
125 
126 ////////////////////////////////////////////////////////////////////
127 // Function: SceneGraphAnalyzer::get_vertex_data_size
128 // Access: Published
129 // Description:
130 ////////////////////////////////////////////////////////////////////
131 int SceneGraphAnalyzer::
132 get_vertex_data_size() const {
133  return _vertex_data_size;
134 }
135 
136 
137 ////////////////////////////////////////////////////////////////////
138 // Function: SceneGraphAnalyzer::get_num_vertices
139 // Access: Published
140 // Description:
141 ////////////////////////////////////////////////////////////////////
142 int SceneGraphAnalyzer::
143 get_num_vertices() const {
144  return _num_vertices;
145 }
146 
147 ////////////////////////////////////////////////////////////////////
148 // Function: SceneGraphAnalyzer::get_num_normals
149 // Access: Published
150 // Description:
151 ////////////////////////////////////////////////////////////////////
152 int SceneGraphAnalyzer::
153 get_num_normals() const {
154  return _num_normals;
155 }
156 
157 ////////////////////////////////////////////////////////////////////
158 // Function: SceneGraphAnalyzer::get_num_colors
159 // Access: Published
160 // Description:
161 ////////////////////////////////////////////////////////////////////
162 int SceneGraphAnalyzer::
163 get_num_colors() const {
164  return _num_colors;
165 }
166 
167 ////////////////////////////////////////////////////////////////////
168 // Function: SceneGraphAnalyzer::get_num_texcoords
169 // Access: Published
170 // Description:
171 ////////////////////////////////////////////////////////////////////
172 int SceneGraphAnalyzer::
173 get_num_texcoords() const {
174  return _num_texcoords;
175 }
176 
177 ////////////////////////////////////////////////////////////////////
178 // Function: SceneGraphAnalyzer::get_num_tris
179 // Access: Published
180 // Description:
181 ////////////////////////////////////////////////////////////////////
182 int SceneGraphAnalyzer::
183 get_num_tris() const {
184  return _num_tris;
185 }
186 
187 ////////////////////////////////////////////////////////////////////
188 // Function: SceneGraphAnalyzer::get_num_lines
189 // Access: Published
190 // Description:
191 ////////////////////////////////////////////////////////////////////
192 int SceneGraphAnalyzer::
193 get_num_lines() const {
194  return _num_lines;
195 }
196 
197 ////////////////////////////////////////////////////////////////////
198 // Function: SceneGraphAnalyzer::get_num_points
199 // Access: Published
200 // Description:
201 ////////////////////////////////////////////////////////////////////
202 int SceneGraphAnalyzer::
203 get_num_points() const {
204  return _num_points;
205 }
206 
207 ////////////////////////////////////////////////////////////////////
208 // Function: SceneGraphAnalyzer::get_num_patches
209 // Access: Published
210 // Description:
211 ////////////////////////////////////////////////////////////////////
212 int SceneGraphAnalyzer::
213 get_num_patches() const {
214  return _num_patches;
215 }
216 
217 
218 ////////////////////////////////////////////////////////////////////
219 // Function: SceneGraphAnalyzer::get_num_individual_tris
220 // Access: Published
221 // Description:
222 ////////////////////////////////////////////////////////////////////
223 int SceneGraphAnalyzer::
224 get_num_individual_tris() const {
225  return _num_individual_tris;
226 }
227 
228 ////////////////////////////////////////////////////////////////////
229 // Function: SceneGraphAnalyzer::get_num_tristrips
230 // Access: Published
231 // Description:
232 ////////////////////////////////////////////////////////////////////
233 int SceneGraphAnalyzer::
234 get_num_tristrips() const {
235  return _num_tristrips;
236 }
237 
238 ////////////////////////////////////////////////////////////////////
239 // Function: SceneGraphAnalyzer::get_num_triangles_in_strips
240 // Access: Published
241 // Description:
242 ////////////////////////////////////////////////////////////////////
243 int SceneGraphAnalyzer::
244 get_num_triangles_in_strips() const {
245  return _num_triangles_in_strips;
246 }
247 
248 ////////////////////////////////////////////////////////////////////
249 // Function: SceneGraphAnalyzer::get_num_trifans
250 // Access: Published
251 // Description:
252 ////////////////////////////////////////////////////////////////////
253 int SceneGraphAnalyzer::
254 get_num_trifans() const {
255  return _num_trifans;
256 }
257 
258 ////////////////////////////////////////////////////////////////////
259 // Function: SceneGraphAnalyzer::get_num_triangles_in_fans
260 // Access: Published
261 // Description:
262 ////////////////////////////////////////////////////////////////////
263 int SceneGraphAnalyzer::
264 get_num_triangles_in_fans() const {
265  return _num_triangles_in_fans;
266 }
267 
268 ////////////////////////////////////////////////////////////////////
269 // Function: SceneGraphAnalyzer::get_num_vertices_in_patches
270 // Access: Published
271 // Description:
272 ////////////////////////////////////////////////////////////////////
273 int SceneGraphAnalyzer::
274 get_num_vertices_in_patches() const {
275  return _num_vertices_in_patches;
276 }
277 
278 
279 ////////////////////////////////////////////////////////////////////
280 // Function: SceneGraphAnalyzer::get_texture_bytes
281 // Access: Published
282 // Description:
283 ////////////////////////////////////////////////////////////////////
284 int SceneGraphAnalyzer::
285 get_texture_bytes() const {
286  return _texture_bytes;
287 }
288 
289 
290 ////////////////////////////////////////////////////////////////////
291 // Function: SceneGraphAnalyzer::get_num_long_normals
292 // Access: Published
293 // Description:
294 ////////////////////////////////////////////////////////////////////
295 int SceneGraphAnalyzer::
296 get_num_long_normals() const {
297  return _num_long_normals;
298 }
299 
300 ////////////////////////////////////////////////////////////////////
301 // Function: SceneGraphAnalyzer::get_num_short_normals
302 // Access: Published
303 // Description:
304 ////////////////////////////////////////////////////////////////////
305 int SceneGraphAnalyzer::
306 get_num_short_normals() const {
307  return _num_short_normals;
308 }
309 
310 ////////////////////////////////////////////////////////////////////
311 // Function: SceneGraphAnalyzer::get_total_normal_length
312 // Access: Published
313 // Description:
314 ////////////////////////////////////////////////////////////////////
315 PN_stdfloat SceneGraphAnalyzer::
316 get_total_normal_length() const {
317  return _total_normal_length;
318 }
void set_lod_mode(LodMode lod_mode)
Specifies the mode in which LODNodes are analyzed.
LodMode get_lod_mode(LodMode lod_mode) const
Returns the mode in which LODNodes are analyzed.