table of contents
- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtDialNeedle(3) | Qwt User's Guide | QwtDialNeedle(3) |
NAME¶
QwtDialNeedle - Base class for needles that can be used in a QwtDial.
SYNOPSIS¶
#include <qwt_dial_needle.h>
Inherited by QwtCompassMagnetNeedle, QwtCompassWindArrow, and QwtDialSimpleNeedle.
Public Member Functions¶
QwtDialNeedle ()
Constructor. virtual ~QwtDialNeedle ()
Destructor. virtual void setPalette (const QPalette &)
const QPalette & palette () const
virtual void draw (QPainter *, const QPointF ¢er, double
length, double direction, QPalette::ColorGroup=QPalette::Active) const
Protected Member Functions¶
virtual void drawNeedle (QPainter *painter, double length,
QPalette::ColorGroup colorGroup) const =0
Draw the needle. virtual void drawKnob (QPainter *, double width, const
QBrush &, bool sunken) const
Draw the knob.
Detailed Description¶
Base class for needles that can be used in a QwtDial.
QwtDialNeedle is a pointer that indicates a value by pointing to a specific direction.
See also
Definition at line 27 of file qwt_dial_needle.h.
Member Function Documentation¶
void QwtDialNeedle::draw (QPainter * painter, const QPointF & center, double length, double direction, QPalette::ColorGroup colorGroup = QPalette::Active) const [virtual]¶
Draw the needle
Parameters
center Center of the dial, start position for the needle
length Length of the needle
direction Direction of the needle, in degrees counter clockwise
colorGroup Color group, used for painting
Definition at line 219 of file qwt_dial_needle.cpp.
virtual void QwtDialNeedle::drawNeedle (QPainter * painter, double length, QPalette::ColorGroup colorGroup) const [protected], [pure virtual]¶
Draw the needle. The origin of the needle is at position (0.0, 0.0 ) pointing in direction 0.0 ( = east ).
The painter is already initialized with translation and rotation.
Parameters
length Length of the needle
colorGroup Color group, used for painting
See also
Implemented in QwtCompassWindArrow, QwtCompassMagnetNeedle, and QwtDialSimpleNeedle.
const QPalette & QwtDialNeedle::palette () const¶
Returns
Definition at line 205 of file qwt_dial_needle.cpp.
void QwtDialNeedle::setPalette (const QPalette & palette) [virtual]¶
Sets the palette for the needle.
Parameters
Definition at line 197 of file qwt_dial_needle.cpp.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Sun Jul 18 2021 | Version 6.2.0 |