QwtSimpleCompassRose(3)
π QwtSimpleCompassRose β bestie's guide to the fancy compass rose π«
okay so real talk, this page is from the Qwt User's Guide manual, and it's literally all about QwtSimpleCompassRose. slay. let's get into it π
β¨ NAME β¨
QwtSimpleCompassRose β a simple rose for QwtCompass. no cap, that's the whole vibe. πΉ
πΈ SYNOPSIS πΈ
#include <qwt_compass_rose.h>
it Inherits QwtCompassRose. yes queen, class hierarchy π
π¦ Public Member Functions
QwtSimpleCompassRose(int numThorns = 8, int numThornLevels = -1)β the constructor, with defaults, bestievirtual ~QwtSimpleCompassRose()β Destructor. she's done, she's leaving π«Άvoid setWidth(double)β set the widthdouble width() constβ get the width backvoid setNumThorns(int)β set how many thornsint numThorns() constβ how many thorns we gotvoid setNumThornLevels(int)β set the thorn level countint numThornLevels() constβ read the thorn level countvoid setShrinkFactor(double factor)β set the shrink factordouble shrinkFactor() constβ read the shrink factorvirtual void draw(QPainter *, const QPointF ¢er, double radius, double north, QPalette::ColorGroup=QPalette::Active) const overrideβ draw the rose,overrideand all π
π Public Member Functions inherited from QwtCompassRose
QwtCompassRose()β Constructor.virtual ~QwtCompassRose()β Destructor.virtual void setPalette(const QPalette &)β Assign a palette.const QPalette & palette() constβ get that palette back
β Static Public Member Functions
static void drawRose(QPainter *, const QPalette &, const QPointF ¢er, double radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor)β the static drawing girly β¨
π Detailed Description π
A simple rose for QwtCompass. that's it, that's the description π₯Ή
Definition at line 52 of file qwt_compass_rose.h.
π Constructor & Destructor Documentation π
π· QwtSimpleCompassRose::QwtSimpleCompassRose(int numThorns = 8, int numThornLevels = -1)
Constructor. she's born β¨
Parameters
numThornsβ Number of thornsnumThornLevelsβ Number of thorn levels
Definition at line 78 of file qwt_compass_rose.cpp.
π₯ QwtSimpleCompassRose::~QwtSimpleCompassRose() [virtual]
Destructor. gone but not forgotten π
Definition at line 96 of file qwt_compass_rose.cpp.
π¦ Member Function Documentation π¦
π« void QwtSimpleCompassRose::draw(QPainter *painter, const QPointF ¢er, double radius, double north, QPalette::ColorGroup cg = QPalette::Active) const [override], [virtual]
Draw the rose. main character energy, fr fr πΉ
Parameters
painterβ Paintercenterβ Center pointradiusβ Radius of the rosenorthβ Positioncgβ Color group
Implements QwtCompassRose.
Definition at line 131 of file qwt_compass_rose.cpp.
β¨ void QwtSimpleCompassRose::drawRose(QPainter *painter, const QPalette &palette, const QPointF ¢er, double radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor) [static]
Draw the rose β the static edition, iykyk π
Parameters
painterβ Painterpaletteβ Palettecenterβ Center of the roseradiusβ Radius of the rosenorthβ Position pointing to northwidthβ Width of the rosenumThornsβ Number of thornsnumThornLevelsβ Number of thorn levelsshrinkFactorβ Factor to shrink the thorns with each level
Definition at line 154 of file qwt_compass_rose.cpp.
π int QwtSimpleCompassRose::numThornLevels() const
Returns β Number of thorn levels
See also β setNumThorns(), setNumThornLevels()
Definition at line 293 of file qwt_compass_rose.cpp.
πΈ int QwtSimpleCompassRose::numThorns() const
Returns β Number of thorns
See also β setNumThorns(), setNumThornLevels()
Definition at line 273 of file qwt_compass_rose.cpp.
π§ void QwtSimpleCompassRose::setNumThornLevels(int numThornLevels)
Set the of thorns levels β yes that's exactly how the original says it, we don't gatekeep π
Parameters
numThornLevelsβ Number of thorns levels
See also β setNumThorns(), numThornLevels()
Definition at line 284 of file qwt_compass_rose.cpp.
π void QwtSimpleCompassRose::setNumThorns(int numThorns)
Set the number of thorns on one level. The number is aligned to a multiple of 4, with a minimum of 4. so like, pick a number, it's getting rounded and floored at 4, no negotiation π
Parameters
numThornsβ Number of thorns
See also β numThorns(), setNumThornLevels()
Definition at line 258 of file qwt_compass_rose.cpp.
β void QwtSimpleCompassRose::setShrinkFactor(double factor)
Set the Factor how to shrink the thorns with each level. The default value is 0.9. remember that number, bestie π«Ά
Parameters
factorβ Shrink factor
See also β shrinkFactor()
Definition at line 108 of file qwt_compass_rose.cpp.
π void QwtSimpleCompassRose::setWidth(double width)
Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4. so keep it in that window, bestie, it's giving boundaries π§
Parameters
widthβ Width
Definition at line 232 of file qwt_compass_rose.cpp.
π double QwtSimpleCompassRose::shrinkFactor() const
Returns β Factor how to shrink the thorns with each level
See also β setShrinkFactor()
Definition at line 117 of file qwt_compass_rose.cpp.
π double QwtSimpleCompassRose::width() const
Returns β Width of the rose
See also β setWidth()
Definition at line 246 of file qwt_compass_rose.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. the robots did this one, not me π€β¨
aaand that's the whole page, bestie! π this was the Qwt User's Guide, QwtSimpleCompassRose(3), written by the Doxygen machine for Qwt User's Guide β mwah, take care, and go draw something iconic ππ
π¦
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms