Panda3D
fltOpcode.cxx
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 fltOpcode.cxx
10  * @author drose
11  * @date 2000-08-24
12  */
13 
14 #include "fltOpcode.h"
15 
16 std::ostream &
17 operator << (std::ostream &out, FltOpcode opcode) {
18  switch (opcode) {
19  case FO_none:
20  return out << "null opcode";
21 
22  case FO_header:
23  return out << "header";
24 
25  case FO_group:
26  return out << "group";
27 
28  case FO_OB_scale:
29  case FO_OB_scale2:
30  case FO_OB_scale3:
31  return out << "(obsolete) scale";
32 
33  case FO_object:
34  return out << "object";
35 
36  case FO_face:
37  return out << "face";
38 
39  case FO_OB_vertex_i:
40  return out << "(obsolete) vertex with ID";
41 
42  case FO_OB_short_vertex:
43  return out << "(obsolete) short vertex";
44 
45  case FO_OB_vertex_c:
46  return out << "(obsolete) vertex with color";
47 
48  case FO_OB_vertex_cn:
49  return out << "(obsolete) vertex with color and normal";
50 
51  case FO_push:
52  return out << "push";
53 
54  case FO_pop:
55  return out << "pop";
56 
57  case FO_OB_translate:
58  case FO_OB_translate2:
59  case FO_OB_translate3:
60  return out << "(obsolete) translate";
61 
62  case FO_OB_dof:
63  return out << "(obsolete) degree-of-freedom";
64 
65  case FO_dof:
66  return out << "degree-of-freedom";
67 
68  case FO_OB_instance_ref:
69  return out << "(obsolete) instance reference";
70 
71  case FO_OB_instance:
72  return out << "(obsolete) instance definition";
73 
74  case FO_push_face:
75  return out << "push subface";
76 
77  case FO_pop_face:
78  return out << "pop subface";
79 
80  case FO_push_extension:
81  return out << "push extension";
82 
83  case FO_pop_extension:
84  return out << "pop extension";
85 
86  case FO_continuation:
87  return out << "continuation";
88 
89  case FO_comment:
90  return out << "comment";
91 
92  case FO_color_palette:
93  return out << "color palette";
94 
95  case FO_long_id:
96  return out << "long ID";
97 
98  case FO_transform_matrix:
99  return out << "transformation matrix";
100 
101  case FO_OB_rotate_point:
102  case FO_OB_rotate_point2:
103  return out << "(obsolete) rotate about point";
104 
105  case FO_OB_rotate_edge:
106  return out << "(obsolete) rotate about edge";
107 
108  case FO_OB_nu_scale:
109  return out << "(obsolete) non-uniform scale";
110 
111  case FO_OB_rotate_to_point:
112  return out << "(obsolete) rotate to point";
113 
114  case FO_OB_put:
115  return out << "(obsolete) put";
116 
117  case FO_OB_bounding_box:
118  return out << "(obsolete) bounding box";
119 
120  case FO_vector:
121  return out << "vector";
122 
123  case FO_multitexture:
124  return out << "multitexture";
125 
126  case FO_uv_list:
127  return out << "UV list";
128 
129  case FO_bsp:
130  return out << "BSP";
131 
132  case FO_replicate:
133  return out << "replicate";
134 
135  case FO_instance_ref:
136  return out << "instance reference";
137 
138  case FO_instance:
139  return out << "instance definition";
140 
141  case FO_external_ref:
142  return out << "external reference";
143 
144  case FO_texture:
145  return out << "texture";
146 
147  case FO_OB_eyepoint_palette:
148  return out << "(obsolete) eyepoint palette";
149 
150  case FO_14_material_palette:
151  return out << "v14 material palette";
152 
153  case FO_vertex_palette:
154  return out << "vertex palette";
155 
156  case FO_vertex_c:
157  return out << "vertex with color";
158 
159  case FO_vertex_cn:
160  return out << "vertex with color and normal";
161 
162  case FO_vertex_cnu:
163  return out << "vertex with color, normal, and uv";
164 
165  case FO_vertex_cu:
166  return out << "vertex with color and uv";
167 
168  case FO_vertex_list:
169  return out << "vertex list";
170 
171  case FO_lod:
172  return out << "LOD";
173 
174  case FO_bounding_box:
175  return out << "bounding box";
176 
177  case FO_rotate_about_edge:
178  return out << "rotate about edge";
179 
180  case FO_translate:
181  return out << "translate";
182 
183  case FO_scale:
184  return out << "scale";
185 
186  case FO_rotate_about_point:
187  return out << "rotate about point";
188 
189  case FO_rotate_and_scale:
190  return out << "rotate and/or scale";
191 
192  case FO_put:
193  return out << "put";
194 
195  case FO_eyepoint_palette:
196  return out << "eyepoint palette";
197 
198  case FO_mesh:
199  return out << "mesh";
200 
201  case FO_local_vertex_pool:
202  return out << "local vertex pool";
203 
204  case FO_mesh_primitive:
205  return out << "mesh primitive";
206 
207  case FO_road_segment:
208  return out << "road segment";
209 
210  case FO_road_zone:
211  return out << "road zone";
212 
213  case FO_morph_list:
214  return out << "morph vertex list";
215 
216  case FO_behavior_palette:
217  return out << "behavior palette";
218 
219  case FO_sound:
220  return out << "sound";
221 
222  case FO_road_path:
223  return out << "road path";
224 
225  case FO_sound_palette:
226  return out << "sound palette";
227 
228  case FO_general_matrix:
229  return out << "general matrix";
230 
231  case FO_text:
232  return out << "text";
233 
234  case FO_switch:
235  return out << "switch";
236 
237  case FO_line_style:
238  return out << "line style";
239 
240  case FO_clip_region:
241  return out << "clip region";
242 
243  case FO_light_source:
244  return out << "light source";
245 
246  case FO_light_definition:
247  return out << "light source definition";
248 
249  case FO_bounding_sphere:
250  return out << "bounding sphere";
251 
252  case FO_bounding_cylinder:
253  return out << "bounding cylinder";
254 
255  case FO_bv_center:
256  return out << "bounding volume center";
257 
258  case FO_bv_orientation:
259  return out << "bounding volume orientation";
260 
261  case FO_light_point:
262  return out << "light point";
263 
264  case FO_texture_map_palette:
265  return out << "texture mapping palette";
266 
267  case FO_15_material:
268  return out << "material";
269 
270  case FO_name_table:
271  return out << "name table";
272 
273  case FO_cat:
274  return out << "continuously adaptive terrain";
275 
276  case FO_cat_data:
277  return out << "CAT Data";
278 
279  case FO_push_attribute:
280  return out << "push attribute";
281 
282  case FO_pop_attribute:
283  return out << "pop attribute";
284 
285  case FO_adaptive_attribute:
286  return out << "adaptive attribute";
287 
288  case FO_curve:
289  return out << "curve";
290 
291  case FO_road_construction:
292  return out << "road construction";
293 
294  default:
295  return out << "unknown opcode " << (int)opcode;
296  }
297 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.