QwtClipper(3)
π QwtClipper(3) β Library Functions Manual
okay bestie, welcome to the glow-up era of clipping π this is the QwtClipper page out of the Qwt User's Guide, and it's literally just clipping algorithms. that's the whole vibe. no cap.
β¨ NAME β¨
QwtClipper β some clipping algorithms. that's it. that's the name. iconic minimalism π
πΈ SYNOPSIS πΈ
π¦ Functions
QWT_EXPORT void clipPolygon (const QRect &, QPolygon &, bool
closePolygon=false)
QWT_EXPORT void clipPolygon (const QRectF &, QPolygon &, bool
closePolygon=false)
QWT_EXPORT void clipPolygonF (const QRectF &, QPolygonF &, bool
closePolygon=false)
QWT_EXPORT QPolygon clippedPolygon (const QRect &, const QPolygon &,
bool closePolygon=false)
QWT_EXPORT QPolygon clippedPolygon (const QRectF &, const QPolygon &,
bool closePolygon=false)
QWT_EXPORT QPolygonF clippedPolygonF (const QRectF &, const QPolygonF &,
bool closePolygon=false)
QWT_EXPORT QVector< QwtInterval > clipCircle (const QRectF &, const
QPointF &, double radius)
seven whole functions, all QWT_EXPORT, all here to clip your stuff π₯
π Detailed Description π
Some clipping algorithms.
that's the official description and honestly? she said what she said π this class is the clip queen β polygons, circles, rectangles, all of it.
π Function Documentation π
π QVector< QwtInterval > QwtClipper::clipCircle (const QRectF & clipRect, const QPointF & center, double radius)
Circle clipping π
so clipCircle() divides a circle into intervals of angles, and those intervals represent arcs of the circle. and the cutest part: when the circle is completely inside the clip rectangle, you get an interval [0.0, 2 * M_PI] back. full circle, no notes, she ate π
Parameters
clipRectβ Clip rectanglecenterβ Center of the circleradiusβ Radius of the circle
Returns
Arcs of the circle β¨
Definition at line 477 of file qwt_clipper.cpp.
π§ QPolygon QwtClipper::clippedPolygon (const QRect & clipRect, const QPolygon & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ
Parameters
clipRectβ Clip rectanglepolygonβ PolygonclosePolygonβ True, when the polygon is closed
Returns
Clipped polygon π«Ά
Definition at line 437 of file qwt_clipper.cpp.
πΈ QPolygon QwtClipper::clippedPolygon (const QRectF & clipRect, const QPolygon & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ (the QRectF remix π«)
Parameters
clipRectβ Clip rectanglepolygonβ PolygonclosePolygonβ True, when the polygon is closed
Returns
Clipped polygon π«Ά
Definition at line 420 of file qwt_clipper.cpp.
π QPolygonF QwtClipper::clippedPolygonF (const QRectF & clipRect, const QPolygonF & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ but make it float β note the F on the end, she's fancy π
Parameters
clipRectβ Clip rectanglepolygonβ PolygonclosePolygonβ True, when the polygon is closed
Returns
Clipped polygon π«Ά
Definition at line 455 of file qwt_clipper.cpp.
π void QwtClipper::clipPolygon (const QRect & clipRect, QPolygon & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ
heads up bestie: polygon here is IN/OUT β she gets mutated in place, no return value, she just changes π
Parameters
clipRectβ Clip rectanglepolygonβ Polygon IN/OUTclosePolygonβ True, when the polygon is closed
Definition at line 390 of file qwt_clipper.cpp.
β void QwtClipper::clipPolygon (const QRectF & clipRect, QPolygon & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ (yes, the QRectF version, she's a different overload, don't @ me)
again: polygon is IN/OUT β in-place mutation energy π
Parameters
clipRectβ Clip rectanglepolygonβ Polygon IN/OUTclosePolygonβ True, when the polygon is closed
Definition at line 369 of file qwt_clipper.cpp.
π¦ void QwtClipper::clipPolygonF (const QRectF & clipRect, QPolygonF & polygon, bool closePolygon = false)
Sutherland-Hodgman polygon clipping βοΈ floating-point edition π«
and yup, polygon is IN/OUT here too β mutated right in place β¨
Parameters
clipRectβ Clip rectanglepolygonβ Polygon IN/OUTclosePolygonβ True, when the polygon is closed
Definition at line 404 of file qwt_clipper.cpp.
π«Ά Author π«Ά
Generated automatically by Doxygen for Qwt User's Guide from the source code.
(no human author credited, it's a robot doing its thing π€π )
aaaaand that's the whole page, bestie β every function, every parameter, every default, every Definition at line reference, all accounted for, no cap πβ¨
real talk:closePolygon = falseeverywhere, so unless you flip it totruefor closed polygons, she's open by default π
and that's a wrap on QwtClipper(3) from the Qwt User's Guide β this cutie came straight from the source code, so go forth and clip slayfully ππ π¦
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms