logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtClipper - Some clipping algorithms.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                    QwtClipper(3)

Detailed Description

       Some clipping algorithms.

Member Function Documentation

QVector<QwtInterval>QwtClipper::clipCircle(constQRectF&clipRect,constQPointF&center,doubleradius)[static]
       Circle clipping

       clipCircle() divides 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.

       Parameters:clipRect Clip rectangle
           center Center of the circle
           radius Radius of the circle

       Returns:
           Arcs of the circle

   QPolygonQwtClipper::clipPolygon(constQRect&clipRect,constQPolygon&polygon,boolclosePolygon=false)[static]
       Sutherland-Hodgman polygon clipping

       Parameters:clipRect Clip rectangle
           polygon Polygon
           closePolygon True, when the polygon is closed

       Returns:
           Clipped polygon

   QPolygonQwtClipper::clipPolygon(constQRectF&clipRect,constQPolygon&polygon,boolclosePolygon=false)[static]
       Sutherland-Hodgman polygon clipping

       Parameters:clipRect Clip rectangle
           polygon Polygon
           closePolygon True, when the polygon is closed

       Returns:
           Clipped polygon

   QPolygonFQwtClipper::clipPolygonF(constQRectF&clipRect,constQPolygonF&polygon,boolclosePolygon=false)[static]
       Sutherland-Hodgman polygon clipping

       Parameters:clipRect Clip rectangle
           polygon Polygon
           closePolygon True, when the polygon is closed

       Returns:
           Clipped polygon

Name

       QwtClipper - Some clipping algorithms.

Synopsis

       #include <qwt_clipper.h>

   StaticPublicMemberFunctions
       static QPolygon clipPolygon (const QRect &, const QPolygon &, bool closePolygon=false)
       static QPolygon clipPolygon (const QRectF &, const QPolygon &, bool closePolygon=false)
       static QPolygonF clipPolygonF (const QRectF &, const QPolygonF &, bool closePolygon=false)
       static QVector< QwtInterval > clipCircle (const QRectF &, const QPointF &, double radius)

See Also