|
Krita Source Code Documentation
|
The KoPolygonUtils class. More...
#include <KoPolygonUtils.h>
Static Public Member Functions | |
| static QPolygon | offsetPolygon (const QPolygon &polygon, int offset, bool rounded=true, int circleSegments=16) |
| offsetPolygon This offsets a single polygon, using the winding/nonzero fill-rule to determine inside and outside. | |
| static QList< QPolygon > | offsetPolygons (const QList< QPolygon > polygons, int offset, bool rounded=true, int circleSegments=16) |
The KoPolygonUtils class.
This class allows us to use the Polygon Concept from boost for QPolygons, which has a very fast polygon offset algorithm, necessary for text-padding.
For more info see: https://www.boost.org/doc/libs/1_81_0/libs/polygon/doc/gtl_polygon_set_concept.htm
Definition at line 22 of file KoPolygonUtils.h.
|
static |
offsetPolygon This offsets a single polygon, using the winding/nonzero fill-rule to determine inside and outside.
| polygon | |
| offset | the offset. |
| rounded | whether the edges are rounded. |
| circleSegments | segments in a 360° circle. |
Definition at line 95 of file KoPolygonUtils.cpp.
|
static |
Definition at line 103 of file KoPolygonUtils.cpp.