Go to the documentation of this file.
17 #ifndef SDF_GEOMETRY_HH_
18 #define SDF_GEOMETRY_HH_
22 #include <gz/utils/ImplPtr.hh>
30 inline namespace SDF_VERSION_NAMESPACE {
119 public:
const Box *BoxShape()
const;
123 public:
void SetBoxShape(
const Box &_box);
130 public:
const Capsule *CapsuleShape()
const;
134 public:
void SetCapsuleShape(
const Capsule &_capsule);
141 public:
const Cylinder *CylinderShape()
const;
145 public:
void SetCylinderShape(
const Cylinder &_cylinder);
152 public:
const Ellipsoid *EllipsoidShape()
const;
156 public:
void SetEllipsoidShape(
const Ellipsoid &_ellipsoid);
163 public:
const Sphere *SphereShape()
const;
167 public:
void SetSphereShape(
const Sphere &_sphere);
173 public:
const std::vector<Polyline> &PolylineShape()
const;
177 public:
void SetPolylineShape(
const std::vector<Polyline> &_polyline);
184 public:
const Plane *PlaneShape()
const;
188 public:
void SetPlaneShape(
const Plane &_plane);
195 public:
const Mesh *MeshShape()
const;
199 public:
void SetMeshShape(
const Mesh &_mesh);
206 public:
const Heightmap *HeightmapShape()
const;
210 public:
void SetHeightmapShape(
const Heightmap &_heightmap);
226 GZ_UTILS_IMPL_PTR(dataPtr)
Heightmap represents a shape defined by a 2D field, and is usually accessed through a Geometry.
Definition: Heightmap.hh:133
@ CYLINDER
A cylinder geometry.
namespace for Simulation Description Format parser
Definition: Actor.hh:34
Cylinder represents a cylinder shape, and is usually accessed through a Geometry.
Definition: Cylinder.hh:32
Ellipsoid represents a ellipsoid shape, and is usually accessed through a Geometry.
Definition: Ellipsoid.hh:32
@ POLYLINE
A polyline geometry.
Plane represents a plane shape, and is usually accessed through a Geometry.
Definition: Plane.hh:36
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
Geometry provides access to a shape, such as a Box.
Definition: Geometry.hh:84
GeometryType
Definition: Geometry.hh:47
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
Box represents a box shape, and is usually accessed through a Geometry.
Definition: Box.hh:33
Capsule represents a capsule shape, and is usually accessed through a Geometry.
Definition: Capsule.hh:32
class GZ_SDFORMAT_VISIBLE Element
Definition: Element.hh:50
@ SPHERE
A sphere geometry.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:80
@ CAPSULE
A capsule geometry.
@ HEIGHTMAP
A heightmap geometry.
Mesh represents a mesh shape, and is usually accessed through a Geometry.
Definition: Mesh.hh:38
@ ELLIPSOID
An ellipsoid geometry.
Sphere represents a sphere shape, and is usually accessed through a Geometry.
Definition: Sphere.hh:33
@ EMPTY
Empty geometry. This means no shape has been defined.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54