17 #ifndef SDF_GEOMETRY_HH_
18 #define SDF_GEOMETRY_HH_
22 #include <sdf/sdf_config.h>
27 inline namespace SDF_VERSION_NAMESPACE {
31 class GeometryPrivate;
169 private: GeometryPrivate *dataPtr;
Box represents a box shape, and is usually accessed through a Geometry.
Definition: Box.hh:37
Cylinder represents a cylinder shape, and is usually accessed through a Geometry.
Definition: Cylinder.hh:37
Geometry provides access to a shape, such as a Box.
Definition: Geometry.hh:66
GeometryType Type() const
Get the type of geometry.
const Mesh * MeshShape() const
Get the mesh geometry, or nullptr if the contained geometry is not a mesh.
Geometry(const Geometry &_geometry)
Copy constructor.
void SetBoxShape(const Box &_box)
Set the box shape.
const Cylinder * CylinderShape() const
Get the cylinder geometry, or nullptr if the contained geometry is not a cylinder.
void SetMeshShape(const Mesh &_mesh)
Set the mesh shape.
const Box * BoxShape() const
Get the box geometry, or nullptr if the contained geometry is not a box.
void SetSphereShape(const Sphere &_sphere)
Set the sphere shape.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetPlaneShape(const Plane &_plane)
Set the plane shape.
void SetCylinderShape(const Cylinder &_cylinder)
Set the cylinder shape.
Errors Load(ElementPtr _sdf)
Load the geometry based on a element pointer.
Geometry & operator=(const Geometry &_geometry)
Assignment operator.
const Sphere * SphereShape() const
Get the sphere geometry, or nullptr if the contained geometry is not a sphere.
Geometry(Geometry &&_geometry) noexcept
Move constructor.
Geometry & operator=(Geometry &&_geometry)
Move assignment operator.
void SetType(const GeometryType _type)
Set the type of geometry.
Geometry()
Default constructor.
const Plane * PlaneShape() const
Get the plane geometry, or nullptr if the contained geometry is not a plane.
virtual ~Geometry()
Destructor.
Mesh represents a mesh shape, and is usually accessed through a Geometry.
Definition: Mesh.hh:38
Plane represents a plane shape, and is usually accessed through a Geometry.
Definition: Plane.hh:39
Sphere represents a sphere shape, and is usually accessed through a Geometry.
Definition: Sphere.hh:38
GeometryType
The set of geometry types.
Definition: Geometry.hh:41
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
namespace for Simulation Description Format parser
Definition: Actor.hh:33
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48