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

QwtCompass - A Compass Widget.

Author

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

Version 6.1.4                                    Wed Jan 2 2019                                    QwtCompass(3)

Constructor & Destructor Documentation

QwtCompass::QwtCompass(QWidget*parent=NULL)[explicit]
       Constructor.

       Parameters:parent Parent widget

       Create a compass widget with a scale, no needle and no rose. The default origin is 270.0 with no valid
       value. It accepts mouse and keyboard inputs and has no step size. The default mode is
       QwtDial::RotateNeedle.

Detailed Description

       A Compass Widget.

       QwtCompass is a widget to display and enter directions. It consists of a scale, an optional needle and
       rose.

       Note:
           The examples/dials example shows how to use QwtCompass.

Member Function Documentation

voidQwtCompass::drawRose(QPainter*painter,constQPointF&center,doubleradius,doublenorth,QPalette::ColorGroupcg)const[protected],[virtual]
       Draw the compass rose

       Parameters:painter Painter
           center Center of the compass
           radius of the circle, where to paint the rose
           north Direction pointing north, in degrees counter clockwise
           cg Color group

   voidQwtCompass::drawScaleContents(QPainter*painter,constQPointF&center,doubleradius)const[protected],[virtual]
       Draw the contents of the scale

       Parameters:painter Painter
           center Center of the content circle
           radius Radius of the content circle

       Reimplemented from QwtDial.

   voidQwtCompass::keyPressEvent(QKeyEvent*kev)[protected],[virtual]
       Handles key events

       Beside the keys described in QwtDial::keyPressEvent numbers from 1-9 (without 5) set the direction
       according to their position on the num pad.

       Seealso:isReadOnly()

       Reimplemented from QwtAbstractSlider.

   constQwtCompassRose*QwtCompass::rose()constReturns:
           rose

       Seealso:setRose()QwtCompassRose*QwtCompass::rose()Returns:
           rose

       Seealso:setRose()voidQwtCompass::setRose(QwtCompassRose*rose)
       Set a rose for the compass

       Parameters:rose Compass rose

       Warning:
           The rose will be deleted, when a different rose is set or in ~QwtCompass

       Seealso:rose()

Name

       QwtCompass - A Compass Widget.

Synopsis

       #include <qwt_compass.h>

       Inherits QwtDial.

   PublicMemberFunctionsQwtCompass (QWidget *parent=NULL)
           Constructor.
       virtual ~QwtCompass ()
           Destructor.
       void setRose (QwtCompassRose *rose)
       const QwtCompassRose * rose () const
       QwtCompassRose * rose ()

   ProtectedMemberFunctions
       virtual void drawRose (QPainter *, const QPointF &center, double radius, double north,
           QPalette::ColorGroup) const
       virtual void drawScaleContents (QPainter *, const QPointF &center, double radius) const
       virtual void keyPressEvent (QKeyEvent *)

   AdditionalInheritedMembers

See Also