4 #ifndef PROTOBUF_ignition_2fmsgs_2fscene_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fscene_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 39 #pragma GCC system_header 42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 45 #include <sys/sysmacros.h> 63 class IGNITION_MSGS_VISIBLE
Scene :
public ::google::protobuf::Message {
75 static const ::google::protobuf::Descriptor* descriptor();
76 static const Scene& default_instance();
78 void Swap(
Scene* other);
84 Scene* New(::google::protobuf::Arena* arena)
const;
85 void CopyFrom(const ::google::protobuf::Message& from);
86 void MergeFrom(const ::google::protobuf::Message& from);
87 void CopyFrom(
const Scene& from);
88 void MergeFrom(
const Scene& from);
90 bool IsInitialized()
const;
93 bool MergePartialFromCodedStream(
94 ::google::protobuf::io::CodedInputStream* input);
95 void SerializeWithCachedSizes(
96 ::google::protobuf::io::CodedOutputStream* output)
const;
97 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
98 bool deterministic, ::google::protobuf::uint8* output)
const;
100 return InternalSerializeWithCachedSizesToArray(
false, output);
106 void SetCachedSize(
int size)
const;
107 void InternalSwap(
Scene* other);
109 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
110 return _internal_metadata_.arena();
112 inline void* MaybeArenaPtr()
const {
113 return _internal_metadata_.raw_arena_ptr();
117 ::google::protobuf::Metadata GetMetadata()
const;
124 bool has_header()
const;
126 static const int kHeaderFieldNumber = 1;
127 const ::ignition::msgs::Header& header()
const;
134 static const int kNameFieldNumber = 2;
135 const ::std::string& name()
const;
136 void set_name(const ::std::string& value);
137 void set_name(
const char* value);
138 void set_name(
const char* value,
size_t size);
144 bool has_ambient()
const;
145 void clear_ambient();
146 static const int kAmbientFieldNumber = 3;
147 const ::ignition::msgs::Color& ambient()
const;
153 bool has_background()
const;
154 void clear_background();
155 static const int kBackgroundFieldNumber = 4;
156 const ::ignition::msgs::Color& background()
const;
162 bool has_sky()
const;
164 static const int kSkyFieldNumber = 5;
165 const ::ignition::msgs::Sky& sky()
const;
171 void clear_shadows();
172 static const int kShadowsFieldNumber = 6;
173 bool shadows()
const;
174 void set_shadows(
bool value);
177 bool has_fog()
const;
179 static const int kFogFieldNumber = 7;
180 const ::ignition::msgs::Fog& fog()
const;
187 static const int kGridFieldNumber = 8;
189 void set_grid(
bool value);
192 int model_size()
const;
194 static const int kModelFieldNumber = 9;
195 const ::ignition::msgs::Model& model(
int index)
const;
198 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
200 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
204 int light_size()
const;
206 static const int kLightFieldNumber = 10;
207 const ::ignition::msgs::Light& light(
int index)
const;
210 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
212 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
216 int joint_size()
const;
218 static const int kJointFieldNumber = 11;
219 const ::ignition::msgs::Joint& joint(
int index)
const;
222 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
224 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
228 void clear_origin_visual();
229 static const int kOriginVisualFieldNumber = 12;
230 bool origin_visual()
const;
231 void set_origin_visual(
bool value);
234 bool has_shadow_caster_material_script()
const;
235 void clear_shadow_caster_material_script();
236 static const int kShadowCasterMaterialScriptFieldNumber = 13;
237 const ::ignition::msgs::Material_Script& shadow_caster_material_script()
const;
245 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
246 bool _is_default_instance_;
248 ::google::protobuf::internal::ArenaStringPtr name_;
253 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
254 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
255 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
260 mutable int _cached_size_;
265 void InitAsDefaultInstance();
266 static Scene* default_instance_;
273 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 278 return !_is_default_instance_ && header_ != NULL;
281 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
286 return header_ != NULL ? *header_ : *default_instance_->header_;
290 if (header_ == NULL) {
291 header_ = new ::ignition::msgs::Header;
316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
320 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
329 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
334 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
335 ::
std::string(reinterpret_cast<const char*>(value), size));
341 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
360 return !_is_default_instance_ && ambient_ != NULL;
363 if (GetArenaNoVirtual() == NULL && ambient_ != NULL)
delete ambient_;
368 return ambient_ != NULL ? *ambient_ : *default_instance_->ambient_;
372 if (ambient_ == NULL) {
373 ambient_ = new ::ignition::msgs::Color;
398 return !_is_default_instance_ && background_ != NULL;
401 if (GetArenaNoVirtual() == NULL && background_ != NULL)
delete background_;
406 return background_ != NULL ? *background_ : *default_instance_->background_;
410 if (background_ == NULL) {
411 background_ = new ::ignition::msgs::Color;
425 background_ = background;
436 return !_is_default_instance_ && sky_ != NULL;
439 if (GetArenaNoVirtual() == NULL && sky_ != NULL)
delete sky_;
444 return sky_ != NULL ? *sky_ : *default_instance_->sky_;
449 sky_ = new ::ignition::msgs::Sky;
488 return !_is_default_instance_ && fog_ != NULL;
491 if (GetArenaNoVirtual() == NULL && fog_ != NULL)
delete fog_;
496 return fog_ != NULL ? *fog_ : *default_instance_->fog_;
501 fog_ = new ::ignition::msgs::Fog;
540 return model_.size();
547 return model_.Get(index);
551 return model_.Mutable(index);
557 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
562 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
570 return light_.size();
577 return light_.Get(index);
581 return light_.Mutable(index);
587 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
592 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
600 return joint_.size();
607 return joint_.Get(index);
611 return joint_.Mutable(index);
617 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
622 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
630 origin_visual_ =
false;
634 return origin_visual_;
638 origin_visual_ = value;
644 return !_is_default_instance_ && shadow_caster_material_script_ != NULL;
647 if (GetArenaNoVirtual() == NULL && shadow_caster_material_script_ != NULL)
delete shadow_caster_material_script_;
648 shadow_caster_material_script_ = NULL;
652 return shadow_caster_material_script_ != NULL ? *shadow_caster_material_script_ : *default_instance_->shadow_caster_material_script_;
656 if (shadow_caster_material_script_ == NULL) {
657 shadow_caster_material_script_ = new ::ignition::msgs::Material_Script;
660 return shadow_caster_material_script_;
666 shadow_caster_material_script_ = NULL;
670 delete shadow_caster_material_script_;
671 shadow_caster_material_script_ = shadow_caster_material_script;
672 if (shadow_caster_material_script) {
680 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 696 #endif // PROTOBUF_ignition_2fmsgs_2fscene_2eproto__INCLUDED std::unique_ptr< const Scene > ConstSceneUniquePtr
Definition: scene.pb.h:683
int model_size() const
Definition: scene.pb.h:539
Definition: joint.pb.h:265
::std::string * mutable_name()
Definition: scene.pb.h:338
bool has_sky() const
Definition: scene.pb.h:435
int light_size() const
Definition: scene.pb.h:569
std::shared_ptr< const Scene > ConstSceneSharedPtr
Definition: scene.pb.h:685
Definition: scene.pb.h:63
const ::ignition::msgs::Fog & fog() const
Definition: scene.pb.h:494
void protobuf_ShutdownFile_ignition_2fmsgs_2fscene_2eproto()
::ignition::msgs::Sky * release_sky()
Definition: scene.pb.h:454
::ignition::msgs::Color * mutable_ambient()
Definition: scene.pb.h:370
void clear_ambient()
Definition: scene.pb.h:362
const ::ignition::msgs::Material_Script & shadow_caster_material_script() const
Definition: scene.pb.h:650
bool has_fog() const
Definition: scene.pb.h:487
const ::std::string & name() const
Definition: scene.pb.h:318
Definition: light.pb.h:82
void set_allocated_fog(::ignition::msgs::Fog *fog)
Definition: scene.pb.h:513
void set_grid(bool value)
Definition: scene.pb.h:532
::std::string * release_name()
Definition: scene.pb.h:343
::ignition::msgs::Model * add_model()
Definition: scene.pb.h:553
void set_allocated_header(::ignition::msgs::Header *header)
Definition: scene.pb.h:303
::ignition::msgs::Light * add_light()
Definition: scene.pb.h:583
void set_allocated_name(::std::string *name)
Definition: scene.pb.h:348
::ignition::msgs::Color * mutable_background()
Definition: scene.pb.h:408
bool has_background() const
Definition: scene.pb.h:397
::ignition::msgs::Color * release_background()
Definition: scene.pb.h:416
::ignition::msgs::Sky * mutable_sky()
Definition: scene.pb.h:446
void clear_fog()
Definition: scene.pb.h:490
Scene & operator=(const Scene &from)
Definition: scene.pb.h:70
bool shadows() const
Definition: scene.pb.h:476
void clear_joint()
Definition: scene.pb.h:602
bool origin_visual() const
Definition: scene.pb.h:632
void set_name(const ::std::string &value)
Definition: scene.pb.h:322
void clear_header()
Definition: scene.pb.h:280
std::unique_ptr< Scene > SceneUniquePtr
Definition: scene.pb.h:682
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > & joint() const
Definition: scene.pb.h:623
void set_origin_visual(bool value)
Definition: scene.pb.h:636
void set_allocated_shadow_caster_material_script(::ignition::msgs::Material_Script *shadow_caster_material_script)
Definition: scene.pb.h:669
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > & model() const
Definition: scene.pb.h:563
std::shared_ptr< Scene > SceneSharedPtr
Definition: scene.pb.h:684
void set_shadows(bool value)
Definition: scene.pb.h:480
::ignition::msgs::Fog * mutable_fog()
Definition: scene.pb.h:498
void clear_shadows()
Definition: scene.pb.h:473
const ::ignition::msgs::Color & ambient() const
Definition: scene.pb.h:366
void clear_sky()
Definition: scene.pb.h:438
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fscene_2eproto()
::ignition::msgs::Color * release_ambient()
Definition: scene.pb.h:378
::ignition::msgs::Header * release_header()
Definition: scene.pb.h:296
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: scene.pb.h:593
::ignition::msgs::Joint * add_joint()
Definition: scene.pb.h:613
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: scene.pb.h:99
bool grid() const
Definition: scene.pb.h:528
::ignition::msgs::Material_Script * release_shadow_caster_material_script()
Definition: scene.pb.h:662
::ignition::msgs::Fog * release_fog()
Definition: scene.pb.h:506
void set_allocated_background(::ignition::msgs::Color *background)
Definition: scene.pb.h:423
const ::ignition::msgs::Sky & sky() const
Definition: scene.pb.h:442
void clear_origin_visual()
Definition: scene.pb.h:629
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
Definition: scene.pb.h:558
const ::ignition::msgs::Header & header() const
Definition: scene.pb.h:284
Definition: color.pb.h:56
Definition: material.pb.h:105
int joint_size() const
Definition: scene.pb.h:599
void clear_model()
Definition: scene.pb.h:542
void protobuf_AssignDesc_ignition_2fmsgs_2fscene_2eproto()
Definition: model.pb.h:62
::ignition::msgs::Header * mutable_header()
Definition: scene.pb.h:288
void clear_grid()
Definition: scene.pb.h:525
::ignition::msgs::Material_Script * mutable_shadow_caster_material_script()
Definition: scene.pb.h:654
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: scene.pb.h:588
bool has_ambient() const
Definition: scene.pb.h:359
const ::ignition::msgs::Color & background() const
Definition: scene.pb.h:404
bool has_header() const
Definition: scene.pb.h:277
void clear_name()
Definition: scene.pb.h:315
void clear_shadow_caster_material_script()
Definition: scene.pb.h:646
void set_allocated_ambient(::ignition::msgs::Color *ambient)
Definition: scene.pb.h:385
Scene * New() const
Definition: scene.pb.h:82
void clear_light()
Definition: scene.pb.h:572
bool has_shadow_caster_material_script() const
Definition: scene.pb.h:643
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > * mutable_joint()
Definition: scene.pb.h:618
void clear_background()
Definition: scene.pb.h:400
void set_allocated_sky(::ignition::msgs::Sky *sky)
Definition: scene.pb.h:461
int GetCachedSize() const
Definition: scene.pb.h:102