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> 38 #pragma GCC system_header 41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 44 #include <sys/sysmacros.h> 62 class IGNITION_MSGS_VISIBLE
Scene :
public ::google::protobuf::Message {
74 static const ::google::protobuf::Descriptor* descriptor();
75 static const Scene& default_instance();
77 void Swap(
Scene* other);
83 Scene* New(::google::protobuf::Arena* arena)
const;
84 void CopyFrom(const ::google::protobuf::Message& from);
85 void MergeFrom(const ::google::protobuf::Message& from);
86 void CopyFrom(
const Scene& from);
87 void MergeFrom(
const Scene& from);
89 bool IsInitialized()
const;
92 bool MergePartialFromCodedStream(
93 ::google::protobuf::io::CodedInputStream* input);
94 void SerializeWithCachedSizes(
95 ::google::protobuf::io::CodedOutputStream* output)
const;
96 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
97 bool deterministic, ::google::protobuf::uint8* output)
const;
99 return InternalSerializeWithCachedSizesToArray(
false, output);
105 void SetCachedSize(
int size)
const;
106 void InternalSwap(
Scene* other);
108 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
109 return _internal_metadata_.arena();
111 inline void* MaybeArenaPtr()
const {
112 return _internal_metadata_.raw_arena_ptr();
116 ::google::protobuf::Metadata GetMetadata()
const;
123 bool has_header()
const;
125 static const int kHeaderFieldNumber = 1;
126 const ::ignition::msgs::Header& header()
const;
133 static const int kNameFieldNumber = 2;
134 const ::std::string& name()
const;
135 void set_name(const ::std::string& value);
136 void set_name(
const char* value);
137 void set_name(
const char* value,
size_t size);
143 bool has_ambient()
const;
144 void clear_ambient();
145 static const int kAmbientFieldNumber = 3;
146 const ::ignition::msgs::Color& ambient()
const;
152 bool has_background()
const;
153 void clear_background();
154 static const int kBackgroundFieldNumber = 4;
155 const ::ignition::msgs::Color& background()
const;
161 bool has_sky()
const;
163 static const int kSkyFieldNumber = 5;
164 const ::ignition::msgs::Sky& sky()
const;
170 void clear_shadows();
171 static const int kShadowsFieldNumber = 6;
172 bool shadows()
const;
173 void set_shadows(
bool value);
176 bool has_fog()
const;
178 static const int kFogFieldNumber = 7;
179 const ::ignition::msgs::Fog& fog()
const;
186 static const int kGridFieldNumber = 8;
188 void set_grid(
bool value);
191 int model_size()
const;
193 static const int kModelFieldNumber = 9;
194 const ::ignition::msgs::Model& model(
int index)
const;
197 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
199 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
203 int light_size()
const;
205 static const int kLightFieldNumber = 10;
206 const ::ignition::msgs::Light& light(
int index)
const;
209 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
211 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
215 int joint_size()
const;
217 static const int kJointFieldNumber = 11;
218 const ::ignition::msgs::Joint& joint(
int index)
const;
221 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
223 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
227 void clear_origin_visual();
228 static const int kOriginVisualFieldNumber = 12;
229 bool origin_visual()
const;
230 void set_origin_visual(
bool value);
235 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
236 bool _is_default_instance_;
238 ::google::protobuf::internal::ArenaStringPtr name_;
243 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
244 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
245 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
249 mutable int _cached_size_;
254 void InitAsDefaultInstance();
255 static Scene* default_instance_;
262 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 267 return !_is_default_instance_ && header_ != NULL;
270 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
275 return header_ != NULL ? *header_ : *default_instance_->header_;
279 if (header_ == NULL) {
280 header_ = new ::ignition::msgs::Header;
305 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
309 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
313 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
318 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
323 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
324 ::
std::string(reinterpret_cast<const char*>(value), size));
330 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
349 return !_is_default_instance_ && ambient_ != NULL;
352 if (GetArenaNoVirtual() == NULL && ambient_ != NULL)
delete ambient_;
357 return ambient_ != NULL ? *ambient_ : *default_instance_->ambient_;
361 if (ambient_ == NULL) {
362 ambient_ = new ::ignition::msgs::Color;
387 return !_is_default_instance_ && background_ != NULL;
390 if (GetArenaNoVirtual() == NULL && background_ != NULL)
delete background_;
395 return background_ != NULL ? *background_ : *default_instance_->background_;
399 if (background_ == NULL) {
400 background_ = new ::ignition::msgs::Color;
414 background_ = background;
425 return !_is_default_instance_ && sky_ != NULL;
428 if (GetArenaNoVirtual() == NULL && sky_ != NULL)
delete sky_;
433 return sky_ != NULL ? *sky_ : *default_instance_->sky_;
438 sky_ = new ::ignition::msgs::Sky;
477 return !_is_default_instance_ && fog_ != NULL;
480 if (GetArenaNoVirtual() == NULL && fog_ != NULL)
delete fog_;
485 return fog_ != NULL ? *fog_ : *default_instance_->fog_;
490 fog_ = new ::ignition::msgs::Fog;
529 return model_.size();
536 return model_.Get(index);
540 return model_.Mutable(index);
546 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
551 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
559 return light_.size();
566 return light_.Get(index);
570 return light_.Mutable(index);
576 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
581 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
589 return joint_.size();
596 return joint_.Get(index);
600 return joint_.Mutable(index);
606 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
611 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
619 origin_visual_ =
false;
623 return origin_visual_;
627 origin_visual_ = value;
631 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 647 #endif // PROTOBUF_ignition_2fmsgs_2fscene_2eproto__INCLUDED std::unique_ptr< const Scene > ConstSceneUniquePtr
Definition: scene.pb.h:634
int model_size() const
Definition: scene.pb.h:528
Definition: joint.pb.h:265
::std::string * mutable_name()
Definition: scene.pb.h:327
bool has_sky() const
Definition: scene.pb.h:424
int light_size() const
Definition: scene.pb.h:558
std::shared_ptr< const Scene > ConstSceneSharedPtr
Definition: scene.pb.h:636
Definition: scene.pb.h:62
const ::ignition::msgs::Fog & fog() const
Definition: scene.pb.h:483
void protobuf_ShutdownFile_ignition_2fmsgs_2fscene_2eproto()
::ignition::msgs::Sky * release_sky()
Definition: scene.pb.h:443
::ignition::msgs::Color * mutable_ambient()
Definition: scene.pb.h:359
void clear_ambient()
Definition: scene.pb.h:351
bool has_fog() const
Definition: scene.pb.h:476
const ::std::string & name() const
Definition: scene.pb.h:307
Definition: light.pb.h:82
void set_allocated_fog(::ignition::msgs::Fog *fog)
Definition: scene.pb.h:502
void set_grid(bool value)
Definition: scene.pb.h:521
::std::string * release_name()
Definition: scene.pb.h:332
::ignition::msgs::Model * add_model()
Definition: scene.pb.h:542
void set_allocated_header(::ignition::msgs::Header *header)
Definition: scene.pb.h:292
::ignition::msgs::Light * add_light()
Definition: scene.pb.h:572
void set_allocated_name(::std::string *name)
Definition: scene.pb.h:337
::ignition::msgs::Color * mutable_background()
Definition: scene.pb.h:397
bool has_background() const
Definition: scene.pb.h:386
::ignition::msgs::Color * release_background()
Definition: scene.pb.h:405
::ignition::msgs::Sky * mutable_sky()
Definition: scene.pb.h:435
void clear_fog()
Definition: scene.pb.h:479
Scene & operator=(const Scene &from)
Definition: scene.pb.h:69
bool shadows() const
Definition: scene.pb.h:465
void clear_joint()
Definition: scene.pb.h:591
bool origin_visual() const
Definition: scene.pb.h:621
void set_name(const ::std::string &value)
Definition: scene.pb.h:311
void clear_header()
Definition: scene.pb.h:269
std::unique_ptr< Scene > SceneUniquePtr
Definition: scene.pb.h:633
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > & joint() const
Definition: scene.pb.h:612
void set_origin_visual(bool value)
Definition: scene.pb.h:625
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > & model() const
Definition: scene.pb.h:552
std::shared_ptr< Scene > SceneSharedPtr
Definition: scene.pb.h:635
void set_shadows(bool value)
Definition: scene.pb.h:469
::ignition::msgs::Fog * mutable_fog()
Definition: scene.pb.h:487
void clear_shadows()
Definition: scene.pb.h:462
const ::ignition::msgs::Color & ambient() const
Definition: scene.pb.h:355
void clear_sky()
Definition: scene.pb.h:427
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fscene_2eproto()
::ignition::msgs::Color * release_ambient()
Definition: scene.pb.h:367
::ignition::msgs::Header * release_header()
Definition: scene.pb.h:285
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: scene.pb.h:582
::ignition::msgs::Joint * add_joint()
Definition: scene.pb.h:602
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: scene.pb.h:98
bool grid() const
Definition: scene.pb.h:517
::ignition::msgs::Fog * release_fog()
Definition: scene.pb.h:495
void set_allocated_background(::ignition::msgs::Color *background)
Definition: scene.pb.h:412
const ::ignition::msgs::Sky & sky() const
Definition: scene.pb.h:431
void clear_origin_visual()
Definition: scene.pb.h:618
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
Definition: scene.pb.h:547
const ::ignition::msgs::Header & header() const
Definition: scene.pb.h:273
Definition: color.pb.h:56
int joint_size() const
Definition: scene.pb.h:588
void clear_model()
Definition: scene.pb.h:531
void protobuf_AssignDesc_ignition_2fmsgs_2fscene_2eproto()
Definition: model.pb.h:62
::ignition::msgs::Header * mutable_header()
Definition: scene.pb.h:277
void clear_grid()
Definition: scene.pb.h:514
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: scene.pb.h:577
bool has_ambient() const
Definition: scene.pb.h:348
const ::ignition::msgs::Color & background() const
Definition: scene.pb.h:393
bool has_header() const
Definition: scene.pb.h:266
void clear_name()
Definition: scene.pb.h:304
void set_allocated_ambient(::ignition::msgs::Color *ambient)
Definition: scene.pb.h:374
Scene * New() const
Definition: scene.pb.h:81
void clear_light()
Definition: scene.pb.h:561
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > * mutable_joint()
Definition: scene.pb.h:607
void clear_background()
Definition: scene.pb.h:389
void set_allocated_sky(::ignition::msgs::Sky *sky)
Definition: scene.pb.h:450
int GetCachedSize() const
Definition: scene.pb.h:101