Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
g
i
l
m
o
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
w
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Properties
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Related Functions
:
a
b
c
d
e
f
g
i
m
o
q
r
s
v
w
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
+
Enumerations
a
b
c
d
e
f
h
i
k
l
n
o
r
t
u
v
x
+
Enumerator
b
c
d
e
f
h
i
k
l
m
n
o
p
r
t
u
v
w
x
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
3rdparty
qwt
src
qwt_bezier.h
Go to the documentation of this file.
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_BEZIER_H
11
#define QWT_BEZIER_H
12
13
#include "
qwt_global.h
"
14
15
class
QPointF;
16
class
QPolygonF;
17
29
class
QWT_EXPORT
QwtBezier
30
{
31
public
:
32
QwtBezier
(
double
tolerance = 0.5 );
33
~
QwtBezier
();
34
35
void
setTolerance(
double
tolerance );
36
double
tolerance()
const
;
37
38
QPolygonF toPolygon(
const
QPointF& p1,
const
QPointF& cp1,
39
const
QPointF& cp2,
const
QPointF& p2 )
const
;
40
41
void
appendToPolygon(
const
QPointF& p1,
const
QPointF& cp1,
42
const
QPointF& cp2,
const
QPointF& p2, QPolygonF& polygon )
const
;
43
44
static
QPointF pointAt(
const
QPointF& p1,
const
QPointF& cp1,
45
const
QPointF& cp2,
const
QPointF& p2,
double
t );
46
47
private
:
48
double
m_tolerance
;
49
double
m_flatness
;
50
};
51
56
inline
double
QwtBezier::tolerance
()
const
57
{
58
return
m_tolerance;
59
}
60
61
#endif
QwtBezier::m_flatness
double m_flatness
Definition:
qwt_bezier.h:49
QwtBezier::m_tolerance
double m_tolerance
Definition:
qwt_bezier.h:48
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtBezier::tolerance
double tolerance() const
Definition:
qwt_bezier.h:56
qwt_global.h
QwtBezier
An implementation of the de Casteljau’s Algorithm for interpolating Bézier curves.
Definition:
qwt_bezier.h:29
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38