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

QwtSimpleCompassRose - A simple rose for QwtCompass.

Author

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

Version 6.1.4                                    Wed Jan 2 2019                          QwtSimpleCompassRose(3)

Constructor & Destructor Documentation

QwtSimpleCompassRose::QwtSimpleCompassRose(intnumThorns=8,intnumThornLevels=-1)
       Constructor

       Parameters:numThorns Number of thorns
           numThornLevels Number of thorn levels

Detailed Description

       A simple rose for QwtCompass.

Member Function Documentation

voidQwtSimpleCompassRose::draw(QPainter*painter,constQPointF&center,doubleradius,doublenorth,QPalette::ColorGroupcg=QPalette::Active)const[virtual]
       Draw the rose

       Parameters:painter Painter
           center Center point
           radius Radius of the rose
           north Position
           cg Color group

       Implements QwtCompassRose.

   voidQwtSimpleCompassRose::drawRose(QPainter*painter,constQPalette&palette,constQPointF&center,doubleradius,doublenorth,doublewidth,intnumThorns,intnumThornLevels,doubleshrinkFactor)[static]
       Draw the rose

       Parameters:painter Painter
           palette Palette
           center Center of the rose
           radius Radius of the rose
           north Position pointing to north
           width Width of the rose
           numThorns Number of thorns
           numThornLevels Number of thorn levels
           shrinkFactor Factor to shrink the thorns with each level

   intQwtSimpleCompassRose::numThornLevels()constReturns:
           Number of thorn levels

       Seealso:setNumThorns(), setNumThornLevels()intQwtSimpleCompassRose::numThorns()constReturns:
           Number of thorns

       Seealso:setNumThorns(), setNumThornLevels()voidQwtSimpleCompassRose::setNumThornLevels(intnumThornLevels)
       Set the of thorns levels

       Parameters:numThornLevels Number of thorns levels

       Seealso:setNumThorns(), numThornLevels()voidQwtSimpleCompassRose::setNumThorns(intnumThorns)
       Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4

       Parameters:numThorns Number of thorns

       Seealso:numThorns(), setNumThornLevels()voidQwtSimpleCompassRose::setShrinkFactor(doublefactor)
       Set the Factor how to shrink the thorns with each level The default value is 0.9.

       Parameters:factor Shrink factor

       Seealso:shrinkFactor()voidQwtSimpleCompassRose::setWidth(doublewidth)
       Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.

       Parameters:width Width

   doubleQwtSimpleCompassRose::shrinkFactor()constReturns:
           Factor how to shrink the thorns with each level

       Seealso:setShrinkFactor()doubleQwtSimpleCompassRose::width()constReturns:
           Width of the rose

       Seealso:setWidth()

Name

       QwtSimpleCompassRose - A simple rose for QwtCompass.

Synopsis

       #include <qwt_compass_rose.h>

       Inherits QwtCompassRose.

   PublicMemberFunctionsQwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)
       virtual ~QwtSimpleCompassRose ()
           Destructor.
       void setWidth (double)
       double width () const
       void setNumThorns (int)
       int numThorns () const
       void setNumThornLevels (int)
       int numThornLevels () const
       void setShrinkFactor (double factor)
       double shrinkFactor () const
       virtual void draw (QPainter *, const QPointF &center, double radius, double north,
           QPalette::ColorGroup=QPalette::Active) const

   StaticPublicMemberFunctions
       static void drawRose (QPainter *, const QPalette &, const QPointF &center, double radius, double north,
           double width, int numThorns, int numThornLevels, double shrinkFactor)

See Also