4 #ifndef PROTOBUF_ignition_2fmsgs_2fheightmapgeom_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fheightmapgeom_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> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 55 class HeightmapGeom_Blend;
56 class HeightmapGeom_Texture;
72 static const ::google::protobuf::Descriptor* descriptor();
82 void CopyFrom(const ::google::protobuf::Message& from);
83 void MergeFrom(const ::google::protobuf::Message& from);
87 bool IsInitialized()
const;
90 bool MergePartialFromCodedStream(
91 ::google::protobuf::io::CodedInputStream* input);
92 void SerializeWithCachedSizes(
93 ::google::protobuf::io::CodedOutputStream* output)
const;
94 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
95 bool deterministic, ::google::protobuf::uint8* output)
const;
97 return InternalSerializeWithCachedSizesToArray(
false, output);
103 void SetCachedSize(
int size)
const;
106 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
107 return _internal_metadata_.arena();
109 inline void* MaybeArenaPtr()
const {
110 return _internal_metadata_.raw_arena_ptr();
114 ::google::protobuf::Metadata GetMetadata()
const;
121 void clear_diffuse();
122 static const int kDiffuseFieldNumber = 1;
123 const ::std::string& diffuse()
const;
124 void set_diffuse(const ::std::string& value);
125 void set_diffuse(
const char* value);
126 void set_diffuse(
const char* value,
size_t size);
129 void set_allocated_diffuse(::
std::string* diffuse);
133 static const int kNormalFieldNumber = 2;
134 const ::std::string& normal()
const;
135 void set_normal(const ::std::string& value);
136 void set_normal(
const char* value);
137 void set_normal(
const char* value,
size_t size);
144 static const int kSizeFieldNumber = 3;
146 void set_size(
double value);
151 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
152 bool _is_default_instance_;
153 ::google::protobuf::internal::ArenaStringPtr diffuse_;
154 ::google::protobuf::internal::ArenaStringPtr normal_;
156 mutable int _cached_size_;
161 void InitAsDefaultInstance();
178 static const ::google::protobuf::Descriptor* descriptor();
188 void CopyFrom(const ::google::protobuf::Message& from);
189 void MergeFrom(const ::google::protobuf::Message& from);
193 bool IsInitialized()
const;
195 int ByteSize()
const;
196 bool MergePartialFromCodedStream(
197 ::google::protobuf::io::CodedInputStream* input);
198 void SerializeWithCachedSizes(
199 ::google::protobuf::io::CodedOutputStream* output)
const;
200 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
201 bool deterministic, ::google::protobuf::uint8* output)
const;
203 return InternalSerializeWithCachedSizesToArray(
false, output);
209 void SetCachedSize(
int size)
const;
212 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
213 return _internal_metadata_.arena();
215 inline void* MaybeArenaPtr()
const {
216 return _internal_metadata_.raw_arena_ptr();
220 ::google::protobuf::Metadata GetMetadata()
const;
227 void clear_min_height();
228 static const int kMinHeightFieldNumber = 1;
229 double min_height()
const;
230 void set_min_height(
double value);
233 void clear_fade_dist();
234 static const int kFadeDistFieldNumber = 2;
235 double fade_dist()
const;
236 void set_fade_dist(
double value);
241 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
242 bool _is_default_instance_;
245 mutable int _cached_size_;
250 void InitAsDefaultInstance();
255 class IGNITION_MSGS_VISIBLE
HeightmapGeom :
public ::google::protobuf::Message {
267 static const ::google::protobuf::Descriptor* descriptor();
277 void CopyFrom(const ::google::protobuf::Message& from);
278 void MergeFrom(const ::google::protobuf::Message& from);
282 bool IsInitialized()
const;
284 int ByteSize()
const;
285 bool MergePartialFromCodedStream(
286 ::google::protobuf::io::CodedInputStream* input);
287 void SerializeWithCachedSizes(
288 ::google::protobuf::io::CodedOutputStream* output)
const;
289 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
290 bool deterministic, ::google::protobuf::uint8* output)
const;
292 return InternalSerializeWithCachedSizesToArray(
false, output);
298 void SetCachedSize(
int size)
const;
301 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
302 return _internal_metadata_.arena();
304 inline void* MaybeArenaPtr()
const {
305 return _internal_metadata_.raw_arena_ptr();
309 ::google::protobuf::Metadata GetMetadata()
const;
319 bool has_header()
const;
321 static const int kHeaderFieldNumber = 1;
322 const ::ignition::msgs::Header& header()
const;
328 bool has_image()
const;
330 static const int kImageFieldNumber = 2;
331 const ::ignition::msgs::Image& image()
const;
337 bool has_size()
const;
339 static const int kSizeFieldNumber = 3;
340 const ::ignition::msgs::Vector3d& size()
const;
346 bool has_origin()
const;
348 static const int kOriginFieldNumber = 4;
349 const ::ignition::msgs::Vector3d& origin()
const;
355 int heights_size()
const;
356 void clear_heights();
357 static const int kHeightsFieldNumber = 5;
358 float heights(
int index)
const;
359 void set_heights(
int index,
float value);
360 void add_heights(
float value);
361 const ::google::protobuf::RepeatedField< float >&
363 ::google::protobuf::RepeatedField< float >*
368 static const int kWidthFieldNumber = 6;
369 ::google::protobuf::int32 width()
const;
370 void set_width(::google::protobuf::int32 value);
374 static const int kHeightFieldNumber = 7;
375 ::google::protobuf::int32 height()
const;
376 void set_height(::google::protobuf::int32 value);
379 int texture_size()
const;
380 void clear_texture();
381 static const int kTextureFieldNumber = 8;
382 const ::ignition::msgs::HeightmapGeom_Texture& texture(
int index)
const;
385 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture >*
387 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture >&
391 int blend_size()
const;
393 static const int kBlendFieldNumber = 9;
394 const ::ignition::msgs::HeightmapGeom_Blend& blend(
int index)
const;
397 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend >*
399 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend >&
403 void clear_use_terrain_paging();
404 static const int kUseTerrainPagingFieldNumber = 10;
405 bool use_terrain_paging()
const;
406 void set_use_terrain_paging(
bool value);
409 void clear_filename();
410 static const int kFilenameFieldNumber = 11;
411 const ::std::string& filename()
const;
412 void set_filename(const ::std::string& value);
413 void set_filename(
const char* value);
414 void set_filename(
const char* value,
size_t size);
417 void set_allocated_filename(::
std::string* filename);
420 void clear_sampling();
421 static const int kSamplingFieldNumber = 12;
422 ::google::protobuf::uint32 sampling()
const;
423 void set_sampling(::google::protobuf::uint32 value);
428 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
429 bool _is_default_instance_;
434 ::google::protobuf::RepeatedField< float > heights_;
435 mutable int _heights_cached_byte_size_;
436 ::google::protobuf::int32 width_;
437 ::google::protobuf::int32 height_;
438 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture > texture_;
439 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend > blend_;
440 ::google::protobuf::internal::ArenaStringPtr filename_;
441 bool use_terrain_paging_;
442 ::google::protobuf::uint32 sampling_;
443 mutable int _cached_size_;
448 void InitAsDefaultInstance();
456 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 461 diffuse_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
465 return diffuse_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
474 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
479 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
480 ::
std::string(reinterpret_cast<const char*>(value), size));
486 return diffuse_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
491 return diffuse_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
494 if (diffuse != NULL) {
499 diffuse_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), diffuse);
505 normal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
509 return normal_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
513 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
518 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
523 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
524 ::
std::string(reinterpret_cast<const char*>(value), size));
530 return normal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
535 return normal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
538 if (normal != NULL) {
543 normal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), normal);
599 return !_is_default_instance_ && header_ != NULL;
602 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
607 return header_ != NULL ? *header_ : *default_instance_->header_;
611 if (header_ == NULL) {
612 header_ = new ::ignition::msgs::Header;
637 return !_is_default_instance_ && image_ != NULL;
640 if (GetArenaNoVirtual() == NULL && image_ != NULL)
delete image_;
645 return image_ != NULL ? *image_ : *default_instance_->image_;
649 if (image_ == NULL) {
650 image_ = new ::ignition::msgs::Image;
675 return !_is_default_instance_ && size_ != NULL;
678 if (GetArenaNoVirtual() == NULL && size_ != NULL)
delete size_;
683 return size_ != NULL ? *size_ : *default_instance_->size_;
688 size_ = new ::ignition::msgs::Vector3d;
713 return !_is_default_instance_ && origin_ != NULL;
716 if (GetArenaNoVirtual() == NULL && origin_ != NULL)
delete origin_;
721 return origin_ != NULL ? *origin_ : *default_instance_->origin_;
725 if (origin_ == NULL) {
726 origin_ = new ::ignition::msgs::Vector3d;
751 return heights_.size();
758 return heights_.Get(index);
761 heights_.Set(index, value);
768 inline const ::google::protobuf::RepeatedField< float >&
773 inline ::google::protobuf::RepeatedField< float >*
809 return texture_.size();
816 return texture_.Get(index);
820 return texture_.Mutable(index);
824 return texture_.Add();
826 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture >*
831 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture >&
839 return blend_.size();
846 return blend_.Get(index);
850 return blend_.Mutable(index);
856 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend >*
861 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend >&
869 use_terrain_paging_ =
false;
873 return use_terrain_paging_;
877 use_terrain_paging_ = value;
883 filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
887 return filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
891 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
896 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
901 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
902 ::
std::string(reinterpret_cast<const char*>(value), size));
908 return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
913 return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
916 if (filename != NULL) {
921 filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename);
939 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 959 #endif // PROTOBUF_ignition_2fmsgs_2fheightmapgeom_2eproto__INCLUDED int GetCachedSize() const
Definition: heightmapgeom.pb.h:205
void clear_header()
Definition: heightmapgeom.pb.h:601
HeightmapGeom * New() const
Definition: heightmapgeom.pb.h:274
void clear_fade_dist()
Definition: heightmapgeom.pb.h:580
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: heightmapgeom.pb.h:96
void clear_origin()
Definition: heightmapgeom.pb.h:715
::std::string * mutable_filename()
Definition: heightmapgeom.pb.h:905
void add_heights(float value)
Definition: heightmapgeom.pb.h:764
const ::ignition::msgs::Header & header() const
Definition: heightmapgeom.pb.h:605
::ignition::msgs::Header * mutable_header()
Definition: heightmapgeom.pb.h:609
void set_allocated_diffuse(::std::string *diffuse)
Definition: heightmapgeom.pb.h:493
void set_allocated_image(::ignition::msgs::Image *image)
Definition: heightmapgeom.pb.h:662
std::shared_ptr< HeightmapGeom > HeightmapGeomSharedPtr
Definition: heightmapgeom.pb.h:947
void set_min_height(double value)
Definition: heightmapgeom.pb.h:573
::ignition::msgs::HeightmapGeom_Texture * add_texture()
Definition: heightmapgeom.pb.h:822
double min_height() const
Definition: heightmapgeom.pb.h:569
bool use_terrain_paging() const
Definition: heightmapgeom.pb.h:871
void set_height(::google::protobuf::int32 value)
Definition: heightmapgeom.pb.h:801
int GetCachedSize() const
Definition: heightmapgeom.pb.h:99
::ignition::msgs::Header * release_header()
Definition: heightmapgeom.pb.h:617
void set_use_terrain_paging(bool value)
Definition: heightmapgeom.pb.h:875
void set_allocated_filename(::std::string *filename)
Definition: heightmapgeom.pb.h:915
Definition: image.pb.h:95
int heights_size() const
Definition: heightmapgeom.pb.h:750
HeightmapGeom_Texture & operator=(const HeightmapGeom_Texture &from)
Definition: heightmapgeom.pb.h:67
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture > & texture() const
Definition: heightmapgeom.pb.h:832
void clear_use_terrain_paging()
Definition: heightmapgeom.pb.h:868
void clear_size()
Definition: heightmapgeom.pb.h:548
void set_sampling(::google::protobuf::uint32 value)
Definition: heightmapgeom.pb.h:933
::std::string * release_normal()
Definition: heightmapgeom.pb.h:532
::ignition::msgs::Image * release_image()
Definition: heightmapgeom.pb.h:655
void clear_image()
Definition: heightmapgeom.pb.h:639
void set_fade_dist(double value)
Definition: heightmapgeom.pb.h:587
const ::ignition::msgs::Vector3d & size() const
Definition: heightmapgeom.pb.h:681
::google::protobuf::int32 width() const
Definition: heightmapgeom.pb.h:783
bool has_size() const
Definition: heightmapgeom.pb.h:674
void set_filename(const ::std::string &value)
Definition: heightmapgeom.pb.h:889
const ::std::string & filename() const
Definition: heightmapgeom.pb.h:885
const ::ignition::msgs::Image & image() const
Definition: heightmapgeom.pb.h:643
HeightmapGeom_Blend Blend
Definition: heightmapgeom.pb.h:314
HeightmapGeom_Texture Texture
Definition: heightmapgeom.pb.h:313
void protobuf_AssignDesc_ignition_2fmsgs_2fheightmapgeom_2eproto()
double fade_dist() const
Definition: heightmapgeom.pb.h:583
void set_allocated_normal(::std::string *normal)
Definition: heightmapgeom.pb.h:537
::google::protobuf::uint32 sampling() const
Definition: heightmapgeom.pb.h:929
::ignition::msgs::Vector3d * mutable_size()
Definition: heightmapgeom.pb.h:685
void set_diffuse(const ::std::string &value)
Definition: heightmapgeom.pb.h:467
const ::ignition::msgs::Vector3d & origin() const
Definition: heightmapgeom.pb.h:719
::ignition::msgs::Vector3d * release_origin()
Definition: heightmapgeom.pb.h:731
void clear_sampling()
Definition: heightmapgeom.pb.h:926
::ignition::msgs::HeightmapGeom_Blend * add_blend()
Definition: heightmapgeom.pb.h:852
int GetCachedSize() const
Definition: heightmapgeom.pb.h:294
HeightmapGeom_Blend * New() const
Definition: heightmapgeom.pb.h:185
Definition: heightmapgeom.pb.h:255
const ::google::protobuf::RepeatedField< float > & heights() const
Definition: heightmapgeom.pb.h:769
void set_heights(int index, float value)
Definition: heightmapgeom.pb.h:760
const ::std::string & normal() const
Definition: heightmapgeom.pb.h:507
Definition: heightmapgeom.pb.h:166
::std::string * mutable_diffuse()
Definition: heightmapgeom.pb.h:483
double size() const
Definition: heightmapgeom.pb.h:551
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend > & blend() const
Definition: heightmapgeom.pb.h:862
void set_allocated_header(::ignition::msgs::Header *header)
Definition: heightmapgeom.pb.h:624
void clear_filename()
Definition: heightmapgeom.pb.h:882
Definition: vector3d.pb.h:56
void set_allocated_size(::ignition::msgs::Vector3d *size)
Definition: heightmapgeom.pb.h:700
void clear_heights()
Definition: heightmapgeom.pb.h:753
HeightmapGeom_Texture * New() const
Definition: heightmapgeom.pb.h:79
std::shared_ptr< const HeightmapGeom > ConstHeightmapGeomSharedPtr
Definition: heightmapgeom.pb.h:948
int blend_size() const
Definition: heightmapgeom.pb.h:838
void clear_width()
Definition: heightmapgeom.pb.h:780
::ignition::msgs::Image * mutable_image()
Definition: heightmapgeom.pb.h:647
bool has_image() const
Definition: heightmapgeom.pb.h:636
::std::string * mutable_normal()
Definition: heightmapgeom.pb.h:527
::std::string * release_diffuse()
Definition: heightmapgeom.pb.h:488
const ::std::string & diffuse() const
Definition: heightmapgeom.pb.h:463
void set_width(::google::protobuf::int32 value)
Definition: heightmapgeom.pb.h:787
::google::protobuf::int32 height() const
Definition: heightmapgeom.pb.h:797
std::unique_ptr< const HeightmapGeom > ConstHeightmapGeomUniquePtr
Definition: heightmapgeom.pb.h:946
HeightmapGeom & operator=(const HeightmapGeom &from)
Definition: heightmapgeom.pb.h:262
std::unique_ptr< HeightmapGeom > HeightmapGeomUniquePtr
Definition: heightmapgeom.pb.h:945
void clear_size()
Definition: heightmapgeom.pb.h:677
void clear_diffuse()
Definition: heightmapgeom.pb.h:460
void clear_min_height()
Definition: heightmapgeom.pb.h:566
void clear_normal()
Definition: heightmapgeom.pb.h:504
bool has_header() const
Definition: heightmapgeom.pb.h:598
::std::string * release_filename()
Definition: heightmapgeom.pb.h:910
::ignition::msgs::Vector3d * release_size()
Definition: heightmapgeom.pb.h:693
HeightmapGeom_Blend & operator=(const HeightmapGeom_Blend &from)
Definition: heightmapgeom.pb.h:173
void clear_blend()
Definition: heightmapgeom.pb.h:841
::ignition::msgs::Vector3d * mutable_origin()
Definition: heightmapgeom.pb.h:723
void set_normal(const ::std::string &value)
Definition: heightmapgeom.pb.h:511
::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Texture > * mutable_texture()
Definition: heightmapgeom.pb.h:827
void clear_texture()
Definition: heightmapgeom.pb.h:811
void clear_height()
Definition: heightmapgeom.pb.h:794
::google::protobuf::RepeatedField< float > * mutable_heights()
Definition: heightmapgeom.pb.h:774
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fheightmapgeom_2eproto()
int texture_size() const
Definition: heightmapgeom.pb.h:808
::google::protobuf::RepeatedPtrField< ::ignition::msgs::HeightmapGeom_Blend > * mutable_blend()
Definition: heightmapgeom.pb.h:857
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: heightmapgeom.pb.h:291
void set_size(double value)
Definition: heightmapgeom.pb.h:555
void protobuf_ShutdownFile_ignition_2fmsgs_2fheightmapgeom_2eproto()
bool has_origin() const
Definition: heightmapgeom.pb.h:712
Definition: heightmapgeom.pb.h:60
void set_allocated_origin(::ignition::msgs::Vector3d *origin)
Definition: heightmapgeom.pb.h:738
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: heightmapgeom.pb.h:202