Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
qwt
src
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
15
class
QwtInterval
;
16
class
QPointF;
17
class
QRect;
18
class
QRectF;
19
class
QPolygon;
20
class
QPolygonF;
21
template
<
typename
T>
class
QVector
;
22
27
class
QWT_EXPORT
QwtClipper
28
{
29
public
:
30
static
void
clipPolygon(
const
QRect &,
31
QPolygon &,
bool
closePolygon =
false
);
32
33
static
void
clipPolygon(
const
QRectF &,
34
QPolygon &,
bool
closePolygon =
false
);
35
36
static
void
clipPolygonF(
const
QRectF &,
37
QPolygonF &,
bool
closePolygon =
false
);
38
39
static
QPolygon clippedPolygon(
const
QRect &,
40
const
QPolygon &,
bool
closePolygon =
false
);
41
42
static
QPolygon clippedPolygon(
const
QRectF &,
43
const
QPolygon &,
bool
closePolygon =
false
);
44
45
static
QPolygonF clippedPolygonF(
const
QRectF &,
46
const
QPolygonF &,
bool
closePolygon =
false
);
47
48
static
QVector<QwtInterval>
clipCircle(
49
const
QRectF &,
const
QPointF &,
double
radius );
50
};
51
52
#endif
QwtInterval
A class representing an interval.
Definition:
qwt_interval.h:22
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QVector
Definition:
qwt_clipper.h:21
qwt_global.h
QwtClipper
Some clipping algorithms.
Definition:
qwt_clipper.h:27
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10