Go to the documentation of this file.
20 #include <ignition/math/Box.hh>
21 #include <ignition/math/Vector3.hh>
24 #include <sdf/sdf_config.h>
29 inline namespace SDF_VERSION_NAMESPACE {
72 public: ignition::math::Vector3d
Size()
const;
76 public:
void SetSize(
const ignition::math::Vector3d &_size);
86 public:
const ignition::math::Boxd &
Shape()
const;
90 public: ignition::math::Boxd &
Shape();
93 private: BoxPrivate *dataPtr;
Errors Load(ElementPtr _sdf)
Load the box geometry based on a element pointer.
Box(Box &&_box) noexcept
Move constructor.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Box(const Box &_box)
Copy constructor.
Box & operator=(const Box &_box)
Assignment operator.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
virtual ~Box()
Destructor.
ignition::math::Vector3d Size() const
Get the box size in meters.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
const ignition::math::Boxd & Shape() const
Get the Ignition Math representation of this Box.
Box represents a box shape, and is usually accessed through a Geometry.
Definition: Box.hh:37
ignition::math::Boxd & Shape()
Get a mutable Ignition Math representation of this Box.
Box & operator=(Box &&_box)
Move assignment operator.
void SetSize(const ignition::math::Vector3d &_size)
Set the box size in meters.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.