.TH "QwtDialNeedle" 3 "Sun Jul 18 2021" "Version 6.2.0" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtDialNeedle \- Base class for needles that can be used in a \fBQwtDial\fP\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBQwtCompassMagnetNeedle\fP, \fBQwtCompassWindArrow\fP, and \fBQwtDialSimpleNeedle\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBQwtDialNeedle\fP ()" .br .RI "Constructor\&. " .ti -1c .RI "virtual \fB~QwtDialNeedle\fP ()" .br .RI "Destructor\&. " .ti -1c .RI "virtual void \fBsetPalette\fP (const QPalette &)" .br .ti -1c .RI "const QPalette & \fBpalette\fP () const" .br .ti -1c .RI "virtual void \fBdraw\fP (QPainter *, const QPointF ¢er, double length, double direction, QPalette::ColorGroup=QPalette::Active) const" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBdrawNeedle\fP (QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0" .br .RI "Draw the needle\&. " .ti -1c .RI "virtual void \fBdrawKnob\fP (QPainter *, double width, const QBrush &, bool sunken) const" .br .RI "Draw the knob\&. " .in -1c .SH "Detailed Description" .PP Base class for needles that can be used in a \fBQwtDial\fP\&. \fBQwtDialNeedle\fP is a pointer that indicates a value by pointing to a specific direction\&. .PP \fBSee also\fP .RS 4 \fBQwtDial\fP, \fBQwtCompass\fP .RE .PP .PP Definition at line 27 of file qwt_dial_needle\&.h\&. .SH "Member Function Documentation" .PP .SS "void QwtDialNeedle::draw (QPainter * painter, const QPointF & center, double length, double direction, QPalette::ColorGroup colorGroup = \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 Definition at line 219 of file qwt_dial_needle\&.cpp\&. .SS "virtual void QwtDialNeedle::drawNeedle (QPainter * painter, double length, QPalette::ColorGroup colorGroup) const\fC [protected]\fP, \fC [pure virtual]\fP" .PP Draw the needle\&. The origin of the needle is at position (0\&.0, 0\&.0 ) pointing in direction 0\&.0 ( = east )\&. .PP The painter is already initialized with translation and rotation\&. .PP \fBParameters\fP .RS 4 \fIpainter\fP Painter .br \fIlength\fP Length of the needle .br \fIcolorGroup\fP Color group, used for painting .RE .PP \fBSee also\fP .RS 4 \fBsetPalette()\fP, \fBpalette()\fP .RE .PP .PP Implemented in \fBQwtCompassWindArrow\fP, \fBQwtCompassMagnetNeedle\fP, and \fBQwtDialSimpleNeedle\fP\&. .SS "const QPalette & QwtDialNeedle::palette () const" .PP \fBReturns\fP .RS 4 the palette of the needle\&. .RE .PP .PP Definition at line 205 of file qwt_dial_needle\&.cpp\&. .SS "void QwtDialNeedle::setPalette (const QPalette & palette)\fC [virtual]\fP" Sets the palette for the needle\&. .PP \fBParameters\fP .RS 4 \fIpalette\fP New Palette .RE .PP .PP Definition at line 197 of file qwt_dial_needle\&.cpp\&. .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code\&.