QwtSimpleCompassRose(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– 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 constructor
  • virtual void draw (QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup=QPalette::Active) const β€” draws the rose
  • int numThornLevels () const β€” how many thorn levels she's serving
  • int numThorns () const β€” how many thorns, periodt
  • void setNumThornLevels (int count) β€” set the thorn levels
  • void setNumThorns (int count) β€” set the thorns
  • void setShrinkFactor (double factor) β€” set the shrink factor
  • void setWidth (double w) β€” set the width
  • double shrinkFactor () const β€” get the shrink factor back
  • double width () const β€” get the width back

πŸ¦‹ Static Public Member Functions

  • static void drawRose (QPainter *, const QPalette &, const QPoint &center, 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 thorns
  • numThornLevels β€” Number of thorn levels

⭐ Member Function Documentation ⭐

void QwtSimpleCompassRose::draw (QPainter *painter, const QPoint &center, int radius, double north, QPalette::ColorGroup cg = QPalette::Active) const

[virtual]

Draw the rose. Just β€” draw her. 🌹

Parameters:

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

Implements QwtCompassRose.


void QwtSimpleCompassRose::drawRose (QPainter *painter, const QPalette &palette, const QPoint &center, int radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor)

[static]

Draw the rose β€” but make it static. πŸ”₯

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

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