1
.TH "QwtCompassMagnetNeedle" 3 "22 Mar 2009" "Version 5.1.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 { \fBArrow\fP, \fBRay\fP, \fBTriangleStyle\fP, \fBThinStyle\fP, \fBStyle1\fP, \fBStyle2\fP, \fBNoSymbol\fP = -1, \fBEllipse\fP, \fBRect\fP, \fBDiamond\fP, \fBTriangle\fP, \fBDTriangle\fP, \fBUTriangle\fP, \fBLTriangle\fP, \fBRTriangle\fP, \fBCross\fP, \fBXCross\fP, \fBHLine\fP, \fBVLine\fP, \fBStar1\fP, \fBStar2\fP, \fBHexagon\fP, \fBStyleCnt\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(), and QwtDialNeedle::setPalette().
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::drawTriangleNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, double direction)\fC [static]\fP"
118
Draw a compass needle
122
\fIpainter\fP Painter
124
\fIpalette\fP Palette
126
\fIcolorGroup\fP Color group
128
\fIcenter\fP Center, where the needle starts
130
\fIlength\fP Length of the needle
132
\fIdirection\fP Direction
137
Definition at line 317 of file qwt_dial_needle.cpp.
139
Referenced by draw().
140
.SS "void QwtCompassMagnetNeedle::drawThinNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, double direction)\fC [static]\fP"
142
Draw a compass needle
146
\fIpainter\fP Painter
148
\fIpalette\fP Palette
150
\fIcolorGroup\fP Color group
152
\fIcenter\fP Center, where the needle starts
154
\fIlength\fP Length of the needle
156
\fIdirection\fP Direction
161
Definition at line 383 of file qwt_dial_needle.cpp.
163
References QwtDialNeedle::drawKnob(), and drawPointer().
165
Referenced by draw().
166
.SS "void QwtCompassMagnetNeedle::drawPointer (QPainter * painter, const QBrush & brush, int colorOffset, const QPoint & center, int length, int width, double direction)\fC [static, protected]\fP"
168
Draw a compass needle
172
\fIpainter\fP Painter
176
\fIcolorOffset\fP Color offset
178
\fIcenter\fP Center, where the needle starts
180
\fIlength\fP Length of the needle
182
\fIwidth\fP Width of the needle
184
\fIdirection\fP Direction
189
Definition at line 419 of file qwt_dial_needle.cpp.
191
Referenced by drawThinNeedle().
195
Generated automatically by Doxygen for Qwt User's Guide from the source code.