QwtDoubleInterval(3)
π 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 () constbool contains (double value) constQwtDoubleInterval extend (double value) constQwtDoubleInterval intersect (const QwtDoubleInterval &) constbool intersects (const QwtDoubleInterval &) constvoid invalidate ()QwtDoubleInterval inverted () constbool isNull () constbool isValid () constQwtDoubleInterval limited (double minValue, double maxValue) constdouble maxValue () constdouble minValue () constQwtDoubleInterval normalized () constint operator!= (const QwtDoubleInterval &) constQwtDoubleInterval operator& (const QwtDoubleInterval &) constQwtDoubleInterval & operator&= (const QwtDoubleInterval &)int operator== (const QwtDoubleInterval &) constQwtDoubleInterval operator| (const QwtDoubleInterval &) constQwtDoubleInterval operator| (double) constQwtDoubleInterval & 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) constQwtDoubleInterval unite (const QwtDoubleInterval &) constdouble 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 intervalExcludeMaximumβ max value is not included in the intervalExcludeBordersβ 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 valuemaxValueβ Maximum valueborderFlagsβ 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 limitupperBoundβ 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'dBorderModeflags
See also: borderFlags()
void QwtDoubleInterval::setInterval (double minValue, double maxValue, int borderFlags = IncludeBorders) [inline]
Assign the limits of the interval βοΈ
Parameters:
minValueβ Minimum valuemaxValueβ Maximum valueborderFlagsβ 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!! π¦π
π¦ where this page comes from
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms