QwtClipper(3)
π QwtClipper π
okay bestie, welcome to QwtClipper(3), straight outta the Qwt User's Guide πΈ. no cap, this one's a lil utility class that's just... here to clip things for you. no constructors, no drama, just vibes and math. β¨
π NAME π
QwtClipper β that's it, that's the name, she's mysterious like that π
β¨ SYNOPSIS β¨
first things first, you gotta let the compiler know she exists:
#include <qwt_clipper.h>
π Static Public Member Functions π
these are the girlies. all static, all serving:
static QwtArray< QwtDoubleInterval > clipCircle(const QwtDoubleRect &, const QwtDoublePoint &, double radius)
static QwtPolygon clipPolygon(const QRect &, const QwtPolygon &)
static QwtPolygonF clipPolygonF(const QwtDoubleRect &, const QwtPolygonF &)
π¦ Detailed Description π¦
literally just: Some clipping algos. π«Ά that's the whole description. she's concise. she knows what she is.
π Member Function Documentation π
π QwtArray< QwtDoubleInterval > QwtClipper::clipCircle(const QwtDoubleRect &clipRect, const QwtDoublePoint ¢er, doubleradius) [static]
circle clipping, bestie π
so clipCircle() devides a circle into intervals of angles representing arcs of the circle. and listen β when the circle is completely inside the clip rectangle, you get an interval [0.0, 2 * M_PI] back. full circle, full slay, periodt. π«
Parameters:
- clipRect β Clip rectangle
- center β Center of the circle
- radius β Radius of the circle
Returns:
- Arcs of the circle
πΈ QwtPolygon QwtClipper::clipPolygon(const QRect &clipRect, const QwtPolygon &polygon) [static]
Sutherland-Hodgman polygon clipping βοΈ iconic algorithm behavior, ngl.
Parameters:
- clipRect β Clip rectangle
- polygon β Polygon
Returns:
- Clipped polygon
β QwtPolygonF QwtClipper::clipPolygonF(const QwtDoubleRect &clipRect, const QwtPolygonF &polygon) [static]
Sutherland-Hodgman polygon clipping again but make it float π (that's the F, iykyk).
Parameters:
- clipRect β Clip rectangle
- polygon β Polygon
Returns:
- Clipped polygon
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so technically nobody wrote this, the robots did it. we respect the robots. π€β¨
fr fr, that's the whole page. three static functions, one include, and a whole lotta clipping energy. go forth and clip, main character. π«Άπ
okay and for the cute sign-off: this was Version 5.2.3, dated Tue Nov 20 2012 π β and the page name is QwtClipper(3), if you were wondering. mwah, bye bestie! π
πΈ
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms