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