Qwt User's Guide: qwt_clipper.h Source File

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
23 template< typename T > class QVector;
24#endif
25
30 namespace 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
50 QWT_EXPORT QVector< QwtInterval > clipCircle(
51 const QRectF&, const QPointF&, double radius );
52};
53
54#endif
QVector
Definition qwt_clipper.h:23
QwtInterval
A class representing an interval.
Definition qwt_interval.h:23
QwtClipper
Some clipping algorithms.
Definition qwt_clipper.h:31
QwtClipper::clipPolygon
QWT_EXPORT void clipPolygon(const QRect &, QPolygon &, bool closePolygon=false)
Definition qwt_clipper.cpp:390
QwtClipper::clippedPolygonF
QWT_EXPORT QPolygonF clippedPolygonF(const QRectF &, const QPolygonF &, bool closePolygon=false)
Definition qwt_clipper.cpp:455
QwtClipper::clipPolygonF
QWT_EXPORT void clipPolygonF(const QRectF &, QPolygonF &, bool closePolygon=false)
Definition qwt_clipper.cpp:404
QwtClipper::clipCircle
QWT_EXPORT QVector< QwtInterval > clipCircle(const QRectF &, const QPointF &, double radius)
Definition qwt_clipper.cpp:477
QwtClipper::clippedPolygon
QWT_EXPORT QPolygon clippedPolygon(const QRect &, const QPolygon &, bool closePolygon=false)
Definition qwt_clipper.cpp:437