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_compass_rose.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_COMPASS_ROSE_H
11
#define QWT_COMPASS_ROSE_H
12
13
#include "
qwt_global.h
"
14
#include <qpalette.h>
15
16
class
QPainter;
17
21
class
QWT_EXPORT
QwtCompassRose
22
{
23
public
:
24
QwtCompassRose
();
25
virtual
~
QwtCompassRose
();
26
27
virtual
void
setPalette(
const
QPalette& );
28
const
QPalette& palette()
const
;
29
39
virtual
void
draw( QPainter* painter,
40
const
QPointF&
center
,
double
radius,
double
north,
41
QPalette::ColorGroup colorGroup = QPalette::Active )
const
= 0;
42
43
private
:
44
Q_DISABLE_COPY(
QwtCompassRose
)
45
46
QPalette m_palette;
47
};
48
52
class
QWT_EXPORT
QwtSimpleCompassRose
: public
QwtCompassRose
53
{
54
public
:
55
QwtSimpleCompassRose
(
int
numThorns = 8,
int
numThornLevels = -1 );
56
virtual
~
QwtSimpleCompassRose
();
57
58
void
setWidth(
double
);
59
double
width()
const
;
60
61
void
setNumThorns(
int
);
62
int
numThorns()
const
;
63
64
void
setNumThornLevels(
int
);
65
int
numThornLevels()
const
;
66
67
void
setShrinkFactor(
double
factor );
68
double
shrinkFactor()
const
;
69
70
virtual
void
draw( QPainter*,
71
const
QPointF& center,
double
radius,
double
north,
72
QPalette::ColorGroup = QPalette::Active )
const
QWT_OVERRIDE
;
73
74
static
void
drawRose( QPainter*,
const
QPalette&,
75
const
QPointF& center,
double
radius,
double
north,
double
width,
76
int
numThorns,
int
numThornLevels,
double
shrinkFactor );
77
78
private
:
79
class
PrivateData
;
80
PrivateData
*
m_data
;
81
};
82
83
#endif
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtSimpleCompassRose
A simple rose for QwtCompass.
Definition:
qwt_compass_rose.h:52
QwtSimpleCompassRose::PrivateData
Definition:
qwt_compass_rose.cpp:55
qwt_global.h
QwtSimpleCompassRose::m_data
PrivateData * m_data
Definition:
qwt_compass_rose.h:79
QwtCompassRose
Abstract base class for a compass rose.
Definition:
qwt_compass_rose.h:21
align::center
Definition:
core.h:1870
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38