- buster 5.2.3-1
QwtDoubleInterval(3) | Qwt User's Guide | QwtDoubleInterval(3) |
NAME¶
QwtDoubleInterval -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¶
A class representing an interval.The interval is represented by 2 doubles, the lower and the upper limit.
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:
Constructor & Destructor Documentation¶
QwtDoubleInterval::QwtDoubleInterval () [inline]¶
Default Constructor. Creates an invalid interval [0.0, -1.0]See also:
QwtDoubleInterval::QwtDoubleInterval (doubleminValue, doublemaxValue, intborderFlags = IncludeBorders) [inline]¶
ConstructorBuild an interval with from min/max values
Parameters:
maxValue Maximum value
borderFlags Include/Exclude borders
Member Function Documentation¶
int QwtDoubleInterval::borderFlags () const [inline]¶
Returns:See also:
bool QwtDoubleInterval::contains (doublevalue) const¶
Test if a value is inside an intervalParameters:
Returns:
QwtDoubleInterval QwtDoubleInterval::extend (doublevalue) const¶
Extend the intervalIf 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
Parameters:
See also:
bool QwtDoubleInterval::intersects (const QwtDoubleInterval &other) const¶
Test if two intervals overlapvoid QwtDoubleInterval::invalidate () [inline]¶
Invalidate the intervalThe limits are set to interval [0.0, -1.0]
See also:
QwtDoubleInterval QwtDoubleInterval::inverted () const¶
Invert the limits of the intervalReturns:
See also:
bool QwtDoubleInterval::isNull () const [inline]¶
Returns: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 (doublelowerBound, doubleupperBound) const¶
Limit the interval, keeping the border modesParameters:
upperBound Upper limit
Returns:
double QwtDoubleInterval::maxValue () const [inline]¶
Returns:double QwtDoubleInterval::minValue () const [inline]¶
Returns:QwtDoubleInterval QwtDoubleInterval::normalized () const¶
Normalize the limits of the interval. If maxValue() < minValue() the limits will be inverted.Returns:
See also:
QwtDoubleInterval QwtDoubleInterval::operator& (const QwtDoubleInterval &interval) const [inline]¶
Intersection of two intervalsSee also:
QwtDoubleInterval QwtDoubleInterval::operator| (const QwtDoubleInterval &interval) const [inline]¶
Union of two intervalsSee also:
QwtDoubleInterval QwtDoubleInterval::operator| (doublevalue) const [inline]¶
Extend an intervalSee also:
void QwtDoubleInterval::setBorderFlags (intborderFlags) [inline]¶
Change the border flagsParameters:
See also:
void QwtDoubleInterval::setInterval (doubleminValue, doublemaxValue, intborderFlags = IncludeBorders) [inline]¶
Assign the limits of the intervalParameters:
maxValue Maximum value
borderFlags Include/Exclude borders
void QwtDoubleInterval::setMaxValue (doublemaxValue) [inline]¶
Assign the upper limit of the intervalParameters:
void QwtDoubleInterval::setMinValue (doubleminValue) [inline]¶
Assign the lower limit of the intervalParameters:
QwtDoubleInterval QwtDoubleInterval::symmetrize (doublevalue) const¶
Adjust the limit that is closer to value, so that value becomes the center of the interval.Parameters:
Returns:
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:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.Tue Nov 20 2012 | Version 5.2.3 |