1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
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
*****************************************************************************/
13
#include "qwt_global.h"
14
#include "qwt_array.h"
15
#include "qwt_polygon.h"
16
#include "qwt_double_rect.h"
17
#include "qwt_double_interval.h"
22
\brief Some clipping algos
25
class QWT_EXPORT QwtClipper
28
static QwtPolygon clipPolygon(const QRect &, const QwtPolygon &);
29
static QwtPolygonF clipPolygonF(const QwtDoubleRect &, const QwtPolygonF &);
31
#if QT_VERSION >= 0x040000
32
static QwtArray<QwtDoubleInterval> clipCircle(
33
const QwtDoubleRect &, const QwtDoublePoint &, double radius);