17 #ifndef SDF_GEOMETRY_HH_
18 #define SDF_GEOMETRY_HH_
20 #include <ignition/utils/ImplPtr.hh>
23 #include <sdf/sdf_config.h>
28 inline namespace SDF_VERSION_NAMESPACE {
193 IGN_UTILS_IMPL_PTR(dataPtr)
Box represents a box shape, and is usually accessed through a Geometry.
Definition: Box.hh:34
Capsule represents a capsule shape, and is usually accessed through a Geometry.
Definition: Capsule.hh:33
Cylinder represents a cylinder shape, and is usually accessed through a Geometry.
Definition: Cylinder.hh:33
Ellipsoid represents a ellipsoid shape, and is usually accessed through a Geometry.
Definition: Ellipsoid.hh:33
Geometry provides access to a shape, such as a Box.
Definition: Geometry.hh:78
const Mesh * MeshShape() const
Get the mesh geometry, or nullptr if the contained geometry is not a mesh.
void SetHeightmapShape(const Heightmap &_heightmap)
Set the heightmap shape.
void SetMeshShape(const Mesh &_mesh)
Set the mesh shape.
GeometryType Type() const
Get the type of geometry.
void SetPlaneShape(const Plane &_plane)
Set the plane shape.
const Heightmap * HeightmapShape() const
Get the heightmap geometry, or nullptr if the contained geometry is not a heightmap.
const Plane * PlaneShape() const
Get the plane geometry, or nullptr if the contained geometry is not a plane.
void SetSphereShape(const Sphere &_sphere)
Set the sphere shape.
Geometry()
Default constructor.
void SetCylinderShape(const Cylinder &_cylinder)
Set the cylinder shape.
void SetEllipsoidShape(const Ellipsoid &_ellipsoid)
Set the ellipsoid shape.
void SetBoxShape(const Box &_box)
Set the box shape.
const Ellipsoid * EllipsoidShape() const
Get the ellipsoid geometry, or nullptr if the contained geometry is not an ellipsoid.
Errors Load(ElementPtr _sdf)
Load the geometry based on a element pointer.
void SetCapsuleShape(const Capsule &_capsule)
Set the capsule shape.
const Cylinder * CylinderShape() const
Get the cylinder geometry, or nullptr if the contained geometry is not a cylinder.
void SetType(const GeometryType _type)
Set the type of geometry.
const Box * BoxShape() const
Get the box geometry, or nullptr if the contained geometry is not a box.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
const Capsule * CapsuleShape() const
Get the capsule geometry, or nullptr if the contained geometry is not a capsule.
const Sphere * SphereShape() const
Get the sphere geometry, or nullptr if the contained geometry is not a sphere.
Heightmap represents a shape defined by a 2D field, and is usually accessed through a Geometry.
Definition: Heightmap.hh:120
Mesh represents a mesh shape, and is usually accessed through a Geometry.
Definition: Mesh.hh:36
Plane represents a plane shape, and is usually accessed through a Geometry.
Definition: Plane.hh:37
Sphere represents a sphere shape, and is usually accessed through a Geometry.
Definition: Sphere.hh:34
GeometryType
The set of geometry types.
Definition: Geometry.hh:44
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:106
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54
namespace for Simulation Description Format parser
Definition: Actor.hh:34
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41