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, bestie
  • virtual ~QwtSimpleCompassRose() β€” Destructor. she's done, she's leaving 🫢
  • void setWidth(double) β€” set the width
  • double width() const β€” get the width back
  • void setNumThorns(int) β€” set how many thorns
  • int numThorns() const β€” how many thorns we got
  • void setNumThornLevels(int) β€” set the thorn level count
  • int numThornLevels() const β€” read the thorn level count
  • void setShrinkFactor(double factor) β€” set the shrink factor
  • double shrinkFactor() const β€” read the shrink factor
  • virtual void draw(QPainter *, const QPointF &center, double radius, double north, QPalette::ColorGroup=QPalette::Active) const override β€” draw the rose, override and 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 &center, 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 thorns
  • numThornLevels β€” 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 &center, double radius, double north, QPalette::ColorGroup cg = QPalette::Active) const [override], [virtual]

Draw the rose. main character energy, fr fr 🌹

Parameters

  • painter β€” Painter
  • center β€” Center point
  • radius β€” Radius of the rose
  • north β€” Position
  • cg β€” Color group

Implements QwtCompassRose.

Definition at line 131 of file qwt_compass_rose.cpp.

✨ void QwtSimpleCompassRose::drawRose(QPainter *painter, const QPalette &palette, const QPointF &center, double radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor) [static]

Draw the rose β€” the static edition, iykyk πŸ’…

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

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