Qwt User's Guide
5.2.3
|
#include <qwt_clipper.h>
Static Public Member Functions | |
static QwtArray < QwtDoubleInterval > | clipCircle (const QwtDoubleRect &, const QwtDoublePoint &, double radius) |
static QwtPolygon | clipPolygon (const QRect &, const QwtPolygon &) |
static QwtPolygonF | clipPolygonF (const QwtDoubleRect &, const QwtPolygonF &) |
Some clipping algos.
|
static |
Circle clipping
clipCircle() devides a circle into intervals of angles representing arcs of the circle. When the circle is completely inside the clip rectangle an interval [0.0, 2 * M_PI] is returned.
clipRect | Clip rectangle |
center | Center of the circle |
radius | Radius of the circle |
|
static |
Sutherland-Hodgman polygon clipping
clipRect | Clip rectangle |
polygon | Polygon |
|
static |
Sutherland-Hodgman polygon clipping
clipRect | Clip rectangle |
polygon | Polygon |