4 #ifndef PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fgeometry_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/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 43 #pragma GCC system_header 46 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 49 #include <sys/sysmacros.h> 90 return ::google::protobuf::internal::NameOfEnum(
95 return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
100 class IGNITION_MSGS_VISIBLE
Geometry :
public ::google::protobuf::Message {
112 static const ::google::protobuf::Descriptor* descriptor();
113 static const Geometry& default_instance();
121 Geometry* New(::google::protobuf::Arena* arena)
const;
122 void CopyFrom(const ::google::protobuf::Message& from);
123 void MergeFrom(const ::google::protobuf::Message& from);
124 void CopyFrom(
const Geometry& from);
125 void MergeFrom(
const Geometry& from);
127 bool IsInitialized()
const;
129 int ByteSize()
const;
130 bool MergePartialFromCodedStream(
131 ::google::protobuf::io::CodedInputStream* input);
132 void SerializeWithCachedSizes(
133 ::google::protobuf::io::CodedOutputStream* output)
const;
134 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135 bool deterministic, ::google::protobuf::uint8* output)
const;
137 return InternalSerializeWithCachedSizesToArray(
false, output);
143 void SetCachedSize(
int size)
const;
146 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
147 return _internal_metadata_.arena();
149 inline void* MaybeArenaPtr()
const {
150 return _internal_metadata_.raw_arena_ptr();
154 ::google::protobuf::Metadata GetMetadata()
const;
159 static const Type BOX =
161 static const Type CYLINDER =
163 static const Type SPHERE =
165 static const Type PLANE =
167 static const Type IMAGE =
169 static const Type HEIGHTMAP =
171 static const Type MESH =
173 static const Type TRIANGLE_FAN =
175 static const Type LINE_STRIP =
177 static const Type POLYLINE =
179 static const Type CONE =
181 static const Type EMPTY =
183 static const Type ARROW =
185 static const Type AXIS =
190 static const Type Type_MIN =
192 static const Type Type_MAX =
194 static const int Type_ARRAYSIZE =
196 static inline const ::google::protobuf::EnumDescriptor*
200 static inline const ::std::string&
Type_Name(Type value) {
211 bool has_header()
const;
213 static const int kHeaderFieldNumber = 1;
214 const ::ignition::msgs::Header& header()
const;
221 static const int kTypeFieldNumber = 2;
226 bool has_box()
const;
228 static const int kBoxFieldNumber = 3;
229 const ::ignition::msgs::BoxGeom& box()
const;
235 bool has_cylinder()
const;
236 void clear_cylinder();
237 static const int kCylinderFieldNumber = 4;
238 const ::ignition::msgs::CylinderGeom& cylinder()
const;
244 bool has_plane()
const;
246 static const int kPlaneFieldNumber = 5;
247 const ::ignition::msgs::PlaneGeom& plane()
const;
253 bool has_sphere()
const;
255 static const int kSphereFieldNumber = 6;
256 const ::ignition::msgs::SphereGeom& sphere()
const;
262 bool has_image()
const;
264 static const int kImageFieldNumber = 7;
265 const ::ignition::msgs::ImageGeom& image()
const;
271 bool has_heightmap()
const;
272 void clear_heightmap();
273 static const int kHeightmapFieldNumber = 8;
274 const ::ignition::msgs::HeightmapGeom& heightmap()
const;
280 bool has_mesh()
const;
282 static const int kMeshFieldNumber = 9;
283 const ::ignition::msgs::MeshGeom& mesh()
const;
289 bool has_cone()
const;
291 static const int kConeFieldNumber = 10;
292 const ::ignition::msgs::ConeGeom& cone()
const;
298 int points_size()
const;
300 static const int kPointsFieldNumber = 11;
301 const ::ignition::msgs::Vector3d& points(
int index)
const;
304 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
306 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
310 int polyline_size()
const;
311 void clear_polyline();
312 static const int kPolylineFieldNumber = 12;
313 const ::ignition::msgs::Polyline& polyline(
int index)
const;
316 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
318 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
324 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325 bool _is_default_instance_;
335 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
336 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
338 mutable int _cached_size_;
343 void InitAsDefaultInstance();
351 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 356 return !_is_default_instance_ && header_ != NULL;
359 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
364 return header_ != NULL ? *header_ : *default_instance_->header_;
368 if (header_ == NULL) {
369 header_ = new ::ignition::msgs::Header;
408 return !_is_default_instance_ && box_ != NULL;
411 if (GetArenaNoVirtual() == NULL && box_ != NULL)
delete box_;
416 return box_ != NULL ? *box_ : *default_instance_->box_;
421 box_ = new ::ignition::msgs::BoxGeom;
446 return !_is_default_instance_ && cylinder_ != NULL;
449 if (GetArenaNoVirtual() == NULL && cylinder_ != NULL)
delete cylinder_;
454 return cylinder_ != NULL ? *cylinder_ : *default_instance_->cylinder_;
458 if (cylinder_ == NULL) {
459 cylinder_ = new ::ignition::msgs::CylinderGeom;
473 cylinder_ = cylinder;
484 return !_is_default_instance_ && plane_ != NULL;
487 if (GetArenaNoVirtual() == NULL && plane_ != NULL)
delete plane_;
492 return plane_ != NULL ? *plane_ : *default_instance_->plane_;
496 if (plane_ == NULL) {
497 plane_ = new ::ignition::msgs::PlaneGeom;
522 return !_is_default_instance_ && sphere_ != NULL;
525 if (GetArenaNoVirtual() == NULL && sphere_ != NULL)
delete sphere_;
530 return sphere_ != NULL ? *sphere_ : *default_instance_->sphere_;
534 if (sphere_ == NULL) {
535 sphere_ = new ::ignition::msgs::SphereGeom;
560 return !_is_default_instance_ && image_ != NULL;
563 if (GetArenaNoVirtual() == NULL && image_ != NULL)
delete image_;
568 return image_ != NULL ? *image_ : *default_instance_->image_;
572 if (image_ == NULL) {
573 image_ = new ::ignition::msgs::ImageGeom;
598 return !_is_default_instance_ && heightmap_ != NULL;
601 if (GetArenaNoVirtual() == NULL && heightmap_ != NULL)
delete heightmap_;
606 return heightmap_ != NULL ? *heightmap_ : *default_instance_->heightmap_;
610 if (heightmap_ == NULL) {
611 heightmap_ = new ::ignition::msgs::HeightmapGeom;
625 heightmap_ = heightmap;
636 return !_is_default_instance_ && mesh_ != NULL;
639 if (GetArenaNoVirtual() == NULL && mesh_ != NULL)
delete mesh_;
644 return mesh_ != NULL ? *mesh_ : *default_instance_->mesh_;
649 mesh_ = new ::ignition::msgs::MeshGeom;
674 return !_is_default_instance_ && cone_ != NULL;
677 if (GetArenaNoVirtual() == NULL && cone_ != NULL)
delete cone_;
682 return cone_ != NULL ? *cone_ : *default_instance_->cone_;
687 cone_ = new ::ignition::msgs::ConeGeom;
712 return points_.size();
719 return points_.Get(index);
723 return points_.Mutable(index);
727 return points_.Add();
729 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
734 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
742 return polyline_.size();
749 return polyline_.Get(index);
753 return polyline_.Mutable(index);
757 return polyline_.Add();
759 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
764 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
770 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 787 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
800 #endif // PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED const ::std::string & Geometry_Type_Name(Geometry_Type value)
Definition: geometry.pb.h:89
void clear_cylinder()
Definition: geometry.pb.h:448
Definition: planegeom.pb.h:58
::ignition::msgs::MeshGeom * mutable_mesh()
Definition: geometry.pb.h:646
void clear_type()
Definition: geometry.pb.h:393
void set_type(::ignition::msgs::Geometry_Type value)
Definition: geometry.pb.h:400
Definition: geometry.pb.h:68
void clear_box()
Definition: geometry.pb.h:410
::ignition::msgs::SphereGeom * release_sphere()
Definition: geometry.pb.h:540
bool has_box() const
Definition: geometry.pb.h:407
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
Definition: geometry.pb.h:735
Geometry & operator=(const Geometry &from)
Definition: geometry.pb.h:107
bool has_plane() const
Definition: geometry.pb.h:483
Definition: cylindergeom.pb.h:56
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: geometry.pb.h:623
void clear_image()
Definition: geometry.pb.h:562
::ignition::msgs::Header * mutable_header()
Definition: geometry.pb.h:366
::ignition::msgs::PlaneGeom * release_plane()
Definition: geometry.pb.h:502
Definition: geometry.pb.h:79
bool has_header() const
Definition: geometry.pb.h:355
::ignition::msgs::ImageGeom * mutable_image()
Definition: geometry.pb.h:570
const ::ignition::msgs::Header & header() const
Definition: geometry.pb.h:362
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: geometry.pb.h:772
const ::ignition::msgs::CylinderGeom & cylinder() const
Definition: geometry.pb.h:452
const Geometry_Type Geometry_Type_Type_MAX
Definition: geometry.pb.h:85
Geometry_Type
Definition: geometry.pb.h:65
Definition: geometry.pb.h:72
bool Geometry_Type_Parse(const ::std::string &name, Geometry_Type *value)
Definition: geometry.pb.h:93
Definition: geometry.pb.h:73
::ignition::msgs::BoxGeom * release_box()
Definition: geometry.pb.h:426
::ignition::msgs::Header * release_header()
Definition: geometry.pb.h:374
::ignition::msgs::ConeGeom * release_cone()
Definition: geometry.pb.h:692
::ignition::msgs::CylinderGeom * release_cylinder()
Definition: geometry.pb.h:464
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: geometry.pb.h:509
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: geometry.pb.h:433
Definition: geometry.pb.h:69
Geometry * New() const
Definition: geometry.pb.h:119
Definition: geometry.pb.h:76
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
Definition: geometry.pb.h:760
bool has_sphere() const
Definition: geometry.pb.h:521
void set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: geometry.pb.h:585
void clear_plane()
Definition: geometry.pb.h:486
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: geometry.pb.h:774
void protobuf_ShutdownFile_ignition_2fmsgs_2fgeometry_2eproto()
void clear_cone()
Definition: geometry.pb.h:676
Definition: geometry.pb.h:74
const Geometry_Type Geometry_Type_Type_MIN
Definition: geometry.pb.h:84
::ignition::msgs::Polyline * add_polyline()
Definition: geometry.pb.h:755
::ignition::msgs::Geometry_Type type() const
Definition: geometry.pb.h:396
::ignition::msgs::ConeGeom * mutable_cone()
Definition: geometry.pb.h:684
Definition: geometry.pb.h:71
const ::ignition::msgs::HeightmapGeom & heightmap() const
Definition: geometry.pb.h:604
static const ::std::string & Type_Name(Type value)
Definition: geometry.pb.h:200
std::unique_ptr< const Geometry > ConstGeometryUniquePtr
Definition: geometry.pb.h:773
void clear_polyline()
Definition: geometry.pb.h:744
const ::ignition::msgs::ImageGeom & image() const
Definition: geometry.pb.h:566
void clear_mesh()
Definition: geometry.pb.h:638
IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value)
Definition: boxgeom.pb.h:57
Definition: geometry.pb.h:78
bool has_mesh() const
Definition: geometry.pb.h:635
Definition: imagegeom.pb.h:56
int GetCachedSize() const
Definition: geometry.pb.h:139
static bool Type_IsValid(int value)
Definition: geometry.pb.h:187
::ignition::msgs::Vector3d * add_points()
Definition: geometry.pb.h:725
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
Definition: geometry.pb.h:765
Definition: geometry.pb.h:66
Definition: geometry.pb.h:67
::ignition::msgs::CylinderGeom * mutable_cylinder()
Definition: geometry.pb.h:456
Definition: geometry.pb.h:100
void clear_sphere()
Definition: geometry.pb.h:524
int polyline_size() const
Definition: geometry.pb.h:741
void clear_heightmap()
Definition: geometry.pb.h:600
void protobuf_AssignDesc_ignition_2fmsgs_2fgeometry_2eproto()
Definition: geometry.pb.h:75
Geometry_Type Type
Definition: geometry.pb.h:158
bool has_cone() const
Definition: geometry.pb.h:673
Definition: geometry.pb.h:81
::ignition::msgs::SphereGeom * mutable_sphere()
Definition: geometry.pb.h:532
::ignition::msgs::ImageGeom * release_image()
Definition: geometry.pb.h:578
void clear_points()
Definition: geometry.pb.h:714
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Geometry_Type_descriptor()
const ::ignition::msgs::PlaneGeom & plane() const
Definition: geometry.pb.h:490
Definition: heightmapgeom.pb.h:255
Definition: spheregeom.pb.h:56
Definition: meshgeom.pb.h:57
::ignition::msgs::BoxGeom * mutable_box()
Definition: geometry.pb.h:418
Definition: vector3d.pb.h:56
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: geometry.pb.h:203
void clear_header()
Definition: geometry.pb.h:358
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
Definition: geometry.pb.h:730
Definition: conegeom.pb.h:56
::ignition::msgs::PlaneGeom * mutable_plane()
Definition: geometry.pb.h:494
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: geometry.pb.h:661
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: geometry.pb.h:547
Definition: polylinegeom.pb.h:57
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: geometry.pb.h:136
const ::ignition::msgs::ConeGeom & cone() const
Definition: geometry.pb.h:680
const ::ignition::msgs::SphereGeom & sphere() const
Definition: geometry.pb.h:528
void set_allocated_cone(::ignition::msgs::ConeGeom *cone)
Definition: geometry.pb.h:699
bool has_image() const
Definition: geometry.pb.h:559
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Definition: geometry.pb.h:608
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgeometry_2eproto()
std::shared_ptr< const Geometry > ConstGeometrySharedPtr
Definition: geometry.pb.h:775
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: geometry.pb.h:197
const ::ignition::msgs::BoxGeom & box() const
Definition: geometry.pb.h:414
Definition: geometry.pb.h:77
void set_allocated_header(::ignition::msgs::Header *header)
Definition: geometry.pb.h:381
int points_size() const
Definition: geometry.pb.h:711
const ::ignition::msgs::MeshGeom & mesh() const
Definition: geometry.pb.h:642
Definition: geometry.pb.h:70
bool has_heightmap() const
Definition: geometry.pb.h:597
bool has_cylinder() const
Definition: geometry.pb.h:445
::ignition::msgs::HeightmapGeom * release_heightmap()
Definition: geometry.pb.h:616
Definition: geometry.pb.h:80
const int Geometry_Type_Type_ARRAYSIZE
Definition: geometry.pb.h:86
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: geometry.pb.h:471
::ignition::msgs::MeshGeom * release_mesh()
Definition: geometry.pb.h:654