QwtScaleDiv(3)

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

πŸ’– NAME πŸ’–

QwtScaleDiv β€” bestie, it's literally a scale division. That's the whole name, no cap ✨


🌸 SYNOPSIS 🌸

#include <qwt_scale_div.h>

✨ Public Types ✨

enum TickType { NoTick = -1, MinorTick, MediumTick, MajorTick, NTickTypes }

πŸŽ€ Public Member Functions πŸŽ€

QwtScaleDiv ()
QwtScaleDiv (const QwtDoubleInterval &, QwtValueList[NTickTypes])
QwtScaleDiv (double lowerBound, double upperBound, QwtValueList[NTickTypes])
bool contains (double v) const
QwtDoubleInterval interval () const
void invalidate ()
void invert ()
bool isValid () const
double lowerBound () const
int operator!= (const QwtScaleDiv &s) const
int operator== (const QwtScaleDiv &s) const
double range () const
void setInterval (double lowerBound, double upperBound)
void setInterval (const QwtDoubleInterval &)
void setTicks (int type, const QwtValueList &)
const QwtValueList & ticks (int type) const
double upperBound () const

πŸ¦‹ Detailed Description πŸ¦‹

Okay so picture this: a class that represents a scale division. Iconic. πŸ’…

A scale division is made of its limits plus 3 lists of tick values, and those ticks are qualified as major, medium and minor ticks. Three lists, three vibes, one class. πŸŽ€

And lowkey? In most cases scale divisions don't just show up on their own β€” they get calculated by a QwtScaleEngine. So that's the friend doing the math behind the scenes. ✨

See also:

  • subDivideInto()
  • subDivide()

πŸ’œ Constructor & Destructor Documentation πŸ’œ

🌟 QwtScaleDiv::QwtScaleDiv (const QwtDoubleInterval &interval, QwtValueListticks[NTickTypes]) [explicit]

Constructs a QwtScaleDiv instance. Brand new baby scale division, we love to see it. 🫢

Parameters:

  • interval β€” Interval
  • ticks β€” List of major, medium and minor ticks

🌟 QwtScaleDiv::QwtScaleDiv (doublelowerBound, doubleupperBound, QwtValueListticks[NTickTypes]) [explicit]

Also constructs a QwtScaleDiv instance. Same energy, different args. πŸ’–

Parameters:

  • lowerBound β€” First interval limit
  • upperBound β€” Second interval limit
  • ticks β€” List of major, medium and minor ticks

πŸ‘‘ Member Function Documentation πŸ‘‘

⭐ bool QwtScaleDiv::contains (doublevalue) const

Tells you whether a value is chilling between lowerBound() and upperBound(). Vibe check for a number, fr fr.

Parameters:

  • value β€” Value

Returns:

  • true/false

⭐ QwtDoubleInterval QwtScaleDiv::interval () const [inline]

Returns:

  • lowerBound -> upperBound

⭐ double QwtScaleDiv::lowerBound () const [inline]

Returns:

  • lower bound

See also:

  • upperBound()

⭐ int QwtScaleDiv::operator!= (const QwtScaleDiv &s) const

Inequality. The "we are not the same" operator. πŸ™ˆ

Returns:

  • true if this instance is not equal to s

⭐ int QwtScaleDiv::operator== (const QwtScaleDiv &other) const

Equality operator. Twin flames check. πŸ’ž

Returns:

  • true if this instance is equal to other

⭐ double QwtScaleDiv::range () const [inline]

Returns:

  • upperBound() - lowerBound()

⭐ void QwtScaleDiv::setInterval (doublelowerBound, doubleupperBound) [inline]

Change the interval. Glow-up for your bounds. ✨

Parameters:

  • lowerBound β€” lower bound
  • upperBound β€” upper bound

⭐ void QwtScaleDiv::setInterval (const QwtDoubleInterval &interval)

Change the interval.

Parameters:

  • interval β€” Interval

⭐ void QwtScaleDiv::setTicks (inttype, const QwtValueList &ticks)

Assign ticks. Putting the ticks in their assigned seats, periodt.

Parameters:

  • type β€” MinorTick, MediumTick or MajorTick
  • ticks β€” Values of the tick positions

⭐ const QwtValueList & QwtScaleDiv::ticks (inttype) const

Return a list of ticks.

Parameters:

  • type β€” MinorTick, MediumTick or MajorTick

⭐ double QwtScaleDiv::upperBound () const [inline]

Returns:

  • upper bound

See also:

  • lowerBound()

🧚 Author 🧚

Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human bestie β€” a robot bestie. πŸ’€βœ¨


That's the whole page, babes! Version 5.2.3, dated Tue Nov 20 2012 β€” yeah she's a lil vintage, but she still ate. πŸŽ€πŸ’… Go forth and divide your scales, ily! πŸ¦‹πŸ’–

πŸ“¦ where this page comes from