QwtCompass.3
3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
.TH "QwtCompass" 3 "Sat Jan 26 2013" "Version 6.1-rc3" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtCompass \-
.PP
A Compass Widget\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_compass\&.h>\fP
.PP
Inherits \fBQwtDial\fP\&.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtCompass\fP (QWidget *parent=NULL)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "virtual \fB~QwtCompass\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "void \fBsetRose\fP (\fBQwtCompassRose\fP *\fBrose\fP)"
.br
.ti -1c
.RI "const \fBQwtCompassRose\fP * \fBrose\fP () const "
.br
.ti -1c
.RI "\fBQwtCompassRose\fP * \fBrose\fP ()"
.br
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "virtual void \fBdrawRose\fP (QPainter *, const QPointF ¢er, double radius, double north, QPalette::ColorGroup) const "
.br
.ti -1c
.RI "virtual void \fBdrawScaleContents\fP (QPainter *, const QPointF ¢er, double radius) const "
.br
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP
A Compass Widget\&.
\fBQwtCompass\fP is a widget to display and enter directions\&. It consists of a scale, an optional needle and rose\&.
.PP
.PP
\fBNote:\fP
.RS 4
The examples/dials example shows how to use \fBQwtCompass\fP\&.
.RE
.PP
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtCompass::QwtCompass (QWidget *parent = \fCNULL\fP)\fC [explicit]\fP"
.PP
Constructor\&. \fBParameters:\fP
.RS 4
\fIparent\fP Parent widget
.RE
.PP
Create a compass widget with a scale, no needle and no rose\&. The default origin is 270\&.0 with no valid value\&. It accepts mouse and keyboard inputs and has no step size\&. The default mode is \fBQwtDial::RotateNeedle\fP\&.
.SH "Member Function Documentation"
.PP
.SS "void QwtCompass::drawRose (QPainter *painter, const QPointF ¢er, doubleradius, doublenorth, QPalette::ColorGroupcg) const\fC [protected]\fP, \fC [virtual]\fP"
Draw the compass rose
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter
.br
\fIcenter\fP Center of the compass
.br
\fIradius\fP of the circle, where to paint the rose
.br
\fInorth\fP Direction pointing north, in degrees counter clockwise
.br
\fIcg\fP Color group
.RE
.PP
.SS "void QwtCompass::drawScaleContents (QPainter *painter, const QPointF ¢er, doubleradius) const\fC [protected]\fP, \fC [virtual]\fP"
Draw the contents of the scale
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter
.br
\fIcenter\fP Center of the content circle
.br
\fIradius\fP Radius of the content circle
.RE
.PP
.PP
Reimplemented from \fBQwtDial\fP\&.
.SS "void QwtCompass::keyPressEvent (QKeyEvent *kev)\fC [protected]\fP, \fC [virtual]\fP"
Handles key events
.PP
Beside the keys described in \fBQwtDial::keyPressEvent\fP numbers from 1-9 (without 5) set the direction according to their position on the num pad\&.
.PP
\fBSee Also:\fP
.RS 4
\fBisReadOnly()\fP
.RE
.PP
.PP
Reimplemented from \fBQwtAbstractSlider\fP\&.
.SS "const \fBQwtCompassRose\fP * QwtCompass::rose () const"
\fBReturns:\fP
.RS 4
rose
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetRose()\fP
.RE
.PP
.SS "\fBQwtCompassRose\fP * QwtCompass::rose ()"
\fBReturns:\fP
.RS 4
rose
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetRose()\fP
.RE
.PP
.SS "void QwtCompass::setRose (\fBQwtCompassRose\fP *rose)"
Set a rose for the compass
.PP
\fBParameters:\fP
.RS 4
\fIrose\fP Compass rose
.RE
.PP
\fBWarning:\fP
.RS 4
The rose will be deleted, when a different rose is set or in ~QwtCompass
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBrose()\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.