QwtDoubleInterval(3)

πŸ“¦
version 5.2.3_qt5+git20181129.2819734 Β· 2 versions
, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

QwtDoubleInterval β€” that's the whole name, bestie.

(and fr, the original one-liner here is just a lonely little dash with nothing after it, so the summary is "yes. that's the class." iconic behaviour honestly)


✨ SYNOPSIS ✨

#include <qwt_double_interval.h>

πŸŽ€ Public Types πŸŽ€

  • enum BorderMode { IncludeBorders = 0, ExcludeMinimum = 1, ExcludeMaximum = 2, ExcludeBorders = ExcludeMinimum | ExcludeMaximum }

🫢 Public Member Functions 🫢

  • QwtDoubleInterval ()
  • QwtDoubleInterval (double minValue, double maxValue, int borderFlags = IncludeBorders)
  • int borderFlags () const
  • bool contains (double value) const
  • QwtDoubleInterval extend (double value) const
  • QwtDoubleInterval intersect (const QwtDoubleInterval &) const
  • bool intersects (const QwtDoubleInterval &) const
  • void invalidate ()
  • QwtDoubleInterval inverted () const
  • bool isNull () const
  • bool isValid () const
  • QwtDoubleInterval limited (double minValue, double maxValue) const
  • double maxValue () const
  • double minValue () const
  • QwtDoubleInterval normalized () const
  • int operator!= (const QwtDoubleInterval &) const
  • QwtDoubleInterval operator& (const QwtDoubleInterval &) const
  • QwtDoubleInterval & operator&= (const QwtDoubleInterval &)
  • int operator== (const QwtDoubleInterval &) const
  • QwtDoubleInterval operator| (const QwtDoubleInterval &) const
  • QwtDoubleInterval operator| (double) const
  • QwtDoubleInterval & operator|= (const QwtDoubleInterval &)
  • QwtDoubleInterval & operator|= (double)
  • void setBorderFlags (int)
  • void setInterval (double minValue, double maxValue, int borderFlags = IncludeBorders)
  • void setMaxValue (double)
  • void setMinValue (double)
  • QwtDoubleInterval symmetrize (double value) const
  • QwtDoubleInterval unite (const QwtDoubleInterval &) const
  • double width () const

🌸 DETAILED DESCRIPTION 🌸

It's a class representing an interval. That's the whole personality. πŸ’…

The interval is represented by 2 doubles, the lower and the upper limit.

This page is from the Qwt User's Guide, so keep that in mind β€” it's a generated reference, not a bedtime story. (okay well. it IS a bedtime story now. πŸ¦‹)

πŸŽ€ MEMBER ENUMERATION DOCUMENTATION πŸŽ€

enum QwtDoubleInterval::BorderMode

Flag indicating if a border is included/excluded from an interval ✨

  • IncludeBorders β€” min/max values are inside the interval 🫢
  • ExcludeMinimum β€” min value is not included in the interval
  • ExcludeMaximum β€” max value is not included in the interval
  • ExcludeBorders β€” min/max values are not included in the interval

See also: setBorderMode(), testBorderMode()


✨ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION ✨

QwtDoubleInterval::QwtDoubleInterval () [inline]

Default Constructor. Creates an invalid interval [0.0, -1.0] 😭 (yes, backwards on purpose, that's the "I am not valid" flag, no cap)

See also: setInterval(), isValid()

QwtDoubleInterval::QwtDoubleInterval (double minValue, double maxValue, int borderFlags = IncludeBorders) [inline]

Constructor πŸ‘‘

Build an interval with from min/max values.

Parameters:

  • minValue β€” Minimum value
  • maxValue β€” Maximum value
  • borderFlags β€” Include/Exclude borders

πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

int QwtDoubleInterval::borderFlags () const [inline]

Returns: Border flags 🏳️

See also: setBorderFlags()

bool QwtDoubleInterval::contains (double value) const

Test if a value is inside an interval πŸ”

Parameters:

  • value β€” Value

Returns: true, if value >= minValue() && value <= maxValue()

QwtDoubleInterval QwtDoubleInterval::extend (double value) const

Extend the interval πŸ“

If value is below minValue, value becomes the lower limit. If value is above maxValue, value becomes the upper limit.

extend has no effect for invalid intervals. so like, don't expect a glow-up out of an invalid interval, bestie.

Parameters:

  • value β€” Value

See also: isValid()

bool QwtDoubleInterval::intersects (const QwtDoubleInterval &other) const

Test if two intervals overlap πŸ«‚

void QwtDoubleInterval::invalidate () [inline]

Invalidate the interval πŸ’€

The limits are set to interval [0.0, -1.0]

See also: isValid()

QwtDoubleInterval QwtDoubleInterval::inverted () const

Invert the limits of the interval πŸ”„

Returns: Inverted interval

See also: normalized()

bool QwtDoubleInterval::isNull () const [inline]

Returns: true, if isValid() && (minValue() >= maxValue())

bool QwtDoubleInterval::isValid () const [inline]

A interval is valid when minValue() <= maxValue(). In case of QwtDoubleInterval::ExcludeBorders it is true when minValue() < maxValue() βœ…

QwtDoubleInterval QwtDoubleInterval::limited (double lowerBound, double upperBound) const

Limit the interval, keeping the border modes βœ‚οΈ

Parameters:

  • lowerBound β€” Lower limit
  • upperBound β€” Upper limit

Returns: Limited interval

double QwtDoubleInterval::maxValue () const [inline]

Returns: Upper limit of the interval ⬆️

double QwtDoubleInterval::minValue () const [inline]

Returns: Lower limit of the interval ⬇️

QwtDoubleInterval QwtDoubleInterval::normalized () const

Normalize the limits of the interval. If maxValue() < minValue() the limits will be inverted. πŸ”

Returns: Normalized interval

See also: isValid(), inverted()

QwtDoubleInterval QwtDoubleInterval::operator& (const QwtDoubleInterval &interval) const [inline]

Intersection of two intervals 🎯

See also: intersect()

QwtDoubleInterval QwtDoubleInterval::operator| (const QwtDoubleInterval &interval) const [inline]

Union of two intervals 🀝

See also: unite()

QwtDoubleInterval QwtDoubleInterval::operator| (double value) const [inline]

Extend an interval πŸ“

See also: extend()

void QwtDoubleInterval::setBorderFlags (int borderFlags) [inline]

Change the border flags 🚩

Parameters:

  • borderFlags β€” Or'd BorderMode flags

See also: borderFlags()

void QwtDoubleInterval::setInterval (double minValue, double maxValue, int borderFlags = IncludeBorders) [inline]

Assign the limits of the interval ✍️

Parameters:

  • minValue β€” Minimum value
  • maxValue β€” Maximum value
  • borderFlags β€” Include/Exclude borders

void QwtDoubleInterval::setMaxValue (double maxValue) [inline]

Assign the upper limit of the interval ⬆️

Parameters:

  • maxValue β€” Maximum value

void QwtDoubleInterval::setMinValue (double minValue) [inline]

Assign the lower limit of the interval ⬇️

Parameters:

  • minValue β€” Minimum value

QwtDoubleInterval QwtDoubleInterval::symmetrize (double value) const

Adjust the limit that is closer to value, so that value becomes the center of the interval. βš–οΈ main character energy tbh

Parameters:

  • value β€” Center

Returns: Interval with value as center

double QwtDoubleInterval::width () const [inline]

Return the width of an interval πŸ“ The width of invalid intervals is 0.0, otherwise the result is maxValue() - minValue().

See also: isValid()


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. (so like, don't @ me about the formatting, the robot wrote it πŸ€–βœ¨)


and that's the whole page, bestie!! πŸŽ€ this was Version 5.2.3, dated Tue Nov 20 2012 β€” so yes, it's vintage, it's giving retro, and it absolutely ate. πŸ’– slay, bye!! πŸ¦‹πŸ’