Collision Checker
collision::solvers::solverBoost::BoostPolygon Class Reference

BoostPolygon allows to use boost.Geometry functions for Polygon objects. More...

#include <boost_object_polygon.h>

Inheritance diagram for collision::solvers::solverBoost::BoostPolygon:
collision::solvers::solverBoost::BoostObjectInternal

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_typegetInternal (void) const
 Returns the contained boost.Geometry polygon object. More...
 
- Public Member Functions inherited from collision::solvers::solverBoost::BoostObjectInternal
virtual ~BoostObjectInternal (void)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BoostPolygon() [1/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( void  )
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.

◆ BoostPolygon() [2/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( const BoostPolygon other)
inline

Definition at line 51 of file boost_object_polygon.h.

◆ BoostPolygon() [3/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( const collision::Polygon obj)
inline

Definition at line 63 of file boost_object_polygon.h.

◆ BoostPolygon() [4/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( const collision::RectangleOBB obj)
inline

Constructs a BoostPolygon from RectangleOBB.

Definition at line 100 of file boost_object_polygon.h.

◆ BoostPolygon() [5/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( const collision::RectangleAABB obj)
inline

Constructs a BoostPolygon from RectangleAABB.

Definition at line 122 of file boost_object_polygon.h.

◆ BoostPolygon() [6/6]

collision::solvers::solverBoost::BoostPolygon::BoostPolygon ( const bg_polygon_type  polygon)
inline

Constructs a BoostPolygon from Boost.Geometry polygon.

Definition at line 140 of file boost_object_polygon.h.

◆ ~BoostPolygon()

virtual collision::solvers::solverBoost::BoostPolygon::~BoostPolygon ( void  )
inlinevirtual

Definition at line 154 of file boost_object_polygon.h.

Member Function Documentation

◆ buffer()

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.

◆ convexHull()

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.

◆ extend()

int collision::solvers::solverBoost::BoostPolygon::extend ( std::vector< BoostPolygon > &  output,
double  radius 
) const

Definition at line 47 of file boost_object_polygon.cc.

◆ getInternal()

bg_polygon_type* collision::solvers::solverBoost::BoostPolygon::getInternal ( void  ) const
inline

Returns the contained boost.Geometry polygon object.

Definition at line 178 of file boost_object_polygon.h.

◆ getTrapezoids()

int collision::solvers::solverBoost::BoostPolygon::getTrapezoids ( std::vector< BoostPolygon > &  output,
int  axis = 0 
) const

◆ toPolygon()

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.

◆ within()

bool collision::solvers::solverBoost::BoostPolygon::within ( const BoostPolygon other) const
inline

Returns true if the BoostPolygon is completely contained within another BoostPolygon object.

Definition at line 172 of file boost_object_polygon.h.


The documentation for this class was generated from the following files: