|
| QCPRange () |
|
| QCPRange (double lower, double upper) |
|
bool | operator== (const QCPRange &other) const |
|
bool | operator!= (const QCPRange &other) const |
|
QCPRange & | operator+= (const double &value) |
|
QCPRange & | operator-= (const double &value) |
|
QCPRange & | operator*= (const double &value) |
|
QCPRange & | operator/= (const double &value) |
|
double | size () const |
|
double | center () const |
|
void | normalize () |
|
void | expand (const QCPRange &otherRange) |
|
void | expand (double includeCoord) |
|
QCPRange | expanded (const QCPRange &otherRange) const |
|
QCPRange | expanded (double includeCoord) const |
|
QCPRange | bounded (double lowerBound, double upperBound) const |
|
QCPRange | sanitizedForLogScale () const |
|
QCPRange | sanitizedForLinScale () const |
|
bool | contains (double value) const |
|
| QCPRange () |
|
| QCPRange (double lower, double upper) |
|
bool | operator== (const QCPRange &other) const |
|
bool | operator!= (const QCPRange &other) const |
|
QCPRange & | operator+= (const double &value) |
|
QCPRange & | operator-= (const double &value) |
|
QCPRange & | operator*= (const double &value) |
|
QCPRange & | operator/= (const double &value) |
|
double | size () const |
|
double | center () const |
|
void | normalize () |
|
void | expand (const QCPRange &otherRange) |
|
void | expand (double includeCoord) |
|
QCPRange | expanded (const QCPRange &otherRange) const |
|
QCPRange | expanded (double includeCoord) const |
|
QCPRange | bounded (double lowerBound, double upperBound) const |
|
QCPRange | sanitizedForLogScale () const |
|
QCPRange | sanitizedForLinScale () const |
|
bool | contains (double value) const |
|
| QCPRange () |
|
| QCPRange (double lower, double upper) |
|
bool | operator== (const QCPRange &other) const |
|
bool | operator!= (const QCPRange &other) const |
|
QCPRange & | operator+= (const double &value) |
|
QCPRange & | operator-= (const double &value) |
|
QCPRange & | operator*= (const double &value) |
|
QCPRange & | operator/= (const double &value) |
|
double | size () const |
|
double | center () const |
|
void | normalize () |
|
void | expand (const QCPRange &otherRange) |
|
void | expand (double includeCoord) |
|
QCPRange | expanded (const QCPRange &otherRange) const |
|
QCPRange | expanded (double includeCoord) const |
|
QCPRange | bounded (double lowerBound, double upperBound) const |
|
QCPRange | sanitizedForLogScale () const |
|
QCPRange | sanitizedForLinScale () const |
|
bool | contains (double value) const |
|
| QCPRange () |
|
| QCPRange (double lower, double upper) |
|
bool | operator== (const QCPRange &other) const |
|
bool | operator!= (const QCPRange &other) const |
|
QCPRange & | operator+= (const double &value) |
|
QCPRange & | operator-= (const double &value) |
|
QCPRange & | operator*= (const double &value) |
|
QCPRange & | operator/= (const double &value) |
|
double | size () const |
|
double | center () const |
|
void | normalize () |
|
void | expand (const QCPRange &otherRange) |
|
void | expand (double includeCoord) |
|
QCPRange | expanded (const QCPRange &otherRange) const |
|
QCPRange | expanded (double includeCoord) const |
|
QCPRange | bounded (double lowerBound, double upperBound) const |
|
QCPRange | sanitizedForLogScale () const |
|
QCPRange | sanitizedForLinScale () const |
|
bool | contains (double value) const |
|
| QCPRange () |
|
| QCPRange (double lower, double upper) |
|
bool | operator== (const QCPRange &other) const |
|
bool | operator!= (const QCPRange &other) const |
|
QCPRange & | operator+= (const double &value) |
|
QCPRange & | operator-= (const double &value) |
|
QCPRange & | operator*= (const double &value) |
|
QCPRange & | operator/= (const double &value) |
|
double | size () const |
|
double | center () const |
|
void | normalize () |
|
void | expand (const QCPRange &otherRange) |
|
void | expand (double includeCoord) |
|
QCPRange | expanded (const QCPRange &otherRange) const |
|
QCPRange | expanded (double includeCoord) const |
|
QCPRange | bounded (double lowerBound, double upperBound) const |
|
QCPRange | sanitizedForLogScale () const |
|
QCPRange | sanitizedForLinScale () const |
|
bool | contains (double value) const |
|
|
const QCPRange | operator+ (const QCPRange &, double) |
|
const QCPRange | operator+ (double, const QCPRange &) |
|
const QCPRange | operator- (const QCPRange &range, double value) |
|
const QCPRange | operator* (const QCPRange &range, double value) |
|
const QCPRange | operator* (double value, const QCPRange &range) |
|
const QCPRange | operator/ (const QCPRange &range, double value) |
|
const QCPRange | operator+ (const QCPRange &, double) |
|
const QCPRange | operator+ (double, const QCPRange &) |
|
const QCPRange | operator- (const QCPRange &range, double value) |
|
const QCPRange | operator* (const QCPRange &range, double value) |
|
const QCPRange | operator* (double value, const QCPRange &range) |
|
const QCPRange | operator/ (const QCPRange &range, double value) |
|
const QCPRange | operator+ (const QCPRange &, double) |
|
const QCPRange | operator+ (double, const QCPRange &) |
|
const QCPRange | operator- (const QCPRange &range, double value) |
|
const QCPRange | operator* (const QCPRange &range, double value) |
|
const QCPRange | operator* (double value, const QCPRange &range) |
|
const QCPRange | operator/ (const QCPRange &range, double value) |
|
const QCPRange | operator+ (const QCPRange &, double) |
|
const QCPRange | operator+ (double, const QCPRange &) |
|
const QCPRange | operator- (const QCPRange &range, double value) |
|
const QCPRange | operator* (const QCPRange &range, double value) |
|
const QCPRange | operator* (double value, const QCPRange &range) |
|
const QCPRange | operator/ (const QCPRange &range, double value) |
|
const QCPRange | operator+ (const QCPRange &, double) |
|
const QCPRange | operator+ (double, const QCPRange &) |
|
const QCPRange | operator- (const QCPRange &range, double value) |
|
const QCPRange | operator* (const QCPRange &range, double value) |
|
const QCPRange | operator* (double value, const QCPRange &range) |
|
const QCPRange | operator/ (const QCPRange &range, double value) |
|
Represents the range an axis is encompassing.
contains a lower and upper double value and provides convenience input, output and modification functions.
- See Also
- QCPAxis::setRange
QCPRange::QCPRange |
( |
double |
lower, |
|
|
double |
upper |
|
) |
| |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Constructs a range with the specified lower and upper values.
The resulting range will be normalized (see normalize), so if lower is not numerically smaller than upper, they will be swapped.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Expands this range such that otherRange is contained in the new range. It is assumed that both this range and otherRange are normalized (see normalize).
If this range contains NaN as lower or upper bound, it will be replaced by the respective bound of otherRange.
If otherRange is already inside the current range, this function does nothing.
- See Also
- expanded
void QCPRange::expand |
( |
double |
includeCoord | ) |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Expands this range such that includeCoord is contained in the new range. It is assumed that this range is normalized (see normalize).
If this range contains NaN as lower or upper bound, the respective bound will be set to includeCoord.
If includeCoord is already inside the current range, this function does nothing.
- See Also
- expand
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns an expanded range that contains this and otherRange. It is assumed that both this range and otherRange are normalized (see normalize).
If this range contains NaN as lower or upper bound, the returned range's bound will be taken from otherRange.
- See Also
- expand
QCPRange QCPRange::expanded |
( |
double |
includeCoord | ) |
const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns an expanded range that includes the specified includeCoord. It is assumed that this range is normalized (see normalize).
If this range contains NaN as lower or upper bound, the returned range's bound will be set to includeCoord.
- See Also
- expand
QCPRange QCPRange::sanitizedForLogScale |
( |
| ) |
const |
Returns a sanitized version of the range. Sanitized means for logarithmic scales, that the range won't span the positive and negative sign domain, i.e. contain zero. Further lower will always be numerically smaller (or equal) to upper.
If the original range does span positive and negative sign domains or contains zero, the returned range will try to approximate the original range as good as possible. If the positive interval of the original range is wider than the negative interval, the returned range will only contain the positive interval, with lower bound set to rangeFac or rangeFac *upper, whichever is closer to zero. Same procedure is used if the negative interval is wider than the positive interval, this time by changing the upper bound.