.TH "QwtCompassMagnetNeedle" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtCompassMagnetNeedle \- .PP A magnet needle for compass widgets. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtDialNeedle\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBStyle\fP { \fBTriangleStyle\fP, \fBThinStyle\fP }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBdraw\fP (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const " .br .ti -1c .RI "const QPalette & \fBpalette\fP () const " .br .ti -1c .RI "\fBQwtCompassMagnetNeedle\fP (\fBStyle\fP=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red)" .br .ti -1c .RI "virtual void \fBsetPalette\fP (const QPalette &)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static void \fBdrawThinNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)" .br .ti -1c .RI "static void \fBdrawTriangleNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static void \fBdrawKnob\fP (QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken)" .br .ti -1c .RI "static void \fBdrawPointer\fP (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint ¢er, int length, int width, double direction)" .br .in -1c .SH "Detailed Description" .PP A magnet needle for compass widgets. A magnet needle points to two opposite directions indicating north and south. .PP The following colors are used: .IP "\(bu" 2 QColorGroup::Light .br Used for pointing south .IP "\(bu" 2 QColorGroup::Dark .br Used for pointing north .IP "\(bu" 2 QColorGroup::Base .br Knob (ThinStyle only) .PP .PP \fBSee also:\fP .RS 4 \fBQwtDial\fP, \fBQwtCompass\fP .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtCompassMagnetNeedle::Style\fP" .PP Style of the needle. .SH "Constructor & Destructor Documentation" .PP .SS "QwtCompassMagnetNeedle::QwtCompassMagnetNeedle (\fBStyle\fPstyle = \fCTriangleStyle\fP, const QColor &light = \fCQt::white\fP, const QColor &dark = \fCQt::red\fP)" .PP Constructor. .SH "Member Function Documentation" .PP .SS "void QwtCompassMagnetNeedle::draw (QPainter *painter, const QPoint ¢er, intlength, doubledirection, QPalette::ColorGroupcolorGroup = \fCQPalette::Active\fP) const\fC [virtual]\fP"Draw the needle .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIcenter\fP Center of the dial, start position for the needle .br \fIlength\fP Length of the needle .br \fIdirection\fP Direction of the needle, in degrees counter clockwise .br \fIcolorGroup\fP Color group, used for painting .RE .PP .PP Implements \fBQwtDialNeedle\fP. .SS "void QwtDialNeedle::drawKnob (QPainter *painter, const QPoint &pos, intwidth, const QBrush &brush, boolsunken)\fC [static, protected, inherited]\fP" .PP Draw the knob. .SS "void QwtCompassMagnetNeedle::drawPointer (QPainter *painter, const QBrush &brush, intcolorOffset, const QPoint ¢er, intlength, intwidth, doubledirection)\fC [static, protected]\fP"Draw a compass needle .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIbrush\fP Brush .br \fIcolorOffset\fP Color offset .br \fIcenter\fP Center, where the needle starts .br \fIlength\fP Length of the needle .br \fIwidth\fP Width of the needle .br \fIdirection\fP Direction .RE .PP .SS "void QwtCompassMagnetNeedle::drawThinNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint ¢er, intlength, doubledirection)\fC [static]\fP"Draw a compass needle .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIpalette\fP Palette .br \fIcolorGroup\fP Color group .br \fIcenter\fP Center, where the needle starts .br \fIlength\fP Length of the needle .br \fIdirection\fP Direction .RE .PP .SS "void QwtCompassMagnetNeedle::drawTriangleNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint ¢er, intlength, doubledirection)\fC [static]\fP"Draw a compass needle .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIpalette\fP Palette .br \fIcolorGroup\fP Color group .br \fIcenter\fP Center, where the needle starts .br \fIlength\fP Length of the needle .br \fIdirection\fP Direction .RE .PP .SS "const QPalette & QwtDialNeedle::palette () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 the palette of the needle. .RE .PP .SS "void QwtDialNeedle::setPalette (const QPalette &palette)\fC [virtual, inherited]\fP"Sets the palette for the needle. .PP \fBParameters:\fP .RS 4 \fIpalette\fP New Palette .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.