Krita Source Code Documentation
Loading...
Searching...
No Matches
KisConvexHull Namespace Reference

Functions

QPolygon findConvexHull (const QVector< QPoint > &points)
 
QPolygon findConvexHull (KisPaintDeviceSP device)
 
QPolygon findConvexHullSelectionLike (KisPaintDeviceSP device)
 

Function Documentation

◆ findConvexHull() [1/2]

KRITAIMAGE_EXPORT QPolygon KisConvexHull::findConvexHull ( const QVector< QPoint > & points)

Definition at line 271 of file kis_convex_hull.cpp.

272{
273 QPolygon hull = convexHull(points);
274 return hull;
275}

◆ findConvexHull() [2/2]

KRITAIMAGE_EXPORT QPolygon KisConvexHull::findConvexHull ( KisPaintDeviceSP device)

Definition at line 277 of file kis_convex_hull.cpp.

278{
279 QElapsedTimer timer;
280 timer.start();
281 auto ps = retrieveAllBoundaryPoints(device);
282 auto p = findConvexHull(ps);
283 return p;
284}
const Params2D p
QPolygon findConvexHull(const QVector< QPoint > &points)

References findConvexHull(), and p.

◆ findConvexHullSelectionLike()

KRITAIMAGE_EXPORT QPolygon KisConvexHull::findConvexHullSelectionLike ( KisPaintDeviceSP device)

Definition at line 286 of file kis_convex_hull.cpp.

287{
288 QElapsedTimer timer;
289 timer.start();
290 auto ps = retrieveAllBoundaryPointsSelectionLike(device);
291 auto p = findConvexHull(ps);
292 return p;
293}

References findConvexHull(), and p.