1
.TH "QwtCompassMagnetNeedle" 3 "11 Jun 2007" "Version 5.0.2" "Qwt User's Guide" \" -*- nroff -*-
5
QwtCompassMagnetNeedle \-
9
Inherits \fBQwtDialNeedle\fP.
11
.SH "Detailed Description"
13
A magnet needle for compass widgets.
15
A magnet needle points to two opposite directions indicating north and south.
17
The following colors are used:
21
Used for pointing south
25
Used for pointing north
34
\fBQwtDial\fP, \fBQwtCompass\fP
39
Definition at line 125 of file qwt_dial_needle.h.
44
.RI "enum \fBStyle\fP { \fBTriangleStyle\fP, \fBThinStyle\fP }"
47
.SS "Public Member Functions"
51
.RI "\fBQwtCompassMagnetNeedle\fP (\fBStyle\fP=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red)"
54
.RI "virtual void \fBdraw\fP (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const "
57
.SS "Static Public Member Functions"
61
.RI "static void \fBdrawTriangleNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)"
64
.RI "static void \fBdrawThinNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)"
67
.SS "Static Protected Member Functions"
71
.RI "static void \fBdrawPointer\fP (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint ¢er, int length, int width, double direction)"
74
.SH "Member Enumeration Documentation"
76
.SS "enum \fBQwtCompassMagnetNeedle::Style\fP"
80
Definition at line 129 of file qwt_dial_needle.h.
81
.SH "Constructor & Destructor Documentation"
83
.SS "QwtCompassMagnetNeedle::QwtCompassMagnetNeedle (\fBStyle\fP = \fCTriangleStyle\fP, const QColor & light = \fCQt::white\fP, const QColor & dark = \fCQt::red\fP)"
87
Definition at line 265 of file qwt_dial_needle.cpp.
89
References QwtDialNeedle::palette().
90
.SH "Member Function Documentation"
92
.SS "void QwtCompassMagnetNeedle::draw (QPainter * painter, const QPoint & center, int length, double direction, QPalette::ColorGroup colorGroup = \fCQPalette::Active\fP) const\fC [virtual]\fP"
100
\fIcenter\fP Center of the dial, start position for the needle
102
\fIlength\fP Length of the needle
104
\fIdirection\fP Direction of the needle, in degrees counter clockwise
106
\fIcolorGroup\fP Color group, used for painting
111
Implements \fBQwtDialNeedle\fP.
113
Definition at line 292 of file qwt_dial_needle.cpp.
115
References drawThinNeedle(), drawTriangleNeedle(), and QwtDialNeedle::palette().
116
.SS "void QwtCompassMagnetNeedle::drawPointer (QPainter * painter, const QBrush & brush, int colorOffset, const QPoint & center, int length, int width, double direction)\fC [static, protected]\fP"
118
Draw a compass needle
122
\fIpainter\fP Painter
126
\fIcolorOffset\fP Color offset
128
\fIcenter\fP Center, where the needle starts
130
\fIlength\fP Length of the needle
132
\fIwidth\fP Width of the needle
134
\fIdirection\fP Direction
139
Definition at line 419 of file qwt_dial_needle.cpp.
141
Referenced by drawThinNeedle().
142
.SS "void QwtCompassMagnetNeedle::drawThinNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, double direction)\fC [static]\fP"
144
Draw a compass needle
148
\fIpainter\fP Painter
150
\fIpalette\fP Palette
152
\fIcolorGroup\fP Color group
154
\fIcenter\fP Center, where the needle starts
156
\fIlength\fP Length of the needle
158
\fIdirection\fP Direction
163
Definition at line 383 of file qwt_dial_needle.cpp.
165
References QwtDialNeedle::drawKnob(), and drawPointer().
167
Referenced by draw().
168
.SS "void QwtCompassMagnetNeedle::drawTriangleNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, double direction)\fC [static]\fP"
170
Draw a compass needle
174
\fIpainter\fP Painter
176
\fIpalette\fP Palette
178
\fIcolorGroup\fP Color group
180
\fIcenter\fP Center, where the needle starts
182
\fIlength\fP Length of the needle
184
\fIdirection\fP Direction
189
Definition at line 317 of file qwt_dial_needle.cpp.
191
Referenced by draw().
195
Generated automatically by Doxygen for Qwt User's Guide from the source code.