logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtDialNeedle - Base class for needles that can be used in a QwtDial.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                 QwtDialNeedle(3)

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.

       Seealso:QwtDial, QwtCompass

Member Function Documentation

voidQwtDialNeedle::draw(QPainter*painter,constQPointF&center,doublelength,doubledirection,QPalette::ColorGroupcolorGroup=QPalette::Active)const[virtual]
       Draw the needle

       Parameters:painter Painter
           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

   virtualvoidQwtDialNeedle::drawNeedle(QPainter*painter,doublelength,QPalette::ColorGroupcolorGroup)const[protected],[purevirtual]
       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:painter Painter
           length Length of the needle
           colorGroup Color group, used for painting

       Seealso:setPalette(), palette()

       Implemented in QwtCompassWindArrow, QwtCompassMagnetNeedle, and QwtDialSimpleNeedle.

   constQPalette&QwtDialNeedle::palette()constReturns:
           the palette of the needle.

   voidQwtDialNeedle::setPalette(constQPalette&palette)[virtual]
       Sets the palette for the needle.

       Parameters:palette New Palette

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.

   PublicMemberFunctionsQwtDialNeedle ()
           Constructor.
       virtual ~QwtDialNeedle ()
           Destructor.
       virtual void setPalette (const QPalette &)
       const QPalette & palette () const
       virtual void draw (QPainter *painter, const QPointF &center, double length, double direction,
           QPalette::ColorGroup=QPalette::Active) const

   ProtectedMemberFunctions
       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.

See Also