~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to qwt/src/qwt_clipper.h

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Qwt Widget Library
3
3
 * Copyright (C) 1997   Josef Wilgen
4
4
 * Copyright (C) 2002   Uwe Rathmann
5
 
 * 
 
5
 *
6
6
 * This library is free software; you can redistribute it and/or
7
7
 * modify it under the terms of the Qwt License, Version 1.0
8
8
 *****************************************************************************/
11
11
#define QWT_CLIPPER_H
12
12
 
13
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"
 
14
#include "qwt_interval.h"
 
15
#include <qpolygon.h>
 
16
#include <qvector.h>
18
17
 
19
18
class QRect;
 
19
class QRectF;
20
20
 
21
21
/*!
22
22
  \brief Some clipping algos
25
25
class QWT_EXPORT QwtClipper
26
26
{
27
27
public:
28
 
    static QwtPolygon clipPolygon(const QRect &, const QwtPolygon &);
29
 
    static QwtPolygonF clipPolygonF(const QwtDoubleRect &, const QwtPolygonF &);
 
28
    static QPolygon clipPolygon( const QRect &,
 
29
        const QPolygon &, bool closePolygon = false );
 
30
    static QPolygonF clipPolygonF( const QRectF &,
 
31
        const QPolygonF &, bool closePolygon = false );
30
32
 
31
 
#if QT_VERSION >= 0x040000
32
 
    static QwtArray<QwtDoubleInterval> clipCircle(
33
 
        const QwtDoubleRect &, const QwtDoublePoint &, double radius);
34
 
#endif
 
33
    static QVector<QwtInterval> clipCircle(
 
34
        const QRectF &, const QPointF &, double radius );
35
35
};
36
36
 
37
37
#endif