Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_CLIPPER_H
00011 #define QWT_CLIPPER_H
00012
00013 #include "qwt_global.h"
00014 #include "qwt_interval.h"
00015 #include <qpolygon.h>
00016 #include <qvector.h>
00017
00018 class QRect;
00019 class QRectF;
00020
00025 class QWT_EXPORT QwtClipper
00026 {
00027 public:
00028 static QPolygon clipPolygon( const QRect &,
00029 const QPolygon &, bool closePolygon = false );
00030 static QPolygon clipPolygon( const QRectF &,
00031 const QPolygon &, bool closePolygon = false );
00032
00033 static QPolygonF clipPolygonF( const QRectF &,
00034 const QPolygonF &, bool closePolygon = false );
00035
00036 static QVector<QwtInterval> clipCircle(
00037 const QRectF &, const QPointF &, double radius );
00038 };
00039
00040 #endif