Computes the convex hull of a set of points or a layout. More...
#include <ogdf/graphalg/ConvexHull.h>
Public Member Functions | |
| ConvexHull () | |
| ~ConvexHull () | |
| DPoint | calcNormal (const DPoint &start, const DPoint &end) const |
| DPolygon | call (GraphAttributes &GA) const |
| DPolygon | call (MultilevelGraph &MLG) const |
| DPolygon | call (std::vector< DPoint > points) const |
| double | leftOfLine (const DPoint &normal, const DPoint &point, const DPoint &pointOnLine) const |
Private Member Functions | |
| DPolygon | conv (const DPolygon &poly) const |
| void | leftHull (std::vector< DPoint > points, DPoint &start, DPoint &end, DPolygon &hullPoly) const |
| bool | sameDirection (const DPoint &start, const DPoint &end, const DPoint &s, const DPoint &e) const |
Computes the convex hull of a set of points or a layout.
All returned polygons are clockwise (cw).
Definition at line 48 of file ConvexHull.h.
| ogdf::ConvexHull::ConvexHull | ( | ) |
| ogdf::ConvexHull::~ConvexHull | ( | ) |
| DPolygon ogdf::ConvexHull::call | ( | GraphAttributes & | GA | ) | const |
| DPolygon ogdf::ConvexHull::call | ( | MultilevelGraph & | MLG | ) | const |
|
private |
| double ogdf::ConvexHull::leftOfLine | ( | const DPoint & | normal, |
| const DPoint & | point, | ||
| const DPoint & | pointOnLine | ||
| ) | const |
|
private |