MCPcopy Create free account
hub / github.com/IENT/YUView / convertToQPolygon

Function convertToQPolygon

YUViewLib/src/statistics/StatisticsDataPainting.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#endif
54
55QPolygon convertToQPolygon(const stats::Polygon &poly)
56{
57 if (poly.empty())
58 return QPolygon();
59
60 auto qPoly = QPolygon(int(poly.size()));
61 for (int i = 0; i < int(poly.size()); i++)
62 qPoly.setPoint(i, QPoint(poly[i].x, poly[i].y));
63 return qPoly;
64}
65
66QPoint getPolygonCenter(const QPolygon &polygon)
67{

Callers 1

paintStatisticsDataMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected