QwtSimpleCompassRose(3)
π QwtSimpleCompassRose(3) π
okay bestie, welcome to the Qwt User's Guide section on QwtSimpleCompassRose β she's the little compass rose that could, and we're gonna get into every single detail, no cap. π§β¨
πΈ NAME πΈ
QwtSimpleCompassRose β that's it, that's the name. (The original page literally just vibes here with the name and a dash, and honestly? Iconic minimalism. π
)
β¨ SYNOPSIS β¨
First thing's first, you gotta pull her in:
#include <qwt_compass_rose.h>
She inherits QwtCompassRose β so all that base-class energy is flowing through her veins. π
π Public Member Functions
QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)β the glow-up constructorvirtual void draw (QPainter *, const QPoint ¢er, int radius, double north, QPalette::ColorGroup=QPalette::Active) constβ draws the roseint numThornLevels () constβ how many thorn levels she's servingint numThorns () constβ how many thorns, periodtvoid setNumThornLevels (int count)β set the thorn levelsvoid setNumThorns (int count)β set the thornsvoid setShrinkFactor (double factor)β set the shrink factorvoid setWidth (double w)β set the widthdouble shrinkFactor () constβ get the shrink factor backdouble width () constβ get the width back
π¦ Static Public Member Functions
static void drawRose (QPainter *, const QPalette &, const QPoint ¢er, int radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor)β the static queen, draws a rose with zero instance required
π Detailed Description π
A simple rose for QwtCompass. That's the whole vibe. Lowkey elegant, highkey useful. π«Ά
π Constructor & Destructor Documentation π
QwtSimpleCompassRose::QwtSimpleCompassRose (int numThorns = 8, int numThornLevels = -1)
Constructor. She's born. π
Parameters:
numThornsβ Number of thornsnumThornLevelsβ Number of thorn levels
β Member Function Documentation β
void QwtSimpleCompassRose::draw (QPainter *painter, const QPoint ¢er, int radius, double north, QPalette::ColorGroup cg = QPalette::Active) const
[virtual]
Draw the rose. Just β draw her. πΉ
Parameters:
painterβ Paintercenterβ Center pointradiusβ Radius of the rosenorthβ Positioncgβ Color group
Implements QwtCompassRose.
void QwtSimpleCompassRose::drawRose (QPainter *painter, const QPalette &palette, const QPoint ¢er, int radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor)
[static]
Draw the rose β but make it static. π₯
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
int QwtSimpleCompassRose::numThornLevels () const
Returns:
- Number of thorn levels
See also:
setNumThorns(),setNumThornLevels()
int QwtSimpleCompassRose::numThorns () const
Returns:
- Number of thorns
See also:
setNumThorns(),setNumThornLevels()
void QwtSimpleCompassRose::setNumThornLevels (int numThornLevels)
Set the of thorns levels. (Yes bestie, the original really does phrase it like that and I'm keeping it exactly as-is, typos are canon. π)
Parameters:
numThornLevelsβ Number of thorns levels
See also:
setNumThorns(),numThornLevels()
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, don't try to be quirky with 3, she will round you. π
Parameters:
numThornsβ Number of thorns
See also:
numThorns(),setNumThornLevels()
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 the box, babe β no 0.5 shenanigans. π«
Parameters:
widthβ Width
double QwtSimpleCompassRose::width () const
[inline]
See also:
setWidth()
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
and that's the whole page, bestie β every option, every param, every default, all of it preserved with love. π
Version 5.2.3 β Tue Nov 20 2012 β QwtSimpleCompassRose(3) β mwah, that's the sign-off, she's timeless, she's iconic, she's giving compass rose main character energy. π§π
β¨π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms