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 259 of file kis_convex_hull.cpp.

260{
261 QPolygon hull = convexHull(points);
262 return hull;
263}

◆ findConvexHull() [2/2]

KRITAIMAGE_EXPORT QPolygon KisConvexHull::findConvexHull ( KisPaintDeviceSP device)

Definition at line 265 of file kis_convex_hull.cpp.

266{
267 QElapsedTimer timer;
268 timer.start();
269 auto ps = retrieveAllBoundaryPoints(device);
270 auto p = findConvexHull(ps);
271 return p;
272}
const Params2D p
QPolygon findConvexHull(const QVector< QPoint > &points)

References findConvexHull(), and p.

◆ findConvexHullSelectionLike()

KRITAIMAGE_EXPORT QPolygon KisConvexHull::findConvexHullSelectionLike ( KisPaintDeviceSP device)

Definition at line 274 of file kis_convex_hull.cpp.

275{
276 QElapsedTimer timer;
277 timer.start();
278 auto ps = retrieveAllBoundaryPointsSelectionLike(device);
279 auto p = findConvexHull(ps);
280 return p;
281}

References findConvexHull(), and p.