A region, made of a list of boxes. More...
#include <Region.hh>
Public Member Functions | |
Region ()=default | |
Constructor. More... | |
virtual | ~Region ()=default |
Destructor. More... | |
bool | Contains (const math::Vector3 &_p) const GAZEBO_DEPRECATED(8.0) |
Check if a point lies inside the region. More... | |
bool | Contains (const ignition::math::Vector3d &_p) const |
Check if a point lies inside the region. More... | |
void | Load (const sdf::ElementPtr &_sdf) |
Load from a world file (inside a SimEvent plugin element) More... | |
Public Attributes | |
std::vector< ignition::math::Box > | boxes |
The list of volumes inside this region. More... | |
std::string | name |
Name of the region (as defined in the world file) More... | |
Friends | |
std::ostream & | operator<< (std::ostream &_out, const Region &_region) |
Output operator to print a region to the console. More... | |
A region, made of a list of boxes.
|
default |
Constructor.
|
virtualdefault |
Destructor.
bool Contains | ( | const math::Vector3 & | _p | ) | const |
Check if a point lies inside the region.
[in] | _p | Point to check |
bool Contains | ( | const ignition::math::Vector3d & | _p | ) | const |
Check if a point lies inside the region.
[in] | _p | Point to check |
void Load | ( | const sdf::ElementPtr & | _sdf | ) |
Load from a world file (inside a SimEvent plugin element)
[in] | _sdf | The <region> element |
|
friend |
Output operator to print a region to the console.
[in] | _out | The output stream. |
[in] | _region | The instance to write out. |
std::vector<ignition::math::Box> boxes |
The list of volumes inside this region.
std::string name |
Name of the region (as defined in the world file)