4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
29 const ::google::protobuf::Descriptor *data_descriptor_ = NULL;
30 const ::google::protobuf::internal::GeneratedMessageReflection *
31 data_reflection_ = NULL;
32 const ::google::protobuf::Descriptor *data_vector_descriptor_ = NULL;
33 const ::google::protobuf::internal::GeneratedMessageReflection *
34 data_vector_reflection_ = NULL;
35 const ::google::protobuf::Descriptor *data_camera_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection *
37 data_camera_reflection_ = NULL;
38 const ::google::protobuf::Descriptor *data_light_descriptor_ = NULL;
39 const ::google::protobuf::internal::GeneratedMessageReflection *
40 data_light_reflection_ = NULL;
41 const ::google::protobuf::Descriptor *data_material_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection *
43 data_material_reflection_ = NULL;
44 const ::google::protobuf::Descriptor *data_mesh_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection *
46 data_mesh_reflection_ = NULL;
47 const ::google::protobuf::Descriptor *data_pose_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection *
49 data_pose_reflection_ = NULL;
50 const ::google::protobuf::Descriptor *data_texture_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection *
52 data_texture_reflection_ = NULL;
53 const ::google::protobuf::Descriptor *data_scenegraph_descriptor_ = NULL;
54 const ::google::protobuf::internal::GeneratedMessageReflection *
55 data_scenegraph_reflection_ = NULL;
56 const ::google::protobuf::Descriptor *data_scenegraph_attribs_tuple_descriptor_ = NULL;
57 const ::google::protobuf::internal::GeneratedMessageReflection *
58 data_scenegraph_attribs_tuple_reflection_ = NULL;
59 const ::google::protobuf::Descriptor *data_beziercurve_descriptor_ = NULL;
60 const ::google::protobuf::internal::GeneratedMessageReflection *
61 data_beziercurve_reflection_ = NULL;
62 const ::google::protobuf::Descriptor *data_bezierpatch_descriptor_ = NULL;
63 const ::google::protobuf::internal::GeneratedMessageReflection *
64 data_bezierpatch_reflection_ = NULL;
65 const ::google::protobuf::Descriptor *data_nurbscurve_descriptor_ = NULL;
66 const ::google::protobuf::internal::GeneratedMessageReflection *
67 data_nurbscurve_reflection_ = NULL;
68 const ::google::protobuf::Descriptor *data_nurbspatch_descriptor_ = NULL;
69 const ::google::protobuf::internal::GeneratedMessageReflection *
70 data_nurbspatch_reflection_ = NULL;
71 const ::google::protobuf::EnumDescriptor *normal_e_descriptor_ = NULL;
72 const ::google::protobuf::EnumDescriptor *texture_filtering_e_descriptor_ = NULL;
77 void protobuf_AssignDesc_mbd_2eproto()
79 protobuf_AddDesc_mbd_2eproto();
80 const ::google::protobuf::FileDescriptor *file =
81 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
83 GOOGLE_CHECK(file != NULL);
84 data_descriptor_ = file->message_type(0);
85 static const int data_offsets_[12] =
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, name_),
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, cameras_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, lights_),
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, materials_),
91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, meshes_),
92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, poses_),
93 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, textures_),
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, beziercurves_),
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, nurbscurves_),
96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, bezierpatches_),
97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, nurbspatches_),
98 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, scenegraphs_),
101 new ::google::protobuf::internal::GeneratedMessageReflection(
103 data::default_instance_,
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, _has_bits_[0]),
106 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, _unknown_fields_),
108 ::google::protobuf::DescriptorPool::generated_pool(),
109 ::google::protobuf::MessageFactory::generated_factory(),
111 data_vector_descriptor_ = data_descriptor_->nested_type(0);
112 static const int data_vector_offsets_[4] =
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, x_),
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, y_),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, z_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, w_),
119 data_vector_reflection_ =
120 new ::google::protobuf::internal::GeneratedMessageReflection(
121 data_vector_descriptor_,
122 data_vector::default_instance_,
123 data_vector_offsets_,
124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, _has_bits_[0]),
125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, _unknown_fields_),
127 ::google::protobuf::DescriptorPool::generated_pool(),
128 ::google::protobuf::MessageFactory::generated_factory(),
129 sizeof(data_vector));
130 data_camera_descriptor_ = data_descriptor_->nested_type(1);
131 static const int data_camera_offsets_[9] =
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, name_),
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, fovy_),
135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, aspect_),
136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, near_),
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, far_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, x_),
139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, y_),
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, w_),
141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, h_),
143 data_camera_reflection_ =
144 new ::google::protobuf::internal::GeneratedMessageReflection(
145 data_camera_descriptor_,
146 data_camera::default_instance_,
147 data_camera_offsets_,
148 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, _has_bits_[0]),
149 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, _unknown_fields_),
151 ::google::protobuf::DescriptorPool::generated_pool(),
152 ::google::protobuf::MessageFactory::generated_factory(),
153 sizeof(data_camera));
154 data_light_descriptor_ = data_descriptor_->nested_type(2);
155 static const int data_light_offsets_[12] =
157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, name_),
158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, ambient_),
159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, diffuse_),
160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, specular_),
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, position_),
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, direction_),
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, exponent_),
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, cutoff_),
165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, const_att_),
166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, lin_att_),
167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, quad_att_),
168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, light_nr_),
170 data_light_reflection_ =
171 new ::google::protobuf::internal::GeneratedMessageReflection(
172 data_light_descriptor_,
173 data_light::default_instance_,
175 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, _has_bits_[0]),
176 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, _unknown_fields_),
178 ::google::protobuf::DescriptorPool::generated_pool(),
179 ::google::protobuf::MessageFactory::generated_factory(),
181 data_material_descriptor_ = data_descriptor_->nested_type(3);
182 static const int data_material_offsets_[6] =
184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, name_),
185 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, ambient_),
186 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, diffuse_),
187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, specular_),
188 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, emission_),
189 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, shininess_),
191 data_material_reflection_ =
192 new ::google::protobuf::internal::GeneratedMessageReflection(
193 data_material_descriptor_,
194 data_material::default_instance_,
195 data_material_offsets_,
196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, _has_bits_[0]),
197 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, _unknown_fields_),
199 ::google::protobuf::DescriptorPool::generated_pool(),
200 ::google::protobuf::MessageFactory::generated_factory(),
201 sizeof(data_material));
202 data_mesh_descriptor_ = data_descriptor_->nested_type(4);
203 static const int data_mesh_offsets_[5] =
205 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, name_),
206 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, v_),
207 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vn_),
208 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vt_),
209 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vc_),
211 data_mesh_reflection_ =
212 new ::google::protobuf::internal::GeneratedMessageReflection(
213 data_mesh_descriptor_,
214 data_mesh::default_instance_,
216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, _has_bits_[0]),
217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, _unknown_fields_),
219 ::google::protobuf::DescriptorPool::generated_pool(),
220 ::google::protobuf::MessageFactory::generated_factory(),
222 data_pose_descriptor_ = data_descriptor_->nested_type(5);
223 static const int data_pose_offsets_[5] =
225 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, name_),
226 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c1_),
227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c2_),
228 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c3_),
229 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c4_),
231 data_pose_reflection_ =
232 new ::google::protobuf::internal::GeneratedMessageReflection(
233 data_pose_descriptor_,
234 data_pose::default_instance_,
236 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, _has_bits_[0]),
237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, _unknown_fields_),
239 ::google::protobuf::DescriptorPool::generated_pool(),
240 ::google::protobuf::MessageFactory::generated_factory(),
242 data_texture_descriptor_ = data_descriptor_->nested_type(6);
243 static const int data_texture_offsets_[6] =
245 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, name_),
246 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, unit_),
247 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, texture_filter_),
248 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, anisotropic_filter_),
249 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, image_),
250 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, format_),
252 data_texture_reflection_ =
253 new ::google::protobuf::internal::GeneratedMessageReflection(
254 data_texture_descriptor_,
255 data_texture::default_instance_,
256 data_texture_offsets_,
257 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, _has_bits_[0]),
258 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, _unknown_fields_),
260 ::google::protobuf::DescriptorPool::generated_pool(),
261 ::google::protobuf::MessageFactory::generated_factory(),
262 sizeof(data_texture));
263 data_scenegraph_descriptor_ = data_descriptor_->nested_type(7);
264 static const int data_scenegraph_offsets_[3] =
266 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, name_),
267 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, nodes_),
268 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, edges_),
270 data_scenegraph_reflection_ =
271 new ::google::protobuf::internal::GeneratedMessageReflection(
272 data_scenegraph_descriptor_,
273 data_scenegraph::default_instance_,
274 data_scenegraph_offsets_,
275 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, _has_bits_[0]),
276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, _unknown_fields_),
278 ::google::protobuf::DescriptorPool::generated_pool(),
279 ::google::protobuf::MessageFactory::generated_factory(),
280 sizeof(data_scenegraph));
281 data_scenegraph_attribs_tuple_descriptor_ = data_scenegraph_descriptor_->nested_type(0);
282 static const int data_scenegraph_attribs_tuple_offsets_[2] =
284 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, src_),
285 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, dst_),
287 data_scenegraph_attribs_tuple_reflection_ =
288 new ::google::protobuf::internal::GeneratedMessageReflection(
289 data_scenegraph_attribs_tuple_descriptor_,
290 data_scenegraph_attribs_tuple::default_instance_,
291 data_scenegraph_attribs_tuple_offsets_,
292 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, _has_bits_[0]),
293 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, _unknown_fields_),
295 ::google::protobuf::DescriptorPool::generated_pool(),
296 ::google::protobuf::MessageFactory::generated_factory(),
297 sizeof(data_scenegraph_attribs_tuple));
298 data_beziercurve_descriptor_ = data_descriptor_->nested_type(8);
299 static const int data_beziercurve_offsets_[3] =
301 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, name_),
302 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, points_),
303 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, normals_),
305 data_beziercurve_reflection_ =
306 new ::google::protobuf::internal::GeneratedMessageReflection(
307 data_beziercurve_descriptor_,
308 data_beziercurve::default_instance_,
309 data_beziercurve_offsets_,
310 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, _has_bits_[0]),
311 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, _unknown_fields_),
313 ::google::protobuf::DescriptorPool::generated_pool(),
314 ::google::protobuf::MessageFactory::generated_factory(),
315 sizeof(data_beziercurve));
316 data_bezierpatch_descriptor_ = data_descriptor_->nested_type(9);
317 static const int data_bezierpatch_offsets_[3] =
319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, name_),
320 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, curves_),
321 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, normals_),
323 data_bezierpatch_reflection_ =
324 new ::google::protobuf::internal::GeneratedMessageReflection(
325 data_bezierpatch_descriptor_,
326 data_bezierpatch::default_instance_,
327 data_bezierpatch_offsets_,
328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, _has_bits_[0]),
329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, _unknown_fields_),
331 ::google::protobuf::DescriptorPool::generated_pool(),
332 ::google::protobuf::MessageFactory::generated_factory(),
333 sizeof(data_bezierpatch));
334 data_nurbscurve_descriptor_ = data_descriptor_->nested_type(10);
335 static const int data_nurbscurve_offsets_[4] =
337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, name_),
338 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, dimension_),
339 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, points_),
340 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, normals_),
342 data_nurbscurve_reflection_ =
343 new ::google::protobuf::internal::GeneratedMessageReflection(
344 data_nurbscurve_descriptor_,
345 data_nurbscurve::default_instance_,
346 data_nurbscurve_offsets_,
347 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, _has_bits_[0]),
348 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, _unknown_fields_),
350 ::google::protobuf::DescriptorPool::generated_pool(),
351 ::google::protobuf::MessageFactory::generated_factory(),
352 sizeof(data_nurbscurve));
353 data_nurbspatch_descriptor_ = data_descriptor_->nested_type(11);
354 static const int data_nurbspatch_offsets_[4] =
356 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, name_),
357 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, dimension_),
358 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, curves_),
359 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, normals_),
361 data_nurbspatch_reflection_ =
362 new ::google::protobuf::internal::GeneratedMessageReflection(
363 data_nurbspatch_descriptor_,
364 data_nurbspatch::default_instance_,
365 data_nurbspatch_offsets_,
366 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, _has_bits_[0]),
367 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, _unknown_fields_),
369 ::google::protobuf::DescriptorPool::generated_pool(),
370 ::google::protobuf::MessageFactory::generated_factory(),
371 sizeof(data_nurbspatch));
372 normal_e_descriptor_ = file->enum_type(0);
373 texture_filtering_e_descriptor_ = file->enum_type(1);
379 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
380 inline void protobuf_AssignDescriptorsOnce()
382 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
383 &protobuf_AssignDesc_mbd_2eproto);
386 void protobuf_RegisterTypes(const ::std::string &)
388 protobuf_AssignDescriptorsOnce();
389 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
390 data_descriptor_, &data::default_instance());
391 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
392 data_vector_descriptor_, &data_vector::default_instance());
393 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
394 data_camera_descriptor_, &data_camera::default_instance());
395 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
396 data_light_descriptor_, &data_light::default_instance());
397 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
398 data_material_descriptor_, &data_material::default_instance());
399 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
400 data_mesh_descriptor_, &data_mesh::default_instance());
401 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
402 data_pose_descriptor_, &data_pose::default_instance());
403 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
404 data_texture_descriptor_, &data_texture::default_instance());
405 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
406 data_scenegraph_descriptor_, &data_scenegraph::default_instance());
407 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
408 data_scenegraph_attribs_tuple_descriptor_, &data_scenegraph_attribs_tuple::default_instance());
409 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
410 data_beziercurve_descriptor_, &data_beziercurve::default_instance());
411 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
412 data_bezierpatch_descriptor_, &data_bezierpatch::default_instance());
413 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
414 data_nurbscurve_descriptor_, &data_nurbscurve::default_instance());
415 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
416 data_nurbspatch_descriptor_, &data_nurbspatch::default_instance());
421 void protobuf_ShutdownFile_mbd_2eproto()
423 delete data::default_instance_;
424 delete data_reflection_;
425 delete data_vector::default_instance_;
426 delete data_vector_reflection_;
427 delete data_camera::default_instance_;
428 delete data_camera_reflection_;
429 delete data_light::default_instance_;
430 delete data_light_reflection_;
431 delete data_material::default_instance_;
432 delete data_material_reflection_;
433 delete data_mesh::default_instance_;
434 delete data_mesh_reflection_;
435 delete data_pose::default_instance_;
436 delete data_pose_reflection_;
437 delete data_texture::default_instance_;
438 delete data_texture_reflection_;
439 delete data_scenegraph::default_instance_;
440 delete data_scenegraph_reflection_;
441 delete data_scenegraph_attribs_tuple::default_instance_;
442 delete data_scenegraph_attribs_tuple_reflection_;
443 delete data_beziercurve::default_instance_;
444 delete data_beziercurve_reflection_;
445 delete data_bezierpatch::default_instance_;
446 delete data_bezierpatch_reflection_;
447 delete data_nurbscurve::default_instance_;
448 delete data_nurbscurve_reflection_;
449 delete data_nurbspatch::default_instance_;
450 delete data_nurbspatch_reflection_;
453 void protobuf_AddDesc_mbd_2eproto()
455 static bool already_here =
false;
456 if (already_here)
return;
458 GOOGLE_PROTOBUF_VERIFY_VERSION;
460 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
461 "\n\tmbd.proto\022\021mondschein.io.mbd\"\373\024\n\004data\022"
462 "\014\n\004name\030\001 \002(\t\022/\n\007cameras\030\002 \003(\0132\036.mondsch"
463 "ein.io.mbd.data.camera\022-\n\006lights\030\003 \003(\0132\035"
464 ".mondschein.io.mbd.data.light\0223\n\tmateria"
465 "ls\030\004 \003(\0132 .mondschein.io.mbd.data.materi"
466 "al\022,\n\006meshes\030\005 \003(\0132\034.mondschein.io.mbd.d"
467 "ata.mesh\022+\n\005poses\030\006 \003(\0132\034.mondschein.io."
468 "mbd.data.pose\0221\n\010textures\030\007 \003(\0132\037.mondsc"
469 "hein.io.mbd.data.texture\0229\n\014beziercurves"
470 "\030\010 \003(\0132#.mondschein.io.mbd.data.beziercu"
471 "rve\0227\n\013nurbscurves\030\t \003(\0132\".mondschein.io"
472 ".mbd.data.nurbscurve\022:\n\rbezierpatches\030\n "
473 "\003(\0132#.mondschein.io.mbd.data.bezierpatch"
474 "\0228\n\014nurbspatches\030\013 \003(\0132\".mondschein.io.m"
475 "bd.data.nurbspatch\0227\n\013scenegraphs\030\014 \003(\0132"
476 "\".mondschein.io.mbd.data.scenegraph\032@\n\006v"
477 "ector\022\014\n\001x\030\001 \002(\001:\0010\022\014\n\001y\030\002 \002(\001:\0010\022\014\n\001z\030\003"
478 " \001(\001:\0010\022\014\n\001w\030\004 \001(\001:\0011\032\232\001\n\006camera\022\014\n\004name"
479 "\030\001 \002(\t\022\024\n\004fovy\030\002 \002(\001:\0061.0472\022\021\n\006aspect\030\003"
480 " \002(\001:\0010\022\017\n\004near\030\004 \002(\001:\0011\022\020\n\003far\030\005 \002(\001:\0031"
481 "00\022\014\n\001x\030\006 \002(\r:\0010\022\014\n\001y\030\007 \002(\r:\0010\022\014\n\001w\030\010 \002("
482 "\r:\0010\022\014\n\001h\030\t \002(\r:\0010\032\370\002\n\005light\022\014\n\004name\030\001 \002"
483 "(\t\022/\n\007ambient\030\002 \002(\0132\036.mondschein.io.mbd."
484 "data.vector\022/\n\007diffuse\030\003 \002(\0132\036.mondschei"
485 "n.io.mbd.data.vector\0220\n\010specular\030\004 \002(\0132\036"
486 ".mondschein.io.mbd.data.vector\0220\n\010positi"
487 "on\030\005 \002(\0132\036.mondschein.io.mbd.data.vector"
488 "\0221\n\tdirection\030\006 \002(\0132\036.mondschein.io.mbd."
489 "data.vector\022\020\n\010exponent\030\007 \002(\001\022\016\n\006cutoff\030"
490 "\010 \002(\001\022\021\n\tconst_att\030\t \002(\001\022\017\n\007lin_att\030\n \002("
491 "\001\022\020\n\010quad_att\030\013 \002(\001\022\020\n\010light_nr\030\014 \002(\r\032\361\001"
492 "\n\010material\022\014\n\004name\030\001 \002(\t\022/\n\007ambient\030\002 \002("
493 "\0132\036.mondschein.io.mbd.data.vector\022/\n\007dif"
494 "fuse\030\003 \002(\0132\036.mondschein.io.mbd.data.vect"
495 "or\0220\n\010specular\030\004 \002(\0132\036.mondschein.io.mbd"
496 ".data.vector\0220\n\010emission\030\005 \002(\0132\036.mondsch"
497 "ein.io.mbd.data.vector\022\021\n\tshininess\030\006 \002("
498 "\001\032\303\001\n\004mesh\022\014\n\004name\030\001 \002(\t\022)\n\001v\030\002 \003(\0132\036.mo"
499 "ndschein.io.mbd.data.vector\022*\n\002vn\030\003 \003(\0132"
500 "\036.mondschein.io.mbd.data.vector\022*\n\002vt\030\004 "
501 "\003(\0132\036.mondschein.io.mbd.data.vector\022*\n\002v"
502 "c\030\005 \003(\0132\036.mondschein.io.mbd.data.vector\032"
503 "\304\001\n\004pose\022\014\n\004name\030\001 \002(\t\022*\n\002c1\030\002 \002(\0132\036.mon"
504 "dschein.io.mbd.data.vector\022*\n\002c2\030\003 \002(\0132\036"
505 ".mondschein.io.mbd.data.vector\022*\n\002c3\030\004 \002"
506 "(\0132\036.mondschein.io.mbd.data.vector\022*\n\002c4"
507 "\030\005 \002(\0132\036.mondschein.io.mbd.data.vector\032\240"
508 "\001\n\007texture\022\014\n\004name\030\001 \002(\t\022\014\n\004unit\030\002 \002(\r\022>"
509 "\n\016texture_filter\030\003 \002(\0162&.mondschein.io.m"
510 "bd.texture_filtering_e\022\032\n\022anisotropic_fi"
511 "lter\030\004 \002(\r\022\r\n\005image\030\005 \002(\t\022\016\n\006format\030\006 \001("
512 "\t\032\205\001\n\nscenegraph\022\014\n\004name\030\001 \002(\t\022\r\n\005nodes\030"
513 "\002 \003(\t\0227\n\005edges\030\003 \003(\0132(.mondschein.io.mbd"
514 ".data.scenegraph.tuple\032!\n\005tuple\022\013\n\003src\030\001"
515 " \002(\r\022\013\n\003dst\030\002 \002(\r\032y\n\013beziercurve\022\014\n\004name"
516 "\030\001 \002(\t\022.\n\006points\030\002 \003(\0132\036.mondschein.io.m"
517 "bd.data.vector\022,\n\007normals\030\003 \001(\0162\033.mondsc"
518 "hein.io.mbd.normal_e\032~\n\013bezierpatch\022\014\n\004n"
519 "ame\030\001 \002(\t\0223\n\006curves\030\002 \003(\0132#.mondschein.i"
520 "o.mbd.data.beziercurve\022,\n\007normals\030\003 \001(\0162"
521 "\033.mondschein.io.mbd.normal_e\032\213\001\n\nnurbscu"
522 "rve\022\014\n\004name\030\001 \002(\t\022\021\n\tdimension\030\002 \002(\r\022.\n\006"
523 "points\030\003 \003(\0132\036.mondschein.io.mbd.data.ve"
524 "ctor\022,\n\007normals\030\004 \001(\0162\033.mondschein.io.mb"
525 "d.normal_e\032\217\001\n\nnurbspatch\022\014\n\004name\030\001 \002(\t\022"
526 "\021\n\tdimension\030\002 \002(\r\0222\n\006curves\030\003 \003(\0132\".mon"
527 "dschein.io.mbd.data.nurbscurve\022,\n\007normal"
528 "s\030\004 \001(\0162\033.mondschein.io.mbd.normal_e*J\n\010"
529 "normal_e\022\010\n\004FLAT\020\000\022\014\n\010FLAT_INV\020\001\022\020\n\014INTE"
530 "RMEDIATE\020\002\022\024\n\020INTERMEDIATE_INV\020\003*\201\001\n\023tex"
531 "ture_filtering_e\022\007\n\003ONN\020\000\022\007\n\003ONL\020\001\022\007\n\003OL"
532 "N\020\002\022\007\n\003OLL\020\003\022\007\n\003NNN\020\004\022\007\n\003NNL\020\005\022\007\n\003NLN\020\006\022"
533 "\007\n\003NLL\020\007\022\007\n\003LNN\020\010\022\007\n\003LNL\020\t\022\007\n\003LLN\020\n\022\007\n\003L"
535 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
536 "mbd.proto", &protobuf_RegisterTypes);
537 data::default_instance_ =
new data();
538 data_vector::default_instance_ =
new data_vector();
539 data_camera::default_instance_ =
new data_camera();
540 data_light::default_instance_ =
new data_light();
541 data_material::default_instance_ =
new data_material();
542 data_mesh::default_instance_ =
new data_mesh();
543 data_pose::default_instance_ =
new data_pose();
544 data_texture::default_instance_ =
new data_texture();
545 data_scenegraph::default_instance_ =
new data_scenegraph();
546 data_scenegraph_attribs_tuple::default_instance_ =
new data_scenegraph_attribs_tuple();
547 data_beziercurve::default_instance_ =
new data_beziercurve();
548 data_bezierpatch::default_instance_ =
new data_bezierpatch();
549 data_nurbscurve::default_instance_ =
new data_nurbscurve();
550 data_nurbspatch::default_instance_ =
new data_nurbspatch();
551 data::default_instance_->InitAsDefaultInstance();
552 data_vector::default_instance_->InitAsDefaultInstance();
553 data_camera::default_instance_->InitAsDefaultInstance();
554 data_light::default_instance_->InitAsDefaultInstance();
555 data_material::default_instance_->InitAsDefaultInstance();
556 data_mesh::default_instance_->InitAsDefaultInstance();
557 data_pose::default_instance_->InitAsDefaultInstance();
558 data_texture::default_instance_->InitAsDefaultInstance();
559 data_scenegraph::default_instance_->InitAsDefaultInstance();
560 data_scenegraph_attribs_tuple::default_instance_->InitAsDefaultInstance();
561 data_beziercurve::default_instance_->InitAsDefaultInstance();
562 data_bezierpatch::default_instance_->InitAsDefaultInstance();
563 data_nurbscurve::default_instance_->InitAsDefaultInstance();
564 data_nurbspatch::default_instance_->InitAsDefaultInstance();
565 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mbd_2eproto);
569 struct StaticDescriptorInitializer_mbd_2eproto
571 StaticDescriptorInitializer_mbd_2eproto()
573 protobuf_AddDesc_mbd_2eproto();
575 } static_descriptor_initializer_mbd_2eproto_;
576 const ::google::protobuf::EnumDescriptor *normal_e_descriptor()
578 protobuf_AssignDescriptorsOnce();
579 return normal_e_descriptor_;
581 bool normal_e_IsValid(
int value)
595 const ::google::protobuf::EnumDescriptor *texture_filtering_e_descriptor()
597 protobuf_AssignDescriptorsOnce();
598 return texture_filtering_e_descriptor_;
600 bool texture_filtering_e_IsValid(
int value)
626 const int data_vector::kXFieldNumber;
627 const int data_vector::kYFieldNumber;
628 const int data_vector::kZFieldNumber;
629 const int data_vector::kWFieldNumber;
632 data_vector::data_vector()
633 : ::google::protobuf::Message()
638 void data_vector::InitAsDefaultInstance()
642 data_vector::data_vector(
const data_vector &from)
643 : ::google::protobuf::Message()
649 void data_vector::SharedCtor()
656 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
659 data_vector::~data_vector()
664 void data_vector::SharedDtor()
666 if (
this != default_instance_)
671 void data_vector::SetCachedSize(
int size)
const
673 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
674 _cached_size_ = size;
675 GOOGLE_SAFE_CONCURRENT_WRITES_END();
677 const ::google::protobuf::Descriptor *data_vector::descriptor()
679 protobuf_AssignDescriptorsOnce();
680 return data_vector_descriptor_;
683 const data_vector &data_vector::default_instance()
685 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
686 return *default_instance_;
689 data_vector *data_vector::default_instance_ = NULL;
691 data_vector *data_vector::New()
const
693 return new data_vector;
696 void data_vector::Clear()
698 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
705 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
706 mutable_unknown_fields()->Clear();
709 bool data_vector::MergePartialFromCodedStream(
710 ::google::protobuf::io::CodedInputStream *input)
712 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
714 while ((tag = input->ReadTag()) != 0)
716 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
721 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
722 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
724 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
725 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
731 goto handle_uninterpreted;
733 if (input->ExpectTag(17))
goto parse_y;
740 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
741 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
744 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
745 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
751 goto handle_uninterpreted;
753 if (input->ExpectTag(25))
goto parse_z;
760 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
761 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
764 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
765 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
771 goto handle_uninterpreted;
773 if (input->ExpectTag(33))
goto parse_w;
780 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
781 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
784 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
785 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
791 goto handle_uninterpreted;
793 if (input->ExpectAtEnd())
return true;
799 handle_uninterpreted:
800 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
801 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
805 DO_(::google::protobuf::internal::WireFormat::SkipField(
806 input, tag, mutable_unknown_fields()));
815 void data_vector::SerializeWithCachedSizes(
816 ::google::protobuf::io::CodedOutputStream *output)
const
821 ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output);
827 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output);
833 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output);
839 ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->w(), output);
842 if (!unknown_fields().empty())
844 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
845 unknown_fields(), output);
855 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target);
861 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target);
867 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target);
873 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->w(), target);
876 if (!unknown_fields().empty())
878 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
879 unknown_fields(), target);
884 int data_vector::ByteSize()
const
888 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
915 if (!unknown_fields().empty())
918 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
921 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
922 _cached_size_ = total_size;
923 GOOGLE_SAFE_CONCURRENT_WRITES_END();
927 void data_vector::MergeFrom(const ::google::protobuf::Message &from)
929 GOOGLE_CHECK_NE(&from,
this);
930 const data_vector *source =
931 ::google::protobuf::internal::dynamic_cast_if_available<const data_vector *>(
935 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
943 void data_vector::MergeFrom(
const data_vector &from)
945 GOOGLE_CHECK_NE(&from,
this);
946 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
965 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
968 void data_vector::CopyFrom(const ::google::protobuf::Message &from)
970 if (&from ==
this)
return;
975 void data_vector::CopyFrom(
const data_vector &from)
977 if (&from ==
this)
return;
982 bool data_vector::IsInitialized()
const
984 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
989 void data_vector::Swap(data_vector *other)
993 std::swap(x_, other->x_);
994 std::swap(y_, other->y_);
995 std::swap(z_, other->z_);
996 std::swap(w_, other->w_);
997 std::swap(_has_bits_[0], other->_has_bits_[0]);
998 _unknown_fields_.Swap(&other->_unknown_fields_);
999 std::swap(_cached_size_, other->_cached_size_);
1003 ::google::protobuf::Metadata data_vector::GetMetadata()
const
1005 protobuf_AssignDescriptorsOnce();
1006 ::google::protobuf::Metadata metadata;
1007 metadata.descriptor = data_vector_descriptor_;
1008 metadata.reflection = data_vector_reflection_;
1016 const int data_camera::kNameFieldNumber;
1017 const int data_camera::kFovyFieldNumber;
1018 const int data_camera::kAspectFieldNumber;
1019 const int data_camera::kNearFieldNumber;
1020 const int data_camera::kFarFieldNumber;
1021 const int data_camera::kXFieldNumber;
1022 const int data_camera::kYFieldNumber;
1023 const int data_camera::kWFieldNumber;
1024 const int data_camera::kHFieldNumber;
1027 data_camera::data_camera()
1028 : ::google::protobuf::Message()
1033 void data_camera::InitAsDefaultInstance()
1037 data_camera::data_camera(
const data_camera &from)
1038 : ::google::protobuf::Message()
1044 void data_camera::SharedCtor()
1047 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
1056 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1059 data_camera::~data_camera()
1064 void data_camera::SharedDtor()
1066 if (name_ != &::google::protobuf::internal::kEmptyString)
1070 if (
this != default_instance_)
1075 void data_camera::SetCachedSize(
int size)
const
1077 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1078 _cached_size_ = size;
1079 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1081 const ::google::protobuf::Descriptor *data_camera::descriptor()
1083 protobuf_AssignDescriptorsOnce();
1084 return data_camera_descriptor_;
1087 const data_camera &data_camera::default_instance()
1089 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
1090 return *default_instance_;
1093 data_camera *data_camera::default_instance_ = NULL;
1095 data_camera *data_camera::New()
const
1097 return new data_camera;
1100 void data_camera::Clear()
1102 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1106 if (name_ != &::google::protobuf::internal::kEmptyString)
1119 if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1123 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1124 mutable_unknown_fields()->Clear();
1127 bool data_camera::MergePartialFromCodedStream(
1128 ::google::protobuf::io::CodedInputStream *input)
1130 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1132 while ((tag = input->ReadTag()) != 0)
1134 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
1139 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1140 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1142 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1143 input, this->mutable_name()));
1144 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1145 this->name().data(), this->name().length(),
1146 ::google::protobuf::internal::WireFormat::PARSE);
1150 goto handle_uninterpreted;
1152 if (input->ExpectTag(17))
goto parse_fovy;
1159 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1160 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1163 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1164 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1170 goto handle_uninterpreted;
1172 if (input->ExpectTag(25))
goto parse_aspect;
1179 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1180 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1183 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1184 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1190 goto handle_uninterpreted;
1192 if (input->ExpectTag(33))
goto parse_near;
1199 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1200 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1203 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1204 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1210 goto handle_uninterpreted;
1212 if (input->ExpectTag(41))
goto parse_far;
1219 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1220 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1223 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1224 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1230 goto handle_uninterpreted;
1232 if (input->ExpectTag(48))
goto parse_x;
1239 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1240 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1243 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1250 goto handle_uninterpreted;
1252 if (input->ExpectTag(56))
goto parse_y;
1259 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1263 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1270 goto handle_uninterpreted;
1272 if (input->ExpectTag(64))
goto parse_w;
1279 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1280 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1283 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1290 goto handle_uninterpreted;
1292 if (input->ExpectTag(72))
goto parse_h;
1299 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1300 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1303 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1310 goto handle_uninterpreted;
1312 if (input->ExpectAtEnd())
return true;
1318 handle_uninterpreted:
1319 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1320 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
1324 DO_(::google::protobuf::internal::WireFormat::SkipField(
1325 input, tag, mutable_unknown_fields()));
1334 void data_camera::SerializeWithCachedSizes(
1335 ::google::protobuf::io::CodedOutputStream *output)
const
1340 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1341 this->name().data(), this->name().length(),
1342 ::google::protobuf::internal::WireFormat::SERIALIZE);
1343 ::google::protobuf::internal::WireFormatLite::WriteString(
1344 1, this->name(), output);
1350 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->fovy(), output);
1356 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->aspect(), output);
1362 ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->near(), output);
1368 ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->far(), output);
1374 ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->x(), output);
1380 ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->y(), output);
1386 ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->w(), output);
1392 ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->h(), output);
1395 if (!unknown_fields().empty())
1397 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1398 unknown_fields(), output);
1408 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1409 this->name().data(), this->name().length(),
1410 ::google::protobuf::internal::WireFormat::SERIALIZE);
1412 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1413 1, this->name(), target);
1419 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->fovy(), target);
1425 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->aspect(), target);
1431 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->near(), target);
1437 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->far(), target);
1443 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->x(), target);
1449 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->y(), target);
1455 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->w(), target);
1461 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->h(), target);
1464 if (!unknown_fields().empty())
1466 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1467 unknown_fields(), target);
1472 int data_camera::ByteSize()
const
1476 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1482 ::google::protobuf::internal::WireFormatLite::StringSize(
1489 total_size += 1 + 8;
1495 total_size += 1 + 8;
1501 total_size += 1 + 8;
1507 total_size += 1 + 8;
1514 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1522 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1530 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1535 if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1541 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1546 if (!unknown_fields().empty())
1549 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1552 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1553 _cached_size_ = total_size;
1554 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1558 void data_camera::MergeFrom(const ::google::protobuf::Message &from)
1560 GOOGLE_CHECK_NE(&from,
this);
1561 const data_camera *source =
1562 ::google::protobuf::internal::dynamic_cast_if_available<const data_camera *>(
1566 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1574 void data_camera::MergeFrom(
const data_camera &from)
1576 GOOGLE_CHECK_NE(&from,
this);
1577 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
1579 if (from.has_name())
1581 set_name(from.name());
1583 if (from.has_fovy())
1585 set_fovy(from.fovy());
1587 if (from.has_aspect())
1589 set_aspect(from.aspect());
1591 if (from.has_near())
1593 set_near(from.near());
1597 set_far(from.far());
1612 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32)))
1619 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1622 void data_camera::CopyFrom(const ::google::protobuf::Message &from)
1624 if (&from ==
this)
return;
1629 void data_camera::CopyFrom(
const data_camera &from)
1631 if (&from ==
this)
return;
1636 bool data_camera::IsInitialized()
const
1638 if ((_has_bits_[0] & 0x000001ff) != 0x000001ff)
return false;
1643 void data_camera::Swap(data_camera *other)
1647 std::swap(name_, other->name_);
1648 std::swap(fovy_, other->fovy_);
1649 std::swap(aspect_, other->aspect_);
1650 std::swap(near_, other->near_);
1651 std::swap(far_, other->far_);
1652 std::swap(x_, other->x_);
1653 std::swap(y_, other->y_);
1654 std::swap(w_, other->w_);
1655 std::swap(h_, other->h_);
1656 std::swap(_has_bits_[0], other->_has_bits_[0]);
1657 _unknown_fields_.Swap(&other->_unknown_fields_);
1658 std::swap(_cached_size_, other->_cached_size_);
1662 ::google::protobuf::Metadata data_camera::GetMetadata()
const
1664 protobuf_AssignDescriptorsOnce();
1665 ::google::protobuf::Metadata metadata;
1666 metadata.descriptor = data_camera_descriptor_;
1667 metadata.reflection = data_camera_reflection_;
1675 const int data_light::kNameFieldNumber;
1676 const int data_light::kAmbientFieldNumber;
1677 const int data_light::kDiffuseFieldNumber;
1678 const int data_light::kSpecularFieldNumber;
1679 const int data_light::kPositionFieldNumber;
1680 const int data_light::kDirectionFieldNumber;
1681 const int data_light::kExponentFieldNumber;
1682 const int data_light::kCutoffFieldNumber;
1683 const int data_light::kConstAttFieldNumber;
1684 const int data_light::kLinAttFieldNumber;
1685 const int data_light::kQuadAttFieldNumber;
1686 const int data_light::kLightNrFieldNumber;
1689 data_light::data_light()
1690 : ::google::protobuf::Message()
1695 void data_light::InitAsDefaultInstance()
1697 ambient_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
1698 diffuse_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
1699 specular_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
1700 position_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
1701 direction_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
1704 data_light::data_light(
const data_light &from)
1705 : ::google::protobuf::Message()
1711 void data_light::SharedCtor()
1714 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
1726 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1729 data_light::~data_light()
1734 void data_light::SharedDtor()
1736 if (name_ != &::google::protobuf::internal::kEmptyString)
1740 if (
this != default_instance_)
1750 void data_light::SetCachedSize(
int size)
const
1752 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1753 _cached_size_ = size;
1754 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1756 const ::google::protobuf::Descriptor *data_light::descriptor()
1758 protobuf_AssignDescriptorsOnce();
1759 return data_light_descriptor_;
1762 const data_light &data_light::default_instance()
1764 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
1765 return *default_instance_;
1768 data_light *data_light::default_instance_ = NULL;
1770 data_light *data_light::New()
const
1772 return new data_light;
1775 void data_light::Clear()
1777 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1781 if (name_ != &::google::protobuf::internal::kEmptyString)
1788 if (ambient_ != NULL) ambient_->::mondschein::io::mbd::data_vector::Clear();
1792 if (diffuse_ != NULL) diffuse_->::mondschein::io::mbd::data_vector::Clear();
1796 if (specular_ != NULL) specular_->::mondschein::io::mbd::data_vector::Clear();
1800 if (position_ != NULL) position_->::mondschein::io::mbd::data_vector::Clear();
1802 if (has_direction())
1804 if (direction_ != NULL) direction_->::mondschein::io::mbd::data_vector::Clear();
1809 if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1816 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1817 mutable_unknown_fields()->Clear();
1820 bool data_light::MergePartialFromCodedStream(
1821 ::google::protobuf::io::CodedInputStream *input)
1823 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1825 while ((tag = input->ReadTag()) != 0)
1827 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
1832 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1833 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1835 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1836 input, this->mutable_name()));
1837 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1838 this->name().data(), this->name().length(),
1839 ::google::protobuf::internal::WireFormat::PARSE);
1843 goto handle_uninterpreted;
1845 if (input->ExpectTag(18))
goto parse_ambient;
1852 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1853 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1856 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1857 input, mutable_ambient()));
1861 goto handle_uninterpreted;
1863 if (input->ExpectTag(26))
goto parse_diffuse;
1870 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1871 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1874 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1875 input, mutable_diffuse()));
1879 goto handle_uninterpreted;
1881 if (input->ExpectTag(34))
goto parse_specular;
1888 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1889 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1892 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1893 input, mutable_specular()));
1897 goto handle_uninterpreted;
1899 if (input->ExpectTag(42))
goto parse_position;
1906 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1910 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1911 input, mutable_position()));
1915 goto handle_uninterpreted;
1917 if (input->ExpectTag(50))
goto parse_direction;
1924 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1925 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1928 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1929 input, mutable_direction()));
1933 goto handle_uninterpreted;
1935 if (input->ExpectTag(57))
goto parse_exponent;
1942 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1943 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1946 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1947 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1948 input, &exponent_)));
1953 goto handle_uninterpreted;
1955 if (input->ExpectTag(65))
goto parse_cutoff;
1962 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1963 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1966 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1967 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1973 goto handle_uninterpreted;
1975 if (input->ExpectTag(73))
goto parse_const_att;
1982 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1983 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1986 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1987 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1988 input, &const_att_)));
1989 set_has_const_att();
1993 goto handle_uninterpreted;
1995 if (input->ExpectTag(81))
goto parse_lin_att;
2002 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2003 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2006 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2007 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2008 input, &lin_att_)));
2013 goto handle_uninterpreted;
2015 if (input->ExpectTag(89))
goto parse_quad_att;
2022 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2023 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2026 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2027 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2028 input, &quad_att_)));
2033 goto handle_uninterpreted;
2035 if (input->ExpectTag(96))
goto parse_light_nr;
2042 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2043 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
2046 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2048 input, &light_nr_)));
2053 goto handle_uninterpreted;
2055 if (input->ExpectAtEnd())
return true;
2061 handle_uninterpreted:
2062 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2063 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
2067 DO_(::google::protobuf::internal::WireFormat::SkipField(
2068 input, tag, mutable_unknown_fields()));
2077 void data_light::SerializeWithCachedSizes(
2078 ::google::protobuf::io::CodedOutputStream *output)
const
2083 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2084 this->name().data(), this->name().length(),
2085 ::google::protobuf::internal::WireFormat::SERIALIZE);
2086 ::google::protobuf::internal::WireFormatLite::WriteString(
2087 1, this->name(), output);
2093 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2094 2, this->ambient(), output);
2100 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2101 3, this->diffuse(), output);
2107 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2108 4, this->specular(), output);
2114 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2115 5, this->position(), output);
2119 if (has_direction())
2121 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2122 6, this->direction(), output);
2128 ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->exponent(), output);
2134 ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->cutoff(), output);
2138 if (has_const_att())
2140 ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->const_att(), output);
2146 ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->lin_att(), output);
2152 ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->quad_att(), output);
2158 ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->light_nr(), output);
2161 if (!unknown_fields().empty())
2163 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2164 unknown_fields(), output);
2174 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2175 this->name().data(), this->name().length(),
2176 ::google::protobuf::internal::WireFormat::SERIALIZE);
2178 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2179 1, this->name(), target);
2185 target = ::google::protobuf::internal::WireFormatLite::
2186 WriteMessageNoVirtualToArray(
2187 2, this->ambient(), target);
2193 target = ::google::protobuf::internal::WireFormatLite::
2194 WriteMessageNoVirtualToArray(
2195 3, this->diffuse(), target);
2201 target = ::google::protobuf::internal::WireFormatLite::
2202 WriteMessageNoVirtualToArray(
2203 4, this->specular(), target);
2209 target = ::google::protobuf::internal::WireFormatLite::
2210 WriteMessageNoVirtualToArray(
2211 5, this->position(), target);
2215 if (has_direction())
2217 target = ::google::protobuf::internal::WireFormatLite::
2218 WriteMessageNoVirtualToArray(
2219 6, this->direction(), target);
2225 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->exponent(), target);
2231 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->cutoff(), target);
2235 if (has_const_att())
2237 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->const_att(), target);
2243 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->lin_att(), target);
2249 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->quad_att(), target);
2255 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->light_nr(), target);
2258 if (!unknown_fields().empty())
2260 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2261 unknown_fields(), target);
2266 int data_light::ByteSize()
const
2270 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2276 ::google::protobuf::internal::WireFormatLite::StringSize(
2284 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2292 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2300 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2308 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2313 if (has_direction())
2316 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2323 total_size += 1 + 8;
2329 total_size += 1 + 8;
2333 if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
2336 if (has_const_att())
2338 total_size += 1 + 8;
2344 total_size += 1 + 8;
2350 total_size += 1 + 8;
2357 ::google::protobuf::internal::WireFormatLite::UInt32Size(
2362 if (!unknown_fields().empty())
2365 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2369 _cached_size_ = total_size;
2370 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2374 void data_light::MergeFrom(const ::google::protobuf::Message &from)
2376 GOOGLE_CHECK_NE(&from,
this);
2377 const data_light *source =
2378 ::google::protobuf::internal::dynamic_cast_if_available<const data_light *>(
2382 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2390 void data_light::MergeFrom(
const data_light &from)
2392 GOOGLE_CHECK_NE(&from,
this);
2393 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
2395 if (from.has_name())
2397 set_name(from.name());
2399 if (from.has_ambient())
2401 mutable_ambient()->::mondschein::io::mbd::data_vector::MergeFrom(from.ambient());
2403 if (from.has_diffuse())
2405 mutable_diffuse()->::mondschein::io::mbd::data_vector::MergeFrom(from.diffuse());
2407 if (from.has_specular())
2409 mutable_specular()->::mondschein::io::mbd::data_vector::MergeFrom(from.specular());
2411 if (from.has_position())
2413 mutable_position()->::mondschein::io::mbd::data_vector::MergeFrom(from.position());
2415 if (from.has_direction())
2417 mutable_direction()->::mondschein::io::mbd::data_vector::MergeFrom(from.direction());
2419 if (from.has_exponent())
2421 set_exponent(from.exponent());
2423 if (from.has_cutoff())
2425 set_cutoff(from.cutoff());
2428 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32)))
2430 if (from.has_const_att())
2432 set_const_att(from.const_att());
2434 if (from.has_lin_att())
2436 set_lin_att(from.lin_att());
2438 if (from.has_quad_att())
2440 set_quad_att(from.quad_att());
2442 if (from.has_light_nr())
2444 set_light_nr(from.light_nr());
2447 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2450 void data_light::CopyFrom(const ::google::protobuf::Message &from)
2452 if (&from ==
this)
return;
2457 void data_light::CopyFrom(
const data_light &from)
2459 if (&from ==
this)
return;
2464 bool data_light::IsInitialized()
const
2466 if ((_has_bits_[0] & 0x00000fff) != 0x00000fff)
return false;
2470 if (!this->ambient().IsInitialized())
return false;
2474 if (!this->diffuse().IsInitialized())
return false;
2478 if (!this->specular().IsInitialized())
return false;
2482 if (!this->position().IsInitialized())
return false;
2484 if (has_direction())
2486 if (!this->direction().IsInitialized())
return false;
2491 void data_light::Swap(data_light *other)
2495 std::swap(name_, other->name_);
2496 std::swap(ambient_, other->ambient_);
2497 std::swap(diffuse_, other->diffuse_);
2498 std::swap(specular_, other->specular_);
2499 std::swap(position_, other->position_);
2500 std::swap(direction_, other->direction_);
2501 std::swap(exponent_, other->exponent_);
2502 std::swap(cutoff_, other->cutoff_);
2503 std::swap(const_att_, other->const_att_);
2504 std::swap(lin_att_, other->lin_att_);
2505 std::swap(quad_att_, other->quad_att_);
2506 std::swap(light_nr_, other->light_nr_);
2507 std::swap(_has_bits_[0], other->_has_bits_[0]);
2508 _unknown_fields_.Swap(&other->_unknown_fields_);
2509 std::swap(_cached_size_, other->_cached_size_);
2513 ::google::protobuf::Metadata data_light::GetMetadata()
const
2515 protobuf_AssignDescriptorsOnce();
2516 ::google::protobuf::Metadata metadata;
2517 metadata.descriptor = data_light_descriptor_;
2518 metadata.reflection = data_light_reflection_;
2526 const int data_material::kNameFieldNumber;
2527 const int data_material::kAmbientFieldNumber;
2528 const int data_material::kDiffuseFieldNumber;
2529 const int data_material::kSpecularFieldNumber;
2530 const int data_material::kEmissionFieldNumber;
2531 const int data_material::kShininessFieldNumber;
2534 data_material::data_material()
2535 : ::google::protobuf::Message()
2540 void data_material::InitAsDefaultInstance()
2542 ambient_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
2543 diffuse_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
2544 specular_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
2545 emission_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
2548 data_material::data_material(
const data_material &from)
2549 : ::google::protobuf::Message()
2555 void data_material::SharedCtor()
2558 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
2564 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2567 data_material::~data_material()
2572 void data_material::SharedDtor()
2574 if (name_ != &::google::protobuf::internal::kEmptyString)
2578 if (
this != default_instance_)
2587 void data_material::SetCachedSize(
int size)
const
2589 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2590 _cached_size_ = size;
2591 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2593 const ::google::protobuf::Descriptor *data_material::descriptor()
2595 protobuf_AssignDescriptorsOnce();
2596 return data_material_descriptor_;
2599 const data_material &data_material::default_instance()
2601 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
2602 return *default_instance_;
2605 data_material *data_material::default_instance_ = NULL;
2607 data_material *data_material::New()
const
2609 return new data_material;
2612 void data_material::Clear()
2614 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2618 if (name_ != &::google::protobuf::internal::kEmptyString)
2625 if (ambient_ != NULL) ambient_->::mondschein::io::mbd::data_vector::Clear();
2629 if (diffuse_ != NULL) diffuse_->::mondschein::io::mbd::data_vector::Clear();
2633 if (specular_ != NULL) specular_->::mondschein::io::mbd::data_vector::Clear();
2637 if (emission_ != NULL) emission_->::mondschein::io::mbd::data_vector::Clear();
2641 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2642 mutable_unknown_fields()->Clear();
2645 bool data_material::MergePartialFromCodedStream(
2646 ::google::protobuf::io::CodedInputStream *input)
2648 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2650 while ((tag = input->ReadTag()) != 0)
2652 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
2657 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2658 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2660 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2661 input, this->mutable_name()));
2662 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2663 this->name().data(), this->name().length(),
2664 ::google::protobuf::internal::WireFormat::PARSE);
2668 goto handle_uninterpreted;
2670 if (input->ExpectTag(18))
goto parse_ambient;
2677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2681 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2682 input, mutable_ambient()));
2686 goto handle_uninterpreted;
2688 if (input->ExpectTag(26))
goto parse_diffuse;
2695 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2696 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2699 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2700 input, mutable_diffuse()));
2704 goto handle_uninterpreted;
2706 if (input->ExpectTag(34))
goto parse_specular;
2713 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2714 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2717 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2718 input, mutable_specular()));
2722 goto handle_uninterpreted;
2724 if (input->ExpectTag(42))
goto parse_emission;
2731 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2732 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2735 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2736 input, mutable_emission()));
2740 goto handle_uninterpreted;
2742 if (input->ExpectTag(49))
goto parse_shininess;
2749 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2750 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2753 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2754 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2755 input, &shininess_)));
2756 set_has_shininess();
2760 goto handle_uninterpreted;
2762 if (input->ExpectAtEnd())
return true;
2768 handle_uninterpreted:
2769 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2770 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
2774 DO_(::google::protobuf::internal::WireFormat::SkipField(
2775 input, tag, mutable_unknown_fields()));
2784 void data_material::SerializeWithCachedSizes(
2785 ::google::protobuf::io::CodedOutputStream *output)
const
2790 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2791 this->name().data(), this->name().length(),
2792 ::google::protobuf::internal::WireFormat::SERIALIZE);
2793 ::google::protobuf::internal::WireFormatLite::WriteString(
2794 1, this->name(), output);
2800 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2801 2, this->ambient(), output);
2807 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2808 3, this->diffuse(), output);
2814 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2815 4, this->specular(), output);
2821 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2822 5, this->emission(), output);
2826 if (has_shininess())
2828 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->shininess(), output);
2831 if (!unknown_fields().empty())
2833 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2834 unknown_fields(), output);
2844 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2845 this->name().data(), this->name().length(),
2846 ::google::protobuf::internal::WireFormat::SERIALIZE);
2848 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2849 1, this->name(), target);
2855 target = ::google::protobuf::internal::WireFormatLite::
2856 WriteMessageNoVirtualToArray(
2857 2, this->ambient(), target);
2863 target = ::google::protobuf::internal::WireFormatLite::
2864 WriteMessageNoVirtualToArray(
2865 3, this->diffuse(), target);
2871 target = ::google::protobuf::internal::WireFormatLite::
2872 WriteMessageNoVirtualToArray(
2873 4, this->specular(), target);
2879 target = ::google::protobuf::internal::WireFormatLite::
2880 WriteMessageNoVirtualToArray(
2881 5, this->emission(), target);
2885 if (has_shininess())
2887 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->shininess(), target);
2890 if (!unknown_fields().empty())
2892 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2893 unknown_fields(), target);
2898 int data_material::ByteSize()
const
2902 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2908 ::google::protobuf::internal::WireFormatLite::StringSize(
2916 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2924 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2932 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2940 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2945 if (has_shininess())
2947 total_size += 1 + 8;
2951 if (!unknown_fields().empty())
2954 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2957 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2958 _cached_size_ = total_size;
2959 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2963 void data_material::MergeFrom(const ::google::protobuf::Message &from)
2965 GOOGLE_CHECK_NE(&from,
this);
2966 const data_material *source =
2967 ::google::protobuf::internal::dynamic_cast_if_available<const data_material *>(
2971 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2979 void data_material::MergeFrom(
const data_material &from)
2981 GOOGLE_CHECK_NE(&from,
this);
2982 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
2984 if (from.has_name())
2986 set_name(from.name());
2988 if (from.has_ambient())
2990 mutable_ambient()->::mondschein::io::mbd::data_vector::MergeFrom(from.ambient());
2992 if (from.has_diffuse())
2994 mutable_diffuse()->::mondschein::io::mbd::data_vector::MergeFrom(from.diffuse());
2996 if (from.has_specular())
2998 mutable_specular()->::mondschein::io::mbd::data_vector::MergeFrom(from.specular());
3000 if (from.has_emission())
3002 mutable_emission()->::mondschein::io::mbd::data_vector::MergeFrom(from.emission());
3004 if (from.has_shininess())
3006 set_shininess(from.shininess());
3009 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3012 void data_material::CopyFrom(const ::google::protobuf::Message &from)
3014 if (&from ==
this)
return;
3019 void data_material::CopyFrom(
const data_material &from)
3021 if (&from ==
this)
return;
3026 bool data_material::IsInitialized()
const
3028 if ((_has_bits_[0] & 0x0000003f) != 0x0000003f)
return false;
3032 if (!this->ambient().IsInitialized())
return false;
3036 if (!this->diffuse().IsInitialized())
return false;
3040 if (!this->specular().IsInitialized())
return false;
3044 if (!this->emission().IsInitialized())
return false;
3049 void data_material::Swap(data_material *other)
3053 std::swap(name_, other->name_);
3054 std::swap(ambient_, other->ambient_);
3055 std::swap(diffuse_, other->diffuse_);
3056 std::swap(specular_, other->specular_);
3057 std::swap(emission_, other->emission_);
3058 std::swap(shininess_, other->shininess_);
3059 std::swap(_has_bits_[0], other->_has_bits_[0]);
3060 _unknown_fields_.Swap(&other->_unknown_fields_);
3061 std::swap(_cached_size_, other->_cached_size_);
3065 ::google::protobuf::Metadata data_material::GetMetadata()
const
3067 protobuf_AssignDescriptorsOnce();
3068 ::google::protobuf::Metadata metadata;
3069 metadata.descriptor = data_material_descriptor_;
3070 metadata.reflection = data_material_reflection_;
3078 const int data_mesh::kNameFieldNumber;
3079 const int data_mesh::kVFieldNumber;
3080 const int data_mesh::kVnFieldNumber;
3081 const int data_mesh::kVtFieldNumber;
3082 const int data_mesh::kVcFieldNumber;
3085 data_mesh::data_mesh()
3086 : ::google::protobuf::Message()
3091 void data_mesh::InitAsDefaultInstance()
3095 data_mesh::data_mesh(
const data_mesh &from)
3096 : ::google::protobuf::Message()
3102 void data_mesh::SharedCtor()
3105 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
3106 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3109 data_mesh::~data_mesh()
3114 void data_mesh::SharedDtor()
3116 if (name_ != &::google::protobuf::internal::kEmptyString)
3120 if (
this != default_instance_)
3125 void data_mesh::SetCachedSize(
int size)
const
3127 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3128 _cached_size_ = size;
3129 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3131 const ::google::protobuf::Descriptor *data_mesh::descriptor()
3133 protobuf_AssignDescriptorsOnce();
3134 return data_mesh_descriptor_;
3137 const data_mesh &data_mesh::default_instance()
3139 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
3140 return *default_instance_;
3143 data_mesh *data_mesh::default_instance_ = NULL;
3145 data_mesh *data_mesh::New()
const
3147 return new data_mesh;
3150 void data_mesh::Clear()
3152 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3156 if (name_ != &::google::protobuf::internal::kEmptyString)
3166 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3167 mutable_unknown_fields()->Clear();
3170 bool data_mesh::MergePartialFromCodedStream(
3171 ::google::protobuf::io::CodedInputStream *input)
3173 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3175 while ((tag = input->ReadTag()) != 0)
3177 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
3182 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3183 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3185 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3186 input, this->mutable_name()));
3187 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3188 this->name().data(), this->name().length(),
3189 ::google::protobuf::internal::WireFormat::PARSE);
3193 goto handle_uninterpreted;
3195 if (input->ExpectTag(18))
goto parse_v;
3202 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3203 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3211 goto handle_uninterpreted;
3213 if (input->ExpectTag(18))
goto parse_v;
3214 if (input->ExpectTag(26))
goto parse_vn;
3221 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3222 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3225 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3230 goto handle_uninterpreted;
3232 if (input->ExpectTag(26))
goto parse_vn;
3233 if (input->ExpectTag(34))
goto parse_vt;
3240 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3241 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3244 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3249 goto handle_uninterpreted;
3251 if (input->ExpectTag(34))
goto parse_vt;
3252 if (input->ExpectTag(42))
goto parse_vc;
3259 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3263 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3268 goto handle_uninterpreted;
3270 if (input->ExpectTag(42))
goto parse_vc;
3271 if (input->ExpectAtEnd())
return true;
3277 handle_uninterpreted:
3278 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3279 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
3283 DO_(::google::protobuf::internal::WireFormat::SkipField(
3284 input, tag, mutable_unknown_fields()));
3293 void data_mesh::SerializeWithCachedSizes(
3294 ::google::protobuf::io::CodedOutputStream *output)
const
3299 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3300 this->name().data(), this->name().length(),
3301 ::google::protobuf::internal::WireFormat::SERIALIZE);
3302 ::google::protobuf::internal::WireFormatLite::WriteString(
3303 1, this->name(), output);
3307 for (
int i = 0; i < this->v_size(); i++)
3309 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3310 2, this->v(i), output);
3314 for (
int i = 0; i < this->vn_size(); i++)
3316 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3317 3, this->vn(i), output);
3321 for (
int i = 0; i < this->vt_size(); i++)
3323 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3324 4, this->vt(i), output);
3328 for (
int i = 0; i < this->vc_size(); i++)
3330 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3331 5, this->vc(i), output);
3334 if (!unknown_fields().empty())
3336 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3337 unknown_fields(), output);
3347 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3348 this->name().data(), this->name().length(),
3349 ::google::protobuf::internal::WireFormat::SERIALIZE);
3351 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3352 1, this->name(), target);
3356 for (
int i = 0; i < this->v_size(); i++)
3358 target = ::google::protobuf::internal::WireFormatLite::
3359 WriteMessageNoVirtualToArray(
3360 2, this->v(i), target);
3364 for (
int i = 0; i < this->vn_size(); i++)
3366 target = ::google::protobuf::internal::WireFormatLite::
3367 WriteMessageNoVirtualToArray(
3368 3, this->vn(i), target);
3372 for (
int i = 0; i < this->vt_size(); i++)
3374 target = ::google::protobuf::internal::WireFormatLite::
3375 WriteMessageNoVirtualToArray(
3376 4, this->vt(i), target);
3380 for (
int i = 0; i < this->vc_size(); i++)
3382 target = ::google::protobuf::internal::WireFormatLite::
3383 WriteMessageNoVirtualToArray(
3384 5, this->vc(i), target);
3387 if (!unknown_fields().empty())
3389 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3390 unknown_fields(), target);
3395 int data_mesh::ByteSize()
const
3399 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3405 ::google::protobuf::internal::WireFormatLite::StringSize(
3411 total_size += 1 * this->v_size();
3412 for (
int i = 0; i < this->v_size(); i++)
3415 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3420 total_size += 1 * this->vn_size();
3421 for (
int i = 0; i < this->vn_size(); i++)
3424 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3429 total_size += 1 * this->vt_size();
3430 for (
int i = 0; i < this->vt_size(); i++)
3433 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3438 total_size += 1 * this->vc_size();
3439 for (
int i = 0; i < this->vc_size(); i++)
3442 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3446 if (!unknown_fields().empty())
3449 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3452 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3453 _cached_size_ = total_size;
3454 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3458 void data_mesh::MergeFrom(const ::google::protobuf::Message &from)
3460 GOOGLE_CHECK_NE(&from,
this);
3461 const data_mesh *source =
3462 ::google::protobuf::internal::dynamic_cast_if_available<const data_mesh *>(
3466 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3474 void data_mesh::MergeFrom(
const data_mesh &from)
3476 GOOGLE_CHECK_NE(&from,
this);
3477 v_.MergeFrom(from.v_);
3478 vn_.MergeFrom(from.vn_);
3479 vt_.MergeFrom(from.vt_);
3480 vc_.MergeFrom(from.vc_);
3481 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
3483 if (from.has_name())
3485 set_name(from.name());
3488 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3491 void data_mesh::CopyFrom(const ::google::protobuf::Message &from)
3493 if (&from ==
this)
return;
3498 void data_mesh::CopyFrom(
const data_mesh &from)
3500 if (&from ==
this)
return;
3505 bool data_mesh::IsInitialized()
const
3507 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
3509 for (
int i = 0; i < v_size(); i++)
3511 if (!this->v(i).IsInitialized())
return false;
3513 for (
int i = 0; i < vn_size(); i++)
3515 if (!this->vn(i).IsInitialized())
return false;
3517 for (
int i = 0; i < vt_size(); i++)
3519 if (!this->vt(i).IsInitialized())
return false;
3521 for (
int i = 0; i < vc_size(); i++)
3523 if (!this->vc(i).IsInitialized())
return false;
3528 void data_mesh::Swap(data_mesh *other)
3532 std::swap(name_, other->name_);
3533 v_.Swap(&other->v_);
3534 vn_.Swap(&other->vn_);
3535 vt_.Swap(&other->vt_);
3536 vc_.Swap(&other->vc_);
3537 std::swap(_has_bits_[0], other->_has_bits_[0]);
3538 _unknown_fields_.Swap(&other->_unknown_fields_);
3539 std::swap(_cached_size_, other->_cached_size_);
3543 ::google::protobuf::Metadata data_mesh::GetMetadata()
const
3545 protobuf_AssignDescriptorsOnce();
3546 ::google::protobuf::Metadata metadata;
3547 metadata.descriptor = data_mesh_descriptor_;
3548 metadata.reflection = data_mesh_reflection_;
3556 const int data_pose::kNameFieldNumber;
3557 const int data_pose::kC1FieldNumber;
3558 const int data_pose::kC2FieldNumber;
3559 const int data_pose::kC3FieldNumber;
3560 const int data_pose::kC4FieldNumber;
3563 data_pose::data_pose()
3564 : ::google::protobuf::Message()
3569 void data_pose::InitAsDefaultInstance()
3571 c1_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
3572 c2_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
3573 c3_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
3574 c4_ =
const_cast< ::mondschein::io::mbd::data_vector *
>(&::mondschein::io::mbd::data_vector::default_instance());
3577 data_pose::data_pose(
const data_pose &from)
3578 : ::google::protobuf::Message()
3584 void data_pose::SharedCtor()
3587 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
3592 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3595 data_pose::~data_pose()
3600 void data_pose::SharedDtor()
3602 if (name_ != &::google::protobuf::internal::kEmptyString)
3606 if (
this != default_instance_)
3615 void data_pose::SetCachedSize(
int size)
const
3617 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3618 _cached_size_ = size;
3619 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3621 const ::google::protobuf::Descriptor *data_pose::descriptor()
3623 protobuf_AssignDescriptorsOnce();
3624 return data_pose_descriptor_;
3627 const data_pose &data_pose::default_instance()
3629 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
3630 return *default_instance_;
3633 data_pose *data_pose::default_instance_ = NULL;
3635 data_pose *data_pose::New()
const
3637 return new data_pose;
3640 void data_pose::Clear()
3642 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3646 if (name_ != &::google::protobuf::internal::kEmptyString)
3653 if (c1_ != NULL) c1_->::mondschein::io::mbd::data_vector::Clear();
3657 if (c2_ != NULL) c2_->::mondschein::io::mbd::data_vector::Clear();
3661 if (c3_ != NULL) c3_->::mondschein::io::mbd::data_vector::Clear();
3665 if (c4_ != NULL) c4_->::mondschein::io::mbd::data_vector::Clear();
3668 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3669 mutable_unknown_fields()->Clear();
3672 bool data_pose::MergePartialFromCodedStream(
3673 ::google::protobuf::io::CodedInputStream *input)
3675 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3677 while ((tag = input->ReadTag()) != 0)
3679 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
3684 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3685 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3687 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3688 input, this->mutable_name()));
3689 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3690 this->name().data(), this->name().length(),
3691 ::google::protobuf::internal::WireFormat::PARSE);
3695 goto handle_uninterpreted;
3697 if (input->ExpectTag(18))
goto parse_c1;
3704 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3705 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3708 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3709 input, mutable_c1()));
3713 goto handle_uninterpreted;
3715 if (input->ExpectTag(26))
goto parse_c2;
3722 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3723 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3726 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3727 input, mutable_c2()));
3731 goto handle_uninterpreted;
3733 if (input->ExpectTag(34))
goto parse_c3;
3740 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3741 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3744 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3745 input, mutable_c3()));
3749 goto handle_uninterpreted;
3751 if (input->ExpectTag(42))
goto parse_c4;
3758 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3759 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3762 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3763 input, mutable_c4()));
3767 goto handle_uninterpreted;
3769 if (input->ExpectAtEnd())
return true;
3775 handle_uninterpreted:
3776 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3777 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
3781 DO_(::google::protobuf::internal::WireFormat::SkipField(
3782 input, tag, mutable_unknown_fields()));
3791 void data_pose::SerializeWithCachedSizes(
3792 ::google::protobuf::io::CodedOutputStream *output)
const
3797 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3798 this->name().data(), this->name().length(),
3799 ::google::protobuf::internal::WireFormat::SERIALIZE);
3800 ::google::protobuf::internal::WireFormatLite::WriteString(
3801 1, this->name(), output);
3807 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3808 2, this->c1(), output);
3814 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3815 3, this->c2(), output);
3821 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3822 4, this->c3(), output);
3828 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3829 5, this->c4(), output);
3832 if (!unknown_fields().empty())
3834 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3835 unknown_fields(), output);
3845 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3846 this->name().data(), this->name().length(),
3847 ::google::protobuf::internal::WireFormat::SERIALIZE);
3849 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3850 1, this->name(), target);
3856 target = ::google::protobuf::internal::WireFormatLite::
3857 WriteMessageNoVirtualToArray(
3858 2, this->c1(), target);
3864 target = ::google::protobuf::internal::WireFormatLite::
3865 WriteMessageNoVirtualToArray(
3866 3, this->c2(), target);
3872 target = ::google::protobuf::internal::WireFormatLite::
3873 WriteMessageNoVirtualToArray(
3874 4, this->c3(), target);
3880 target = ::google::protobuf::internal::WireFormatLite::
3881 WriteMessageNoVirtualToArray(
3882 5, this->c4(), target);
3885 if (!unknown_fields().empty())
3887 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3888 unknown_fields(), target);
3893 int data_pose::ByteSize()
const
3897 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3903 ::google::protobuf::internal::WireFormatLite::StringSize(
3911 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3919 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3927 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3935 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3940 if (!unknown_fields().empty())
3943 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3946 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3947 _cached_size_ = total_size;
3948 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3952 void data_pose::MergeFrom(const ::google::protobuf::Message &from)
3954 GOOGLE_CHECK_NE(&from,
this);
3955 const data_pose *source =
3956 ::google::protobuf::internal::dynamic_cast_if_available<const data_pose *>(
3960 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3968 void data_pose::MergeFrom(
const data_pose &from)
3970 GOOGLE_CHECK_NE(&from,
this);
3971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
3973 if (from.has_name())
3975 set_name(from.name());
3979 mutable_c1()->::mondschein::io::mbd::data_vector::MergeFrom(from.c1());
3983 mutable_c2()->::mondschein::io::mbd::data_vector::MergeFrom(from.c2());
3987 mutable_c3()->::mondschein::io::mbd::data_vector::MergeFrom(from.c3());
3991 mutable_c4()->::mondschein::io::mbd::data_vector::MergeFrom(from.c4());
3994 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3997 void data_pose::CopyFrom(const ::google::protobuf::Message &from)
3999 if (&from ==
this)
return;
4004 void data_pose::CopyFrom(
const data_pose &from)
4006 if (&from ==
this)
return;
4011 bool data_pose::IsInitialized()
const
4013 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f)
return false;
4017 if (!this->c1().IsInitialized())
return false;
4021 if (!this->c2().IsInitialized())
return false;
4025 if (!this->c3().IsInitialized())
return false;
4029 if (!this->c4().IsInitialized())
return false;
4034 void data_pose::Swap(data_pose *other)
4038 std::swap(name_, other->name_);
4039 std::swap(c1_, other->c1_);
4040 std::swap(c2_, other->c2_);
4041 std::swap(c3_, other->c3_);
4042 std::swap(c4_, other->c4_);
4043 std::swap(_has_bits_[0], other->_has_bits_[0]);
4044 _unknown_fields_.Swap(&other->_unknown_fields_);
4045 std::swap(_cached_size_, other->_cached_size_);
4049 ::google::protobuf::Metadata data_pose::GetMetadata()
const
4051 protobuf_AssignDescriptorsOnce();
4052 ::google::protobuf::Metadata metadata;
4053 metadata.descriptor = data_pose_descriptor_;
4054 metadata.reflection = data_pose_reflection_;
4062 const int data_texture::kNameFieldNumber;
4063 const int data_texture::kUnitFieldNumber;
4064 const int data_texture::kTextureFilterFieldNumber;
4065 const int data_texture::kAnisotropicFilterFieldNumber;
4066 const int data_texture::kImageFieldNumber;
4067 const int data_texture::kFormatFieldNumber;
4070 data_texture::data_texture()
4071 : ::google::protobuf::Message()
4076 void data_texture::InitAsDefaultInstance()
4080 data_texture::data_texture(
const data_texture &from)
4081 : ::google::protobuf::Message()
4087 void data_texture::SharedCtor()
4090 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
4092 texture_filter_ = 0;
4093 anisotropic_filter_ = 0u;
4094 image_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
4095 format_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
4096 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4099 data_texture::~data_texture()
4104 void data_texture::SharedDtor()
4106 if (name_ != &::google::protobuf::internal::kEmptyString)
4110 if (image_ != &::google::protobuf::internal::kEmptyString)
4114 if (format_ != &::google::protobuf::internal::kEmptyString)
4118 if (
this != default_instance_)
4123 void data_texture::SetCachedSize(
int size)
const
4125 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4126 _cached_size_ = size;
4127 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4129 const ::google::protobuf::Descriptor *data_texture::descriptor()
4131 protobuf_AssignDescriptorsOnce();
4132 return data_texture_descriptor_;
4135 const data_texture &data_texture::default_instance()
4137 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4138 return *default_instance_;
4141 data_texture *data_texture::default_instance_ = NULL;
4143 data_texture *data_texture::New()
const
4145 return new data_texture;
4148 void data_texture::Clear()
4150 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4154 if (name_ != &::google::protobuf::internal::kEmptyString)
4160 texture_filter_ = 0;
4161 anisotropic_filter_ = 0u;
4164 if (image_ != &::google::protobuf::internal::kEmptyString)
4171 if (format_ != &::google::protobuf::internal::kEmptyString)
4177 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4178 mutable_unknown_fields()->Clear();
4181 bool data_texture::MergePartialFromCodedStream(
4182 ::google::protobuf::io::CodedInputStream *input)
4184 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4186 while ((tag = input->ReadTag()) != 0)
4188 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
4193 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4194 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4196 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4197 input, this->mutable_name()));
4198 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4199 this->name().data(), this->name().length(),
4200 ::google::protobuf::internal::WireFormat::PARSE);
4204 goto handle_uninterpreted;
4206 if (input->ExpectTag(16))
goto parse_unit;
4213 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4214 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4217 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4224 goto handle_uninterpreted;
4226 if (input->ExpectTag(24))
goto parse_texture_filter;
4233 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4234 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4236 parse_texture_filter:
4238 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4239 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4241 if (::mondschein::io::mbd::texture_filtering_e_IsValid(value))
4243 set_texture_attribs_filter(static_cast< ::mondschein::io::mbd::texture_filtering_e >(value));
4247 mutable_unknown_fields()->AddVarint(3, value);
4252 goto handle_uninterpreted;
4254 if (input->ExpectTag(32))
goto parse_anisotropic_filter;
4261 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4262 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4264 parse_anisotropic_filter:
4265 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4267 input, &anisotropic_filter_)));
4268 set_has_anisotropic_filter();
4272 goto handle_uninterpreted;
4274 if (input->ExpectTag(42))
goto parse_image;
4281 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4282 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4285 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4286 input, this->mutable_image()));
4287 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4288 this->image().data(), this->image().length(),
4289 ::google::protobuf::internal::WireFormat::PARSE);
4293 goto handle_uninterpreted;
4295 if (input->ExpectTag(50))
goto parse_format;
4302 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4303 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4306 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4307 input, this->mutable_format()));
4308 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4309 this->format().data(), this->format().length(),
4310 ::google::protobuf::internal::WireFormat::PARSE);
4314 goto handle_uninterpreted;
4316 if (input->ExpectAtEnd())
return true;
4322 handle_uninterpreted:
4323 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4324 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
4328 DO_(::google::protobuf::internal::WireFormat::SkipField(
4329 input, tag, mutable_unknown_fields()));
4338 void data_texture::SerializeWithCachedSizes(
4339 ::google::protobuf::io::CodedOutputStream *output)
const
4344 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4345 this->name().data(), this->name().length(),
4346 ::google::protobuf::internal::WireFormat::SERIALIZE);
4347 ::google::protobuf::internal::WireFormatLite::WriteString(
4348 1, this->name(), output);
4354 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->unit(), output);
4358 if (has_texture_filter())
4360 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4361 3, this->texture_filter(), output);
4365 if (has_anisotropic_filter())
4367 ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->anisotropic_filter(), output);
4373 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4374 this->image().data(), this->image().length(),
4375 ::google::protobuf::internal::WireFormat::SERIALIZE);
4376 ::google::protobuf::internal::WireFormatLite::WriteString(
4377 5, this->image(), output);
4383 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4384 this->format().data(), this->format().length(),
4385 ::google::protobuf::internal::WireFormat::SERIALIZE);
4386 ::google::protobuf::internal::WireFormatLite::WriteString(
4387 6, this->format(), output);
4390 if (!unknown_fields().empty())
4392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4393 unknown_fields(), output);
4403 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4404 this->name().data(), this->name().length(),
4405 ::google::protobuf::internal::WireFormat::SERIALIZE);
4407 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4408 1, this->name(), target);
4414 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->unit(), target);
4418 if (has_texture_filter())
4420 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4421 3, this->texture_filter(), target);
4425 if (has_anisotropic_filter())
4427 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->anisotropic_filter(), target);
4433 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4434 this->image().data(), this->image().length(),
4435 ::google::protobuf::internal::WireFormat::SERIALIZE);
4437 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4438 5, this->image(), target);
4444 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4445 this->format().data(), this->format().length(),
4446 ::google::protobuf::internal::WireFormat::SERIALIZE);
4448 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4449 6, this->format(), target);
4452 if (!unknown_fields().empty())
4454 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4455 unknown_fields(), target);
4460 int data_texture::ByteSize()
const
4464 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4470 ::google::protobuf::internal::WireFormatLite::StringSize(
4478 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4483 if (has_texture_filter())
4486 ::google::protobuf::internal::WireFormatLite::EnumSize(this->texture_filter());
4490 if (has_anisotropic_filter())
4493 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4494 this->anisotropic_filter());
4501 ::google::protobuf::internal::WireFormatLite::StringSize(
4509 ::google::protobuf::internal::WireFormatLite::StringSize(
4514 if (!unknown_fields().empty())
4517 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4520 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4521 _cached_size_ = total_size;
4522 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4526 void data_texture::MergeFrom(const ::google::protobuf::Message &from)
4528 GOOGLE_CHECK_NE(&from,
this);
4529 const data_texture *source =
4530 ::google::protobuf::internal::dynamic_cast_if_available<const data_texture *>(
4534 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4542 void data_texture::MergeFrom(
const data_texture &from)
4544 GOOGLE_CHECK_NE(&from,
this);
4545 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
4547 if (from.has_name())
4549 set_name(from.name());
4551 if (from.has_unit())
4553 set_unit(from.unit());
4555 if (from.has_texture_filter())
4557 set_texture_attribs_filter(from.texture_filter());
4559 if (from.has_anisotropic_filter())
4561 set_anisotropic_filter(from.anisotropic_filter());
4563 if (from.has_image())
4565 set_image(from.image());
4567 if (from.has_format())
4569 set_format(from.format());
4572 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4575 void data_texture::CopyFrom(const ::google::protobuf::Message &from)
4577 if (&from ==
this)
return;
4582 void data_texture::CopyFrom(
const data_texture &from)
4584 if (&from ==
this)
return;
4589 bool data_texture::IsInitialized()
const
4591 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f)
return false;
4596 void data_texture::Swap(data_texture *other)
4600 std::swap(name_, other->name_);
4601 std::swap(unit_, other->unit_);
4602 std::swap(texture_filter_, other->texture_filter_);
4603 std::swap(anisotropic_filter_, other->anisotropic_filter_);
4604 std::swap(image_, other->image_);
4605 std::swap(format_, other->format_);
4606 std::swap(_has_bits_[0], other->_has_bits_[0]);
4607 _unknown_fields_.Swap(&other->_unknown_fields_);
4608 std::swap(_cached_size_, other->_cached_size_);
4612 ::google::protobuf::Metadata data_texture::GetMetadata()
const
4614 protobuf_AssignDescriptorsOnce();
4615 ::google::protobuf::Metadata metadata;
4616 metadata.descriptor = data_texture_descriptor_;
4617 metadata.reflection = data_texture_reflection_;
4625 const int data_scenegraph_attribs_tuple::kSrcFieldNumber;
4626 const int data_scenegraph_attribs_tuple::kDstFieldNumber;
4629 data_scenegraph_attribs_tuple::data_scenegraph_attribs_tuple()
4630 : ::google::protobuf::Message()
4635 void data_scenegraph_attribs_tuple::InitAsDefaultInstance()
4639 data_scenegraph_attribs_tuple::data_scenegraph_attribs_tuple(
const data_scenegraph_attribs_tuple &from)
4640 : ::google::protobuf::Message()
4646 void data_scenegraph_attribs_tuple::SharedCtor()
4651 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4654 data_scenegraph_attribs_tuple::~data_scenegraph_attribs_tuple()
4659 void data_scenegraph_attribs_tuple::SharedDtor()
4661 if (
this != default_instance_)
4666 void data_scenegraph_attribs_tuple::SetCachedSize(
int size)
const
4668 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4669 _cached_size_ = size;
4670 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4672 const ::google::protobuf::Descriptor *data_scenegraph_attribs_tuple::descriptor()
4674 protobuf_AssignDescriptorsOnce();
4675 return data_scenegraph_attribs_tuple_descriptor_;
4678 const data_scenegraph_attribs_tuple &data_scenegraph_attribs_tuple::default_instance()
4680 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4681 return *default_instance_;
4684 data_scenegraph_attribs_tuple *data_scenegraph_attribs_tuple::default_instance_ = NULL;
4686 data_scenegraph_attribs_tuple *data_scenegraph_attribs_tuple::New()
const
4688 return new data_scenegraph_attribs_tuple;
4691 void data_scenegraph_attribs_tuple::Clear()
4693 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4698 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4699 mutable_unknown_fields()->Clear();
4702 bool data_scenegraph_attribs_tuple::MergePartialFromCodedStream(
4703 ::google::protobuf::io::CodedInputStream *input)
4705 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4707 while ((tag = input->ReadTag()) != 0)
4709 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
4714 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4715 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4717 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4724 goto handle_uninterpreted;
4726 if (input->ExpectTag(16))
goto parse_dst;
4733 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4734 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4737 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4744 goto handle_uninterpreted;
4746 if (input->ExpectAtEnd())
return true;
4752 handle_uninterpreted:
4753 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4754 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
4758 DO_(::google::protobuf::internal::WireFormat::SkipField(
4759 input, tag, mutable_unknown_fields()));
4768 void data_scenegraph_attribs_tuple::SerializeWithCachedSizes(
4769 ::google::protobuf::io::CodedOutputStream *output)
const
4774 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->src(), output);
4780 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dst(), output);
4783 if (!unknown_fields().empty())
4785 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4786 unknown_fields(), output);
4796 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->src(), target);
4802 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dst(), target);
4805 if (!unknown_fields().empty())
4807 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4808 unknown_fields(), target);
4813 int data_scenegraph_attribs_tuple::ByteSize()
const
4817 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4823 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4831 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4836 if (!unknown_fields().empty())
4839 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4842 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4843 _cached_size_ = total_size;
4844 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4848 void data_scenegraph_attribs_tuple::MergeFrom(const ::google::protobuf::Message &from)
4850 GOOGLE_CHECK_NE(&from,
this);
4851 const data_scenegraph_attribs_tuple *source =
4852 ::google::protobuf::internal::dynamic_cast_if_available<const data_scenegraph_attribs_tuple *>(
4856 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4864 void data_scenegraph_attribs_tuple::MergeFrom(
const data_scenegraph_attribs_tuple &from)
4866 GOOGLE_CHECK_NE(&from,
this);
4867 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
4871 set_src(from.src());
4875 set_dst(from.dst());
4878 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4881 void data_scenegraph_attribs_tuple::CopyFrom(const ::google::protobuf::Message &from)
4883 if (&from ==
this)
return;
4888 void data_scenegraph_attribs_tuple::CopyFrom(
const data_scenegraph_attribs_tuple &from)
4890 if (&from ==
this)
return;
4895 bool data_scenegraph_attribs_tuple::IsInitialized()
const
4897 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
4902 void data_scenegraph_attribs_tuple::Swap(data_scenegraph_attribs_tuple *other)
4906 std::swap(src_, other->src_);
4907 std::swap(dst_, other->dst_);
4908 std::swap(_has_bits_[0], other->_has_bits_[0]);
4909 _unknown_fields_.Swap(&other->_unknown_fields_);
4910 std::swap(_cached_size_, other->_cached_size_);
4914 ::google::protobuf::Metadata data_scenegraph_attribs_tuple::GetMetadata()
const
4916 protobuf_AssignDescriptorsOnce();
4917 ::google::protobuf::Metadata metadata;
4918 metadata.descriptor = data_scenegraph_attribs_tuple_descriptor_;
4919 metadata.reflection = data_scenegraph_attribs_tuple_reflection_;
4927 const int data_scenegraph::kNameFieldNumber;
4928 const int data_scenegraph::kNodesFieldNumber;
4929 const int data_scenegraph::kEdgesFieldNumber;
4932 data_scenegraph::data_scenegraph()
4933 : ::google::protobuf::Message()
4938 void data_scenegraph::InitAsDefaultInstance()
4942 data_scenegraph::data_scenegraph(
const data_scenegraph &from)
4943 : ::google::protobuf::Message()
4949 void data_scenegraph::SharedCtor()
4952 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
4953 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4956 data_scenegraph::~data_scenegraph()
4961 void data_scenegraph::SharedDtor()
4963 if (name_ != &::google::protobuf::internal::kEmptyString)
4967 if (
this != default_instance_)
4972 void data_scenegraph::SetCachedSize(
int size)
const
4974 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4975 _cached_size_ = size;
4976 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4978 const ::google::protobuf::Descriptor *data_scenegraph::descriptor()
4980 protobuf_AssignDescriptorsOnce();
4981 return data_scenegraph_descriptor_;
4984 const data_scenegraph &data_scenegraph::default_instance()
4986 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4987 return *default_instance_;
4990 data_scenegraph *data_scenegraph::default_instance_ = NULL;
4992 data_scenegraph *data_scenegraph::New()
const
4994 return new data_scenegraph;
4997 void data_scenegraph::Clear()
4999 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5003 if (name_ != &::google::protobuf::internal::kEmptyString)
5011 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5012 mutable_unknown_fields()->Clear();
5015 bool data_scenegraph::MergePartialFromCodedStream(
5016 ::google::protobuf::io::CodedInputStream *input)
5018 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5020 while ((tag = input->ReadTag()) != 0)
5022 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5027 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5028 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5030 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5031 input, this->mutable_name()));
5032 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5033 this->name().data(), this->name().length(),
5034 ::google::protobuf::internal::WireFormat::PARSE);
5038 goto handle_uninterpreted;
5040 if (input->ExpectTag(18))
goto parse_nodes;
5047 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5048 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5051 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5052 input, this->add_nodes()));
5053 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5054 this->nodes(this->nodes_size() - 1).data(),
5055 this->nodes(this->nodes_size() - 1).length(),
5056 ::google::protobuf::internal::WireFormat::PARSE);
5060 goto handle_uninterpreted;
5062 if (input->ExpectTag(18))
goto parse_nodes;
5063 if (input->ExpectTag(26))
goto parse_edges;
5070 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5071 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5074 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5075 input, add_edges()));
5079 goto handle_uninterpreted;
5081 if (input->ExpectTag(26))
goto parse_edges;
5082 if (input->ExpectAtEnd())
return true;
5088 handle_uninterpreted:
5089 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5090 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5094 DO_(::google::protobuf::internal::WireFormat::SkipField(
5095 input, tag, mutable_unknown_fields()));
5104 void data_scenegraph::SerializeWithCachedSizes(
5105 ::google::protobuf::io::CodedOutputStream *output)
const
5110 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5111 this->name().data(), this->name().length(),
5112 ::google::protobuf::internal::WireFormat::SERIALIZE);
5113 ::google::protobuf::internal::WireFormatLite::WriteString(
5114 1, this->name(), output);
5118 for (
int i = 0; i < this->nodes_size(); i++)
5120 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5121 this->nodes(i).data(), this->nodes(i).length(),
5122 ::google::protobuf::internal::WireFormat::SERIALIZE);
5123 ::google::protobuf::internal::WireFormatLite::WriteString(
5124 2, this->nodes(i), output);
5128 for (
int i = 0; i < this->edges_size(); i++)
5130 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5131 3, this->edges(i), output);
5134 if (!unknown_fields().empty())
5136 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5137 unknown_fields(), output);
5147 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5148 this->name().data(), this->name().length(),
5149 ::google::protobuf::internal::WireFormat::SERIALIZE);
5151 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5152 1, this->name(), target);
5156 for (
int i = 0; i < this->nodes_size(); i++)
5158 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5159 this->nodes(i).data(), this->nodes(i).length(),
5160 ::google::protobuf::internal::WireFormat::SERIALIZE);
5161 target = ::google::protobuf::internal::WireFormatLite::
5162 WriteStringToArray(2, this->nodes(i), target);
5166 for (
int i = 0; i < this->edges_size(); i++)
5168 target = ::google::protobuf::internal::WireFormatLite::
5169 WriteMessageNoVirtualToArray(
5170 3, this->edges(i), target);
5173 if (!unknown_fields().empty())
5175 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5176 unknown_fields(), target);
5181 int data_scenegraph::ByteSize()
const
5185 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5191 ::google::protobuf::internal::WireFormatLite::StringSize(
5197 total_size += 1 * this->nodes_size();
5198 for (
int i = 0; i < this->nodes_size(); i++)
5200 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
5205 total_size += 1 * this->edges_size();
5206 for (
int i = 0; i < this->edges_size(); i++)
5209 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5213 if (!unknown_fields().empty())
5216 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5219 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5220 _cached_size_ = total_size;
5221 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5225 void data_scenegraph::MergeFrom(const ::google::protobuf::Message &from)
5227 GOOGLE_CHECK_NE(&from,
this);
5228 const data_scenegraph *source =
5229 ::google::protobuf::internal::dynamic_cast_if_available<const data_scenegraph *>(
5233 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5241 void data_scenegraph::MergeFrom(
const data_scenegraph &from)
5243 GOOGLE_CHECK_NE(&from,
this);
5244 nodes_.MergeFrom(from.nodes_);
5245 edges_.MergeFrom(from.edges_);
5246 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
5248 if (from.has_name())
5250 set_name(from.name());
5253 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5256 void data_scenegraph::CopyFrom(const ::google::protobuf::Message &from)
5258 if (&from ==
this)
return;
5263 void data_scenegraph::CopyFrom(
const data_scenegraph &from)
5265 if (&from ==
this)
return;
5270 bool data_scenegraph::IsInitialized()
const
5272 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
5274 for (
int i = 0; i < edges_size(); i++)
5276 if (!this->edges(i).IsInitialized())
return false;
5281 void data_scenegraph::Swap(data_scenegraph *other)
5285 std::swap(name_, other->name_);
5286 nodes_.Swap(&other->nodes_);
5287 edges_.Swap(&other->edges_);
5288 std::swap(_has_bits_[0], other->_has_bits_[0]);
5289 _unknown_fields_.Swap(&other->_unknown_fields_);
5290 std::swap(_cached_size_, other->_cached_size_);
5294 ::google::protobuf::Metadata data_scenegraph::GetMetadata()
const
5296 protobuf_AssignDescriptorsOnce();
5297 ::google::protobuf::Metadata metadata;
5298 metadata.descriptor = data_scenegraph_descriptor_;
5299 metadata.reflection = data_scenegraph_reflection_;
5307 const int data_beziercurve::kNameFieldNumber;
5308 const int data_beziercurve::kPointsFieldNumber;
5309 const int data_beziercurve::kNormalsFieldNumber;
5312 data_beziercurve::data_beziercurve()
5313 : ::google::protobuf::Message()
5318 void data_beziercurve::InitAsDefaultInstance()
5322 data_beziercurve::data_beziercurve(
const data_beziercurve &from)
5323 : ::google::protobuf::Message()
5329 void data_beziercurve::SharedCtor()
5332 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
5334 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5337 data_beziercurve::~data_beziercurve()
5342 void data_beziercurve::SharedDtor()
5344 if (name_ != &::google::protobuf::internal::kEmptyString)
5348 if (
this != default_instance_)
5353 void data_beziercurve::SetCachedSize(
int size)
const
5355 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5356 _cached_size_ = size;
5357 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5359 const ::google::protobuf::Descriptor *data_beziercurve::descriptor()
5361 protobuf_AssignDescriptorsOnce();
5362 return data_beziercurve_descriptor_;
5365 const data_beziercurve &data_beziercurve::default_instance()
5367 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
5368 return *default_instance_;
5371 data_beziercurve *data_beziercurve::default_instance_ = NULL;
5373 data_beziercurve *data_beziercurve::New()
const
5375 return new data_beziercurve;
5378 void data_beziercurve::Clear()
5380 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5384 if (name_ != &::google::protobuf::internal::kEmptyString)
5392 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5393 mutable_unknown_fields()->Clear();
5396 bool data_beziercurve::MergePartialFromCodedStream(
5397 ::google::protobuf::io::CodedInputStream *input)
5399 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5401 while ((tag = input->ReadTag()) != 0)
5403 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5408 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5409 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5411 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5412 input, this->mutable_name()));
5413 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5414 this->name().data(), this->name().length(),
5415 ::google::protobuf::internal::WireFormat::PARSE);
5419 goto handle_uninterpreted;
5421 if (input->ExpectTag(18))
goto parse_points;
5428 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5429 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5432 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5433 input, add_points()));
5437 goto handle_uninterpreted;
5439 if (input->ExpectTag(18))
goto parse_points;
5440 if (input->ExpectTag(24))
goto parse_normals;
5447 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5448 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
5452 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5453 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5455 if (::mondschein::io::mbd::normal_e_IsValid(value))
5457 set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
5461 mutable_unknown_fields()->AddVarint(3, value);
5466 goto handle_uninterpreted;
5468 if (input->ExpectAtEnd())
return true;
5474 handle_uninterpreted:
5475 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5476 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5480 DO_(::google::protobuf::internal::WireFormat::SkipField(
5481 input, tag, mutable_unknown_fields()));
5490 void data_beziercurve::SerializeWithCachedSizes(
5491 ::google::protobuf::io::CodedOutputStream *output)
const
5496 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5497 this->name().data(), this->name().length(),
5498 ::google::protobuf::internal::WireFormat::SERIALIZE);
5499 ::google::protobuf::internal::WireFormatLite::WriteString(
5500 1, this->name(), output);
5504 for (
int i = 0; i < this->points_size(); i++)
5506 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5507 2, this->points(i), output);
5513 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5514 3, this->normals(), output);
5517 if (!unknown_fields().empty())
5519 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5520 unknown_fields(), output);
5530 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5531 this->name().data(), this->name().length(),
5532 ::google::protobuf::internal::WireFormat::SERIALIZE);
5534 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5535 1, this->name(), target);
5539 for (
int i = 0; i < this->points_size(); i++)
5541 target = ::google::protobuf::internal::WireFormatLite::
5542 WriteMessageNoVirtualToArray(
5543 2, this->points(i), target);
5549 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5550 3, this->normals(), target);
5553 if (!unknown_fields().empty())
5555 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5556 unknown_fields(), target);
5561 int data_beziercurve::ByteSize()
const
5565 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5571 ::google::protobuf::internal::WireFormatLite::StringSize(
5579 ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
5584 total_size += 1 * this->points_size();
5585 for (
int i = 0; i < this->points_size(); i++)
5588 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5592 if (!unknown_fields().empty())
5595 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5598 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5599 _cached_size_ = total_size;
5600 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5604 void data_beziercurve::MergeFrom(const ::google::protobuf::Message &from)
5606 GOOGLE_CHECK_NE(&from,
this);
5607 const data_beziercurve *source =
5608 ::google::protobuf::internal::dynamic_cast_if_available<const data_beziercurve *>(
5612 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5620 void data_beziercurve::MergeFrom(
const data_beziercurve &from)
5622 GOOGLE_CHECK_NE(&from,
this);
5623 points_.MergeFrom(from.points_);
5624 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
5626 if (from.has_name())
5628 set_name(from.name());
5630 if (from.has_normals())
5632 set_normals(from.normals());
5635 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5638 void data_beziercurve::CopyFrom(const ::google::protobuf::Message &from)
5640 if (&from ==
this)
return;
5645 void data_beziercurve::CopyFrom(
const data_beziercurve &from)
5647 if (&from ==
this)
return;
5652 bool data_beziercurve::IsInitialized()
const
5654 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
5656 for (
int i = 0; i < points_size(); i++)
5658 if (!this->points(i).IsInitialized())
return false;
5663 void data_beziercurve::Swap(data_beziercurve *other)
5667 std::swap(name_, other->name_);
5668 points_.Swap(&other->points_);
5669 std::swap(normals_, other->normals_);
5670 std::swap(_has_bits_[0], other->_has_bits_[0]);
5671 _unknown_fields_.Swap(&other->_unknown_fields_);
5672 std::swap(_cached_size_, other->_cached_size_);
5676 ::google::protobuf::Metadata data_beziercurve::GetMetadata()
const
5678 protobuf_AssignDescriptorsOnce();
5679 ::google::protobuf::Metadata metadata;
5680 metadata.descriptor = data_beziercurve_descriptor_;
5681 metadata.reflection = data_beziercurve_reflection_;
5689 const int data_bezierpatch::kNameFieldNumber;
5690 const int data_bezierpatch::kCurvesFieldNumber;
5691 const int data_bezierpatch::kNormalsFieldNumber;
5694 data_bezierpatch::data_bezierpatch()
5695 : ::google::protobuf::Message()
5700 void data_bezierpatch::InitAsDefaultInstance()
5704 data_bezierpatch::data_bezierpatch(
const data_bezierpatch &from)
5705 : ::google::protobuf::Message()
5711 void data_bezierpatch::SharedCtor()
5714 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
5716 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5719 data_bezierpatch::~data_bezierpatch()
5724 void data_bezierpatch::SharedDtor()
5726 if (name_ != &::google::protobuf::internal::kEmptyString)
5730 if (
this != default_instance_)
5735 void data_bezierpatch::SetCachedSize(
int size)
const
5737 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5738 _cached_size_ = size;
5739 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5741 const ::google::protobuf::Descriptor *data_bezierpatch::descriptor()
5743 protobuf_AssignDescriptorsOnce();
5744 return data_bezierpatch_descriptor_;
5747 const data_bezierpatch &data_bezierpatch::default_instance()
5749 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
5750 return *default_instance_;
5753 data_bezierpatch *data_bezierpatch::default_instance_ = NULL;
5755 data_bezierpatch *data_bezierpatch::New()
const
5757 return new data_bezierpatch;
5760 void data_bezierpatch::Clear()
5762 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5766 if (name_ != &::google::protobuf::internal::kEmptyString)
5774 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5775 mutable_unknown_fields()->Clear();
5778 bool data_bezierpatch::MergePartialFromCodedStream(
5779 ::google::protobuf::io::CodedInputStream *input)
5781 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5783 while ((tag = input->ReadTag()) != 0)
5785 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5790 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5791 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5793 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5794 input, this->mutable_name()));
5795 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5796 this->name().data(), this->name().length(),
5797 ::google::protobuf::internal::WireFormat::PARSE);
5801 goto handle_uninterpreted;
5803 if (input->ExpectTag(18))
goto parse_curves;
5810 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5811 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5814 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5815 input, add_curves()));
5819 goto handle_uninterpreted;
5821 if (input->ExpectTag(18))
goto parse_curves;
5822 if (input->ExpectTag(24))
goto parse_normals;
5829 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5830 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
5834 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5835 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5837 if (::mondschein::io::mbd::normal_e_IsValid(value))
5839 set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
5843 mutable_unknown_fields()->AddVarint(3, value);
5848 goto handle_uninterpreted;
5850 if (input->ExpectAtEnd())
return true;
5856 handle_uninterpreted:
5857 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5858 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5862 DO_(::google::protobuf::internal::WireFormat::SkipField(
5863 input, tag, mutable_unknown_fields()));
5872 void data_bezierpatch::SerializeWithCachedSizes(
5873 ::google::protobuf::io::CodedOutputStream *output)
const
5878 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5879 this->name().data(), this->name().length(),
5880 ::google::protobuf::internal::WireFormat::SERIALIZE);
5881 ::google::protobuf::internal::WireFormatLite::WriteString(
5882 1, this->name(), output);
5886 for (
int i = 0; i < this->curves_size(); i++)
5888 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5889 2, this->curves(i), output);
5895 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5896 3, this->normals(), output);
5899 if (!unknown_fields().empty())
5901 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5902 unknown_fields(), output);
5912 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5913 this->name().data(), this->name().length(),
5914 ::google::protobuf::internal::WireFormat::SERIALIZE);
5916 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5917 1, this->name(), target);
5921 for (
int i = 0; i < this->curves_size(); i++)
5923 target = ::google::protobuf::internal::WireFormatLite::
5924 WriteMessageNoVirtualToArray(
5925 2, this->curves(i), target);
5931 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5932 3, this->normals(), target);
5935 if (!unknown_fields().empty())
5937 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5938 unknown_fields(), target);
5943 int data_bezierpatch::ByteSize()
const
5947 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5953 ::google::protobuf::internal::WireFormatLite::StringSize(
5961 ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
5966 total_size += 1 * this->curves_size();
5967 for (
int i = 0; i < this->curves_size(); i++)
5970 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5974 if (!unknown_fields().empty())
5977 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5980 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5981 _cached_size_ = total_size;
5982 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5986 void data_bezierpatch::MergeFrom(const ::google::protobuf::Message &from)
5988 GOOGLE_CHECK_NE(&from,
this);
5989 const data_bezierpatch *source =
5990 ::google::protobuf::internal::dynamic_cast_if_available<const data_bezierpatch *>(
5994 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6002 void data_bezierpatch::MergeFrom(
const data_bezierpatch &from)
6004 GOOGLE_CHECK_NE(&from,
this);
6005 curves_.MergeFrom(from.curves_);
6006 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6008 if (from.has_name())
6010 set_name(from.name());
6012 if (from.has_normals())
6014 set_normals(from.normals());
6017 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6020 void data_bezierpatch::CopyFrom(const ::google::protobuf::Message &from)
6022 if (&from ==
this)
return;
6027 void data_bezierpatch::CopyFrom(
const data_bezierpatch &from)
6029 if (&from ==
this)
return;
6034 bool data_bezierpatch::IsInitialized()
const
6036 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
6038 for (
int i = 0; i < curves_size(); i++)
6040 if (!this->curves(i).IsInitialized())
return false;
6045 void data_bezierpatch::Swap(data_bezierpatch *other)
6049 std::swap(name_, other->name_);
6050 curves_.Swap(&other->curves_);
6051 std::swap(normals_, other->normals_);
6052 std::swap(_has_bits_[0], other->_has_bits_[0]);
6053 _unknown_fields_.Swap(&other->_unknown_fields_);
6054 std::swap(_cached_size_, other->_cached_size_);
6058 ::google::protobuf::Metadata data_bezierpatch::GetMetadata()
const
6060 protobuf_AssignDescriptorsOnce();
6061 ::google::protobuf::Metadata metadata;
6062 metadata.descriptor = data_bezierpatch_descriptor_;
6063 metadata.reflection = data_bezierpatch_reflection_;
6071 const int data_nurbscurve::kNameFieldNumber;
6072 const int data_nurbscurve::kDimensionFieldNumber;
6073 const int data_nurbscurve::kPointsFieldNumber;
6074 const int data_nurbscurve::kNormalsFieldNumber;
6077 data_nurbscurve::data_nurbscurve()
6078 : ::google::protobuf::Message()
6083 void data_nurbscurve::InitAsDefaultInstance()
6087 data_nurbscurve::data_nurbscurve(
const data_nurbscurve &from)
6088 : ::google::protobuf::Message()
6094 void data_nurbscurve::SharedCtor()
6097 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
6100 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6103 data_nurbscurve::~data_nurbscurve()
6108 void data_nurbscurve::SharedDtor()
6110 if (name_ != &::google::protobuf::internal::kEmptyString)
6114 if (
this != default_instance_)
6119 void data_nurbscurve::SetCachedSize(
int size)
const
6121 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6122 _cached_size_ = size;
6123 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6125 const ::google::protobuf::Descriptor *data_nurbscurve::descriptor()
6127 protobuf_AssignDescriptorsOnce();
6128 return data_nurbscurve_descriptor_;
6131 const data_nurbscurve &data_nurbscurve::default_instance()
6133 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
6134 return *default_instance_;
6137 data_nurbscurve *data_nurbscurve::default_instance_ = NULL;
6139 data_nurbscurve *data_nurbscurve::New()
const
6141 return new data_nurbscurve;
6144 void data_nurbscurve::Clear()
6146 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6150 if (name_ != &::google::protobuf::internal::kEmptyString)
6159 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6160 mutable_unknown_fields()->Clear();
6163 bool data_nurbscurve::MergePartialFromCodedStream(
6164 ::google::protobuf::io::CodedInputStream *input)
6166 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6168 while ((tag = input->ReadTag()) != 0)
6170 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
6175 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6176 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6178 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6179 input, this->mutable_name()));
6180 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6181 this->name().data(), this->name().length(),
6182 ::google::protobuf::internal::WireFormat::PARSE);
6186 goto handle_uninterpreted;
6188 if (input->ExpectTag(16))
goto parse_dimension;
6195 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6196 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6199 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6201 input, &dimension_)));
6202 set_has_dimension();
6206 goto handle_uninterpreted;
6208 if (input->ExpectTag(26))
goto parse_points;
6215 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6216 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6219 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6220 input, add_points()));
6224 goto handle_uninterpreted;
6226 if (input->ExpectTag(26))
goto parse_points;
6227 if (input->ExpectTag(32))
goto parse_normals;
6234 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6235 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6239 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6240 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6242 if (::mondschein::io::mbd::normal_e_IsValid(value))
6244 set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
6248 mutable_unknown_fields()->AddVarint(4, value);
6253 goto handle_uninterpreted;
6255 if (input->ExpectAtEnd())
return true;
6261 handle_uninterpreted:
6262 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
6267 DO_(::google::protobuf::internal::WireFormat::SkipField(
6268 input, tag, mutable_unknown_fields()));
6277 void data_nurbscurve::SerializeWithCachedSizes(
6278 ::google::protobuf::io::CodedOutputStream *output)
const
6283 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6284 this->name().data(), this->name().length(),
6285 ::google::protobuf::internal::WireFormat::SERIALIZE);
6286 ::google::protobuf::internal::WireFormatLite::WriteString(
6287 1, this->name(), output);
6291 if (has_dimension())
6293 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dimension(), output);
6297 for (
int i = 0; i < this->points_size(); i++)
6299 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6300 3, this->points(i), output);
6306 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6307 4, this->normals(), output);
6310 if (!unknown_fields().empty())
6312 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6313 unknown_fields(), output);
6323 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6324 this->name().data(), this->name().length(),
6325 ::google::protobuf::internal::WireFormat::SERIALIZE);
6327 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6328 1, this->name(), target);
6332 if (has_dimension())
6334 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dimension(), target);
6338 for (
int i = 0; i < this->points_size(); i++)
6340 target = ::google::protobuf::internal::WireFormatLite::
6341 WriteMessageNoVirtualToArray(
6342 3, this->points(i), target);
6348 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6349 4, this->normals(), target);
6352 if (!unknown_fields().empty())
6354 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6355 unknown_fields(), target);
6360 int data_nurbscurve::ByteSize()
const
6364 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6370 ::google::protobuf::internal::WireFormatLite::StringSize(
6375 if (has_dimension())
6378 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6386 ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
6391 total_size += 1 * this->points_size();
6392 for (
int i = 0; i < this->points_size(); i++)
6395 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6399 if (!unknown_fields().empty())
6402 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6405 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6406 _cached_size_ = total_size;
6407 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6411 void data_nurbscurve::MergeFrom(const ::google::protobuf::Message &from)
6413 GOOGLE_CHECK_NE(&from,
this);
6414 const data_nurbscurve *source =
6415 ::google::protobuf::internal::dynamic_cast_if_available<const data_nurbscurve *>(
6419 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6427 void data_nurbscurve::MergeFrom(
const data_nurbscurve &from)
6429 GOOGLE_CHECK_NE(&from,
this);
6430 points_.MergeFrom(from.points_);
6431 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6433 if (from.has_name())
6435 set_name(from.name());
6437 if (from.has_dimension())
6439 set_dimension(from.dimension());
6441 if (from.has_normals())
6443 set_normals(from.normals());
6446 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6449 void data_nurbscurve::CopyFrom(const ::google::protobuf::Message &from)
6451 if (&from ==
this)
return;
6456 void data_nurbscurve::CopyFrom(
const data_nurbscurve &from)
6458 if (&from ==
this)
return;
6463 bool data_nurbscurve::IsInitialized()
const
6465 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
6467 for (
int i = 0; i < points_size(); i++)
6469 if (!this->points(i).IsInitialized())
return false;
6474 void data_nurbscurve::Swap(data_nurbscurve *other)
6478 std::swap(name_, other->name_);
6479 std::swap(dimension_, other->dimension_);
6480 points_.Swap(&other->points_);
6481 std::swap(normals_, other->normals_);
6482 std::swap(_has_bits_[0], other->_has_bits_[0]);
6483 _unknown_fields_.Swap(&other->_unknown_fields_);
6484 std::swap(_cached_size_, other->_cached_size_);
6488 ::google::protobuf::Metadata data_nurbscurve::GetMetadata()
const
6490 protobuf_AssignDescriptorsOnce();
6491 ::google::protobuf::Metadata metadata;
6492 metadata.descriptor = data_nurbscurve_descriptor_;
6493 metadata.reflection = data_nurbscurve_reflection_;
6501 const int data_nurbspatch::kNameFieldNumber;
6502 const int data_nurbspatch::kDimensionFieldNumber;
6503 const int data_nurbspatch::kCurvesFieldNumber;
6504 const int data_nurbspatch::kNormalsFieldNumber;
6507 data_nurbspatch::data_nurbspatch()
6508 : ::google::protobuf::Message()
6513 void data_nurbspatch::InitAsDefaultInstance()
6517 data_nurbspatch::data_nurbspatch(
const data_nurbspatch &from)
6518 : ::google::protobuf::Message()
6524 void data_nurbspatch::SharedCtor()
6527 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
6530 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6533 data_nurbspatch::~data_nurbspatch()
6538 void data_nurbspatch::SharedDtor()
6540 if (name_ != &::google::protobuf::internal::kEmptyString)
6544 if (
this != default_instance_)
6549 void data_nurbspatch::SetCachedSize(
int size)
const
6551 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6552 _cached_size_ = size;
6553 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6555 const ::google::protobuf::Descriptor *data_nurbspatch::descriptor()
6557 protobuf_AssignDescriptorsOnce();
6558 return data_nurbspatch_descriptor_;
6561 const data_nurbspatch &data_nurbspatch::default_instance()
6563 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
6564 return *default_instance_;
6567 data_nurbspatch *data_nurbspatch::default_instance_ = NULL;
6569 data_nurbspatch *data_nurbspatch::New()
const
6571 return new data_nurbspatch;
6574 void data_nurbspatch::Clear()
6576 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6580 if (name_ != &::google::protobuf::internal::kEmptyString)
6589 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6590 mutable_unknown_fields()->Clear();
6593 bool data_nurbspatch::MergePartialFromCodedStream(
6594 ::google::protobuf::io::CodedInputStream *input)
6596 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6598 while ((tag = input->ReadTag()) != 0)
6600 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
6605 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6606 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6608 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6609 input, this->mutable_name()));
6610 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6611 this->name().data(), this->name().length(),
6612 ::google::protobuf::internal::WireFormat::PARSE);
6616 goto handle_uninterpreted;
6618 if (input->ExpectTag(16))
goto parse_dimension;
6625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6629 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6631 input, &dimension_)));
6632 set_has_dimension();
6636 goto handle_uninterpreted;
6638 if (input->ExpectTag(26))
goto parse_curves;
6645 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6646 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6649 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6650 input, add_curves()));
6654 goto handle_uninterpreted;
6656 if (input->ExpectTag(26))
goto parse_curves;
6657 if (input->ExpectTag(32))
goto parse_normals;
6664 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6665 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6669 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6670 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6672 if (::mondschein::io::mbd::normal_e_IsValid(value))
6674 set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
6678 mutable_unknown_fields()->AddVarint(4, value);
6683 goto handle_uninterpreted;
6685 if (input->ExpectAtEnd())
return true;
6691 handle_uninterpreted:
6692 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
6697 DO_(::google::protobuf::internal::WireFormat::SkipField(
6698 input, tag, mutable_unknown_fields()));
6707 void data_nurbspatch::SerializeWithCachedSizes(
6708 ::google::protobuf::io::CodedOutputStream *output)
const
6713 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6714 this->name().data(), this->name().length(),
6715 ::google::protobuf::internal::WireFormat::SERIALIZE);
6716 ::google::protobuf::internal::WireFormatLite::WriteString(
6717 1, this->name(), output);
6721 if (has_dimension())
6723 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dimension(), output);
6727 for (
int i = 0; i < this->curves_size(); i++)
6729 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6730 3, this->curves(i), output);
6736 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6737 4, this->normals(), output);
6740 if (!unknown_fields().empty())
6742 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6743 unknown_fields(), output);
6753 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6754 this->name().data(), this->name().length(),
6755 ::google::protobuf::internal::WireFormat::SERIALIZE);
6757 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6758 1, this->name(), target);
6762 if (has_dimension())
6764 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dimension(), target);
6768 for (
int i = 0; i < this->curves_size(); i++)
6770 target = ::google::protobuf::internal::WireFormatLite::
6771 WriteMessageNoVirtualToArray(
6772 3, this->curves(i), target);
6778 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6779 4, this->normals(), target);
6782 if (!unknown_fields().empty())
6784 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6785 unknown_fields(), target);
6790 int data_nurbspatch::ByteSize()
const
6794 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6800 ::google::protobuf::internal::WireFormatLite::StringSize(
6805 if (has_dimension())
6808 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6816 ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
6821 total_size += 1 * this->curves_size();
6822 for (
int i = 0; i < this->curves_size(); i++)
6825 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6829 if (!unknown_fields().empty())
6832 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6835 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6836 _cached_size_ = total_size;
6837 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6841 void data_nurbspatch::MergeFrom(const ::google::protobuf::Message &from)
6843 GOOGLE_CHECK_NE(&from,
this);
6844 const data_nurbspatch *source =
6845 ::google::protobuf::internal::dynamic_cast_if_available<const data_nurbspatch *>(
6849 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6857 void data_nurbspatch::MergeFrom(
const data_nurbspatch &from)
6859 GOOGLE_CHECK_NE(&from,
this);
6860 curves_.MergeFrom(from.curves_);
6861 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6863 if (from.has_name())
6865 set_name(from.name());
6867 if (from.has_dimension())
6869 set_dimension(from.dimension());
6871 if (from.has_normals())
6873 set_normals(from.normals());
6876 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6879 void data_nurbspatch::CopyFrom(const ::google::protobuf::Message &from)
6881 if (&from ==
this)
return;
6886 void data_nurbspatch::CopyFrom(
const data_nurbspatch &from)
6888 if (&from ==
this)
return;
6893 bool data_nurbspatch::IsInitialized()
const
6895 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
6897 for (
int i = 0; i < curves_size(); i++)
6899 if (!this->curves(i).IsInitialized())
return false;
6904 void data_nurbspatch::Swap(data_nurbspatch *other)
6908 std::swap(name_, other->name_);
6909 std::swap(dimension_, other->dimension_);
6910 curves_.Swap(&other->curves_);
6911 std::swap(normals_, other->normals_);
6912 std::swap(_has_bits_[0], other->_has_bits_[0]);
6913 _unknown_fields_.Swap(&other->_unknown_fields_);
6914 std::swap(_cached_size_, other->_cached_size_);
6918 ::google::protobuf::Metadata data_nurbspatch::GetMetadata()
const
6920 protobuf_AssignDescriptorsOnce();
6921 ::google::protobuf::Metadata metadata;
6922 metadata.descriptor = data_nurbspatch_descriptor_;
6923 metadata.reflection = data_nurbspatch_reflection_;
6931 const int data::kNameFieldNumber;
6932 const int data::kCamerasFieldNumber;
6933 const int data::kLightsFieldNumber;
6934 const int data::kMaterialsFieldNumber;
6935 const int data::kMeshesFieldNumber;
6936 const int data::kPosesFieldNumber;
6937 const int data::kTexturesFieldNumber;
6938 const int data::kBeziercurvesFieldNumber;
6939 const int data::kNurbscurvesFieldNumber;
6940 const int data::kBezierpatchesFieldNumber;
6941 const int data::kNurbspatchesFieldNumber;
6942 const int data::kScenegraphsFieldNumber;
6946 : ::google::protobuf::Message()
6951 void data::InitAsDefaultInstance()
6955 data::data(
const data &from)
6956 : ::google::protobuf::Message()
6962 void data::SharedCtor()
6965 name_ =
const_cast< ::std::string *
>(&::google::protobuf::internal::kEmptyString);
6966 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6974 void data::SharedDtor()
6976 if (name_ != &::google::protobuf::internal::kEmptyString)
6980 if (
this != default_instance_)
6985 void data::SetCachedSize(
int size)
const
6987 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6988 _cached_size_ = size;
6989 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6991 const ::google::protobuf::Descriptor *data::descriptor()
6993 protobuf_AssignDescriptorsOnce();
6994 return data_descriptor_;
6997 const data &data::default_instance()
6999 if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
7000 return *default_instance_;
7003 data *data::default_instance_ = NULL;
7005 data *data::New()
const
7012 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
7016 if (name_ != &::google::protobuf::internal::kEmptyString)
7028 beziercurves_.Clear();
7029 nurbscurves_.Clear();
7030 bezierpatches_.Clear();
7031 nurbspatches_.Clear();
7032 scenegraphs_.Clear();
7033 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
7034 mutable_unknown_fields()->Clear();
7037 bool data::MergePartialFromCodedStream(
7038 ::google::protobuf::io::CodedInputStream *input)
7040 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
7042 while ((tag = input->ReadTag()) != 0)
7044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
7049 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7050 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7052 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7053 input, this->mutable_name()));
7054 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7055 this->name().data(), this->name().length(),
7056 ::google::protobuf::internal::WireFormat::PARSE);
7060 goto handle_uninterpreted;
7062 if (input->ExpectTag(18))
goto parse_cameras;
7069 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7070 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7073 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7074 input, add_cameras()));
7078 goto handle_uninterpreted;
7080 if (input->ExpectTag(18))
goto parse_cameras;
7081 if (input->ExpectTag(26))
goto parse_lights;
7088 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7089 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7092 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7093 input, add_lights()));
7097 goto handle_uninterpreted;
7099 if (input->ExpectTag(26))
goto parse_lights;
7100 if (input->ExpectTag(34))
goto parse_materials;
7107 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7108 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7111 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7112 input, add_materials()));
7116 goto handle_uninterpreted;
7118 if (input->ExpectTag(34))
goto parse_materials;
7119 if (input->ExpectTag(42))
goto parse_meshes;
7126 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7127 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7130 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7131 input, add_meshes()));
7135 goto handle_uninterpreted;
7137 if (input->ExpectTag(42))
goto parse_meshes;
7138 if (input->ExpectTag(50))
goto parse_poses;
7145 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7146 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7149 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7150 input, add_poses()));
7154 goto handle_uninterpreted;
7156 if (input->ExpectTag(50))
goto parse_poses;
7157 if (input->ExpectTag(58))
goto parse_textures;
7164 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7168 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7169 input, add_textures()));
7173 goto handle_uninterpreted;
7175 if (input->ExpectTag(58))
goto parse_textures;
7176 if (input->ExpectTag(66))
goto parse_beziercurves;
7183 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7184 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7187 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7188 input, add_beziercurves()));
7192 goto handle_uninterpreted;
7194 if (input->ExpectTag(66))
goto parse_beziercurves;
7195 if (input->ExpectTag(74))
goto parse_nurbscurves;
7202 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7203 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7207 input, add_nurbscurves()));
7211 goto handle_uninterpreted;
7213 if (input->ExpectTag(74))
goto parse_nurbscurves;
7214 if (input->ExpectTag(82))
goto parse_bezierpatches;
7221 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7222 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7224 parse_bezierpatches:
7225 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7226 input, add_bezierpatches()));
7230 goto handle_uninterpreted;
7232 if (input->ExpectTag(82))
goto parse_bezierpatches;
7233 if (input->ExpectTag(90))
goto parse_nurbspatches;
7240 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7241 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7244 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7245 input, add_nurbspatches()));
7249 goto handle_uninterpreted;
7251 if (input->ExpectTag(90))
goto parse_nurbspatches;
7252 if (input->ExpectTag(98))
goto parse_scenegraphs;
7259 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7263 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7264 input, add_scenegraphs()));
7268 goto handle_uninterpreted;
7270 if (input->ExpectTag(98))
goto parse_scenegraphs;
7271 if (input->ExpectAtEnd())
return true;
7277 handle_uninterpreted:
7278 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7279 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
7283 DO_(::google::protobuf::internal::WireFormat::SkipField(
7284 input, tag, mutable_unknown_fields()));
7293 void data::SerializeWithCachedSizes(
7294 ::google::protobuf::io::CodedOutputStream *output)
const
7299 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7300 this->name().data(), this->name().length(),
7301 ::google::protobuf::internal::WireFormat::SERIALIZE);
7302 ::google::protobuf::internal::WireFormatLite::WriteString(
7303 1, this->name(), output);
7307 for (
int i = 0; i < this->cameras_size(); i++)
7309 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7310 2, this->cameras(i), output);
7314 for (
int i = 0; i < this->lights_size(); i++)
7316 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7317 3, this->lights(i), output);
7321 for (
int i = 0; i < this->materials_size(); i++)
7323 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7324 4, this->materials(i), output);
7328 for (
int i = 0; i < this->meshes_size(); i++)
7330 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7331 5, this->meshes(i), output);
7335 for (
int i = 0; i < this->poses_size(); i++)
7337 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7338 6, this->poses(i), output);
7342 for (
int i = 0; i < this->textures_size(); i++)
7344 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7345 7, this->textures(i), output);
7349 for (
int i = 0; i < this->beziercurves_size(); i++)
7351 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7352 8, this->beziercurves(i), output);
7356 for (
int i = 0; i < this->nurbscurves_size(); i++)
7358 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7359 9, this->nurbscurves(i), output);
7363 for (
int i = 0; i < this->bezierpatches_size(); i++)
7365 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7366 10, this->bezierpatches(i), output);
7370 for (
int i = 0; i < this->nurbspatches_size(); i++)
7372 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7373 11, this->nurbspatches(i), output);
7377 for (
int i = 0; i < this->scenegraphs_size(); i++)
7379 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7380 12, this->scenegraphs(i), output);
7383 if (!unknown_fields().empty())
7385 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7386 unknown_fields(), output);
7396 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7397 this->name().data(), this->name().length(),
7398 ::google::protobuf::internal::WireFormat::SERIALIZE);
7400 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7401 1, this->name(), target);
7405 for (
int i = 0; i < this->cameras_size(); i++)
7407 target = ::google::protobuf::internal::WireFormatLite::
7408 WriteMessageNoVirtualToArray(
7409 2, this->cameras(i), target);
7413 for (
int i = 0; i < this->lights_size(); i++)
7415 target = ::google::protobuf::internal::WireFormatLite::
7416 WriteMessageNoVirtualToArray(
7417 3, this->lights(i), target);
7421 for (
int i = 0; i < this->materials_size(); i++)
7423 target = ::google::protobuf::internal::WireFormatLite::
7424 WriteMessageNoVirtualToArray(
7425 4, this->materials(i), target);
7429 for (
int i = 0; i < this->meshes_size(); i++)
7431 target = ::google::protobuf::internal::WireFormatLite::
7432 WriteMessageNoVirtualToArray(
7433 5, this->meshes(i), target);
7437 for (
int i = 0; i < this->poses_size(); i++)
7439 target = ::google::protobuf::internal::WireFormatLite::
7440 WriteMessageNoVirtualToArray(
7441 6, this->poses(i), target);
7445 for (
int i = 0; i < this->textures_size(); i++)
7447 target = ::google::protobuf::internal::WireFormatLite::
7448 WriteMessageNoVirtualToArray(
7449 7, this->textures(i), target);
7453 for (
int i = 0; i < this->beziercurves_size(); i++)
7455 target = ::google::protobuf::internal::WireFormatLite::
7456 WriteMessageNoVirtualToArray(
7457 8, this->beziercurves(i), target);
7461 for (
int i = 0; i < this->nurbscurves_size(); i++)
7463 target = ::google::protobuf::internal::WireFormatLite::
7464 WriteMessageNoVirtualToArray(
7465 9, this->nurbscurves(i), target);
7469 for (
int i = 0; i < this->bezierpatches_size(); i++)
7471 target = ::google::protobuf::internal::WireFormatLite::
7472 WriteMessageNoVirtualToArray(
7473 10, this->bezierpatches(i), target);
7477 for (
int i = 0; i < this->nurbspatches_size(); i++)
7479 target = ::google::protobuf::internal::WireFormatLite::
7480 WriteMessageNoVirtualToArray(
7481 11, this->nurbspatches(i), target);
7485 for (
int i = 0; i < this->scenegraphs_size(); i++)
7487 target = ::google::protobuf::internal::WireFormatLite::
7488 WriteMessageNoVirtualToArray(
7489 12, this->scenegraphs(i), target);
7492 if (!unknown_fields().empty())
7494 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7495 unknown_fields(), target);
7500 int data::ByteSize()
const
7504 if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
7510 ::google::protobuf::internal::WireFormatLite::StringSize(
7516 total_size += 1 * this->cameras_size();
7517 for (
int i = 0; i < this->cameras_size(); i++)
7520 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7525 total_size += 1 * this->lights_size();
7526 for (
int i = 0; i < this->lights_size(); i++)
7529 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7534 total_size += 1 * this->materials_size();
7535 for (
int i = 0; i < this->materials_size(); i++)
7538 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7539 this->materials(i));
7543 total_size += 1 * this->meshes_size();
7544 for (
int i = 0; i < this->meshes_size(); i++)
7547 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7552 total_size += 1 * this->poses_size();
7553 for (
int i = 0; i < this->poses_size(); i++)
7556 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7561 total_size += 1 * this->textures_size();
7562 for (
int i = 0; i < this->textures_size(); i++)
7565 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7570 total_size += 1 * this->beziercurves_size();
7571 for (
int i = 0; i < this->beziercurves_size(); i++)
7574 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7575 this->beziercurves(i));
7579 total_size += 1 * this->nurbscurves_size();
7580 for (
int i = 0; i < this->nurbscurves_size(); i++)
7583 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7584 this->nurbscurves(i));
7588 total_size += 1 * this->bezierpatches_size();
7589 for (
int i = 0; i < this->bezierpatches_size(); i++)
7592 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7593 this->bezierpatches(i));
7597 total_size += 1 * this->nurbspatches_size();
7598 for (
int i = 0; i < this->nurbspatches_size(); i++)
7601 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7602 this->nurbspatches(i));
7606 total_size += 1 * this->scenegraphs_size();
7607 for (
int i = 0; i < this->scenegraphs_size(); i++)
7610 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7611 this->scenegraphs(i));
7614 if (!unknown_fields().empty())
7617 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7620 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7621 _cached_size_ = total_size;
7622 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7626 void data::MergeFrom(const ::google::protobuf::Message &from)
7628 GOOGLE_CHECK_NE(&from,
this);
7629 const data *source =
7630 ::google::protobuf::internal::dynamic_cast_if_available<const data *>(
7634 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
7642 void data::MergeFrom(
const data &from)
7644 GOOGLE_CHECK_NE(&from,
this);
7645 cameras_.MergeFrom(from.cameras_);
7646 lights_.MergeFrom(from.lights_);
7647 materials_.MergeFrom(from.materials_);
7648 meshes_.MergeFrom(from.meshes_);
7649 poses_.MergeFrom(from.poses_);
7650 textures_.MergeFrom(from.textures_);
7651 beziercurves_.MergeFrom(from.beziercurves_);
7652 nurbscurves_.MergeFrom(from.nurbscurves_);
7653 bezierpatches_.MergeFrom(from.bezierpatches_);
7654 nurbspatches_.MergeFrom(from.nurbspatches_);
7655 scenegraphs_.MergeFrom(from.scenegraphs_);
7656 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
7658 if (from.has_name())
7660 set_name(from.name());
7663 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7666 void data::CopyFrom(const ::google::protobuf::Message &from)
7668 if (&from ==
this)
return;
7673 void data::CopyFrom(
const data &from)
7675 if (&from ==
this)
return;
7680 bool data::IsInitialized()
const
7682 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
7684 for (
int i = 0; i < cameras_size(); i++)
7686 if (!this->cameras(i).IsInitialized())
return false;
7688 for (
int i = 0; i < lights_size(); i++)
7690 if (!this->lights(i).IsInitialized())
return false;
7692 for (
int i = 0; i < materials_size(); i++)
7694 if (!this->materials(i).IsInitialized())
return false;
7696 for (
int i = 0; i < meshes_size(); i++)
7698 if (!this->meshes(i).IsInitialized())
return false;
7700 for (
int i = 0; i < poses_size(); i++)
7702 if (!this->poses(i).IsInitialized())
return false;
7704 for (
int i = 0; i < textures_size(); i++)
7706 if (!this->textures(i).IsInitialized())
return false;
7708 for (
int i = 0; i < beziercurves_size(); i++)
7710 if (!this->beziercurves(i).IsInitialized())
return false;
7712 for (
int i = 0; i < nurbscurves_size(); i++)
7714 if (!this->nurbscurves(i).IsInitialized())
return false;
7716 for (
int i = 0; i < bezierpatches_size(); i++)
7718 if (!this->bezierpatches(i).IsInitialized())
return false;
7720 for (
int i = 0; i < nurbspatches_size(); i++)
7722 if (!this->nurbspatches(i).IsInitialized())
return false;
7724 for (
int i = 0; i < scenegraphs_size(); i++)
7726 if (!this->scenegraphs(i).IsInitialized())
return false;
7731 void data::Swap(data *other)
7735 std::swap(name_, other->name_);
7736 cameras_.Swap(&other->cameras_);
7737 lights_.Swap(&other->lights_);
7738 materials_.Swap(&other->materials_);
7739 meshes_.Swap(&other->meshes_);
7740 poses_.Swap(&other->poses_);
7741 textures_.Swap(&other->textures_);
7742 beziercurves_.Swap(&other->beziercurves_);
7743 nurbscurves_.Swap(&other->nurbscurves_);
7744 bezierpatches_.Swap(&other->bezierpatches_);
7745 nurbspatches_.Swap(&other->nurbspatches_);
7746 scenegraphs_.Swap(&other->scenegraphs_);
7747 std::swap(_has_bits_[0], other->_has_bits_[0]);
7748 _unknown_fields_.Swap(&other->_unknown_fields_);
7749 std::swap(_cached_size_, other->_cached_size_);
7753 ::google::protobuf::Metadata data::GetMetadata()
const
7755 protobuf_AssignDescriptorsOnce();
7756 ::google::protobuf::Metadata metadata;
7757 metadata.descriptor = data_descriptor_;
7758 metadata.reflection = data_reflection_;