|
Collision Checker
|
BoostPolygon allows to use boost.Geometry functions for Polygon objects. More...
#include <boost_object_polygon.h>
Public Member Functions | |
| BoostPolygon (void) | |
| Constructs a BoostPolygon from Polygon. More... | |
| BoostPolygon (const BoostPolygon &other) | |
| BoostPolygon (const collision::Polygon *obj) | |
| BoostPolygon (const collision::RectangleOBB *obj) | |
| Constructs a BoostPolygon from RectangleOBB. More... | |
| BoostPolygon (const collision::RectangleAABB *obj) | |
| Constructs a BoostPolygon from RectangleAABB. More... | |
| BoostPolygon (const bg_polygon_type polygon) | |
| Constructs a BoostPolygon from Boost.Geometry polygon. More... | |
| virtual | ~BoostPolygon (void) |
| int | extend (std::vector< BoostPolygon > &output, double radius) const |
| int | buffer (std::vector< BoostPolygon > &output, double radius) const |
| Buffers (enlargens) the polygon with a given radius. More... | |
| BoostPolygonConstPtr | convexHull (void) const |
| Computes a convex hull of the given BoostPolygon. More... | |
| collision::PolygonConstPtr | toPolygon (triangulation::TriangulationQuality qual=triangulation::TriangulationQuality()) const |
| Converts the BoostPolygon into a collision Polygon. More... | |
| int | getTrapezoids (std::vector< BoostPolygon > &output, int axis=0) const |
| bool | within (const BoostPolygon &other) const |
| Returns true if the BoostPolygon is completely contained within another BoostPolygon object. More... | |
| bg_polygon_type * | getInternal (void) const |
| Returns the contained boost.Geometry polygon object. More... | |
Public Member Functions inherited from collision::solvers::solverBoost::BoostObjectInternal | |
| virtual | ~BoostObjectInternal (void) |
BoostPolygon allows to use boost.Geometry functions for Polygon objects.
The class is used internally to provide functionality for polygon operation queries.
Definition at line 39 of file boost_object_polygon.h.
|
inline |
Constructs a BoostPolygon from Polygon.
The input Polygon shall be counterclockwise-oriented and not closed. The first vertex is appended to the resulting polygon in the end so as to make it closed.
Definition at line 50 of file boost_object_polygon.h.
|
inline |
Definition at line 51 of file boost_object_polygon.h.
|
inline |
Definition at line 63 of file boost_object_polygon.h.
|
inline |
Constructs a BoostPolygon from RectangleOBB.
Definition at line 100 of file boost_object_polygon.h.
|
inline |
Constructs a BoostPolygon from RectangleAABB.
Definition at line 122 of file boost_object_polygon.h.
|
inline |
Constructs a BoostPolygon from Boost.Geometry polygon.
Definition at line 140 of file boost_object_polygon.h.
|
inlinevirtual |
Definition at line 154 of file boost_object_polygon.h.
| int collision::solvers::solverBoost::BoostPolygon::buffer | ( | std::vector< BoostPolygon > & | output, |
| double | radius | ||
| ) | const |
Buffers (enlargens) the polygon with a given radius.
Definition at line 21 of file boost_object_polygon.cc.
| BoostPolygonConstPtr collision::solvers::solverBoost::BoostPolygon::convexHull | ( | void | ) | const |
Computes a convex hull of the given BoostPolygon.
Definition at line 12 of file boost_object_polygon.cc.
| int collision::solvers::solverBoost::BoostPolygon::extend | ( | std::vector< BoostPolygon > & | output, |
| double | radius | ||
| ) | const |
Definition at line 47 of file boost_object_polygon.cc.
|
inline |
Returns the contained boost.Geometry polygon object.
Definition at line 178 of file boost_object_polygon.h.
| int collision::solvers::solverBoost::BoostPolygon::getTrapezoids | ( | std::vector< BoostPolygon > & | output, |
| int | axis = 0 |
||
| ) | const |
| collision::PolygonConstPtr collision::solvers::solverBoost::BoostPolygon::toPolygon | ( | triangulation::TriangulationQuality | qual = triangulation::TriangulationQuality() | ) | const |
Converts the BoostPolygon into a collision Polygon.
Definition at line 75 of file boost_object_polygon.cc.
|
inline |
Returns true if the BoostPolygon is completely contained within another BoostPolygon object.
Definition at line 172 of file boost_object_polygon.h.