qwt_clipper.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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 #include "qwt_interval.h"
15 #include <qpolygon.h>
16 #include <qvector.h>
17 
18 class QRect;
19 class QRectF;
20 
26 {
27 public:
28  static void clipPolygon( const QRect &,
29  QPolygon &, bool closePolygon = false );
30 
31  static void clipPolygon( const QRectF &,
32  QPolygon &, bool closePolygon = false );
33 
34  static void clipPolygonF( const QRectF &,
35  QPolygonF &, bool closePolygon = false );
36 
37  static QPolygon clippedPolygon( const QRect &,
38  const QPolygon &, bool closePolygon = false );
39 
40  static QPolygon clippedPolygon( const QRectF &,
41  const QPolygon &, bool closePolygon = false );
42 
43  static QPolygonF clippedPolygonF( const QRectF &,
44  const QPolygonF &, bool closePolygon = false );
45 
46  static QVector<QwtInterval> clipCircle(
47  const QRectF &, const QPointF &, double radius );
48 };
49 
50 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
Some clipping algorithms.
Definition: qwt_clipper.h:25


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17