QwtInterval(3) | Qwt User's Guide | QwtInterval(3) |
QwtInterval - A class representing an interval.
#include <qwt_interval.h>
enum BorderFlag { IncludeBorders = 0x00,
ExcludeMinimum = 0x01, ExcludeMaximum = 0x02,
ExcludeBorders = ExcludeMinimum | ExcludeMaximum }
typedef QFlags< BorderFlag > BorderFlags
Border flags.
QwtInterval ()
Default Constructor. QwtInterval (double minValue, double
maxValue, BorderFlags=IncludeBorders)
void setInterval (double minValue, double maxValue,
BorderFlags=IncludeBorders)
QwtInterval normalized () const
Normalize the limits of the interval. QwtInterval inverted ()
const
QwtInterval limited (double lowerBound, double upperBound) const
bool operator== (const QwtInterval &) const
Compare two intervals. bool operator!= (const QwtInterval &)
const
Compare two intervals. void setBorderFlags (BorderFlags)
BorderFlags borderFlags () const
double minValue () const
double maxValue () const
double width () const
Return the width of an interval. void setMinValue (double)
void setMaxValue (double)
bool contains (double value) const
bool intersects (const QwtInterval &) const
Test if two intervals overlap. QwtInterval intersect (const
QwtInterval &) const
Intersect 2 intervals. QwtInterval unite (const
QwtInterval &) const
Unite 2 intervals. QwtInterval operator| (const
QwtInterval &) const
QwtInterval operator & (const QwtInterval &)
const
QwtInterval & operator|= (const QwtInterval &)
Unite this interval with the given interval. QwtInterval &
operator &= (const QwtInterval &)
QwtInterval extend (double value) const
Extend the interval. QwtInterval operator| (double) const
QwtInterval & operator|= (double)
bool isValid () const
bool isNull () const
void invalidate ()
QwtInterval symmetrize (double value) const
A class representing an interval.
The interval is represented by 2 doubles, the lower and the upper limit.
Flag indicating if a border is included or excluded
See also:
Enumerator
Default Constructor. Creates an invalid interval [0.0, -1.0]
See also:
Constructor
Build an interval with from min/max values
Parameters:
Returns:
See also:
Test if a value is inside an interval
Parameters:
Returns:
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
Parameters:
Returns:
See also:
Intersect 2 intervals.
Parameters:
Returns:
Test if two intervals overlap.
Parameters:
Returns:
Invalidate the interval
The limits are set to interval [0.0, -1.0]
See also:
Invert the limits of the interval
Returns:
See also:
Returns:
A interval is valid when minValue() <= maxValue(). In case of QwtInterval::ExcludeBorders it is true when minValue() < maxValue()
Returns:
Limit the interval, keeping the border modes
Parameters:
Returns:
Returns:
Returns:
Normalize the limits of the interval. If maxValue() < minValue() the limits will be inverted.
Returns:
See also:
Compare two intervals.
Parameters:
Returns:
Compare two intervals.
Parameters:
Returns:
Union of two intervals
Parameters:
Returns:
See also:
Extend an interval
Parameters:
Returns:
See also:
Unite this interval with the given interval.
Parameters:
Returns:
Extend an interval
Parameters:
Returns:
See also:
Change the border flags
Parameters:
See also:
Assign the limits of the interval
Parameters:
Assign the upper limit of the interval
Parameters:
Assign the lower limit of the interval
Parameters:
Adjust the limit that is closer to value, so that value becomes the center of the interval.
Parameters:
Returns:
Return the width of an interval. The width of invalid intervals is 0.0, otherwise the result is maxValue() - minValue().
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |