QwtClipper(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– 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 &center, 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