Qwt User's Guide 6.3.0
Loading...
Searching...
No Matches
qwt_clipper.h
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef QWT_CLIPPER_H
11#define QWT_CLIPPER_H
12
13#include "qwt_global.h"
14
15class QwtInterval;
16class QPointF;
17class QRect;
18class QRectF;
19class QPolygon;
20class QPolygonF;
21
22#if QT_VERSION < 0x060000
23template< typename T > class QVector;
24#endif
25
30namespace QwtClipper
31{
32 QWT_EXPORT void clipPolygon( const QRect&,
33 QPolygon&, bool closePolygon = false );
34
35 QWT_EXPORT void clipPolygon( const QRectF&,
36 QPolygon&, bool closePolygon = false );
37
38 QWT_EXPORT void clipPolygonF( const QRectF&,
39 QPolygonF&, bool closePolygon = false );
40
41 QWT_EXPORT QPolygon clippedPolygon( const QRect&,
42 const QPolygon&, bool closePolygon = false );
43
44 QWT_EXPORT QPolygon clippedPolygon( const QRectF&,
45 const QPolygon&, bool closePolygon = false );
46
47 QWT_EXPORT QPolygonF clippedPolygonF( const QRectF&,
48 const QPolygonF&, bool closePolygon = false );
49
51 const QRectF&, const QPointF&, double radius );
52};
53
54#endif
A class representing an interval.
Some clipping algorithms.
Definition qwt_clipper.h:31
QWT_EXPORT void clipPolygon(const QRect &, QPolygon &, bool closePolygon=false)
QWT_EXPORT QPolygonF clippedPolygonF(const QRectF &, const QPolygonF &, bool closePolygon=false)
QWT_EXPORT void clipPolygonF(const QRectF &, QPolygonF &, bool closePolygon=false)
QWT_EXPORT QVector< QwtInterval > clipCircle(const QRectF &, const QPointF &, double radius)
QWT_EXPORT QPolygon clippedPolygon(const QRect &, const QPolygon &, bool closePolygon=false)