![]() |
Gra zręcznościowa „Straszna Epidemia"
V1.2
Projekt Wizualizacja Danych Sensorycznych Kewin Gałuszka rok akademicki 2019/2020
|
Represents the range an axis is encompassing. Więcej...
#include <qcustomplot.h>
Metody publiczne | |
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 |
Statyczne metody publiczne | |
static bool | validRange (double lower, double upper) |
static bool | validRange (const QCPRange &range) |
Atrybuty publiczne | |
double | lower |
double | upper |
Statyczne atrybuty publiczne | |
static const double | minRange = 1e-280 |
static const double | maxRange = 1e250 |
Przyjaciele | |
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) |
Funkcje powiązane | |
(Zauważ, że to nie są metody klas.) | |
QDebug | operator<< (QDebug d, const QCPRange &range) |
Represents the range an axis is encompassing.
contains a lower and upper double value and provides convenience input, output and modification functions.
Definicja w linii 777 pliku qcustomplot.h.
QCPRange::QCPRange | ( | ) |
Constructs a range with lower and upper set to zero.
Definicja w linii 1899 pliku qcustomplot.cpp.
QCPRange::QCPRange | ( | double | lower, |
double | upper | ||
) |
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów.
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.
Definicja w linii 1912 pliku qcustomplot.cpp.
QCPRange QCPRange::bounded | ( | double | lowerBound, |
double | upperBound | ||
) | const |
Returns this range, possibly modified to not exceed the bounds provided as lowerBound and upperBound. If possible, the size of the current range is preserved in the process.
If the range shall only be bounded at the lower side, you can set upperBound to QCPRange::maxRange. If it shall only be bounded at the upper side, set lowerBound to -QCPRange::maxRange.
Definicja w linii 2002 pliku qcustomplot.cpp.
|
inline |
Returns the center of the range, i.e. (upper+lower)*0.5
Definicja w linii 800 pliku qcustomplot.h.
|
inline |
Returns true when value lies within or exactly on the borders of the range.
Definicja w linii 809 pliku qcustomplot.h.
void QCPRange::expand | ( | const QCPRange & | otherRange | ) |
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów.
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.
Definicja w linii 1931 pliku qcustomplot.cpp.
void QCPRange::expand | ( | double | includeCoord | ) |
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów.
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.
Definicja w linii 1951 pliku qcustomplot.cpp.
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów.
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.
Definicja w linii 1970 pliku qcustomplot.cpp.
QCPRange QCPRange::expanded | ( | double | includeCoord | ) | const |
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów.
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.
Definicja w linii 1987 pliku qcustomplot.cpp.
|
inline |
Makes sure lower is numerically smaller than upper. If this is not the case, the values are swapped.
Definicja w linii 801 pliku qcustomplot.h.
|
inline |
Definicja w linii 786 pliku qcustomplot.h.
|
inline |
Multiplies both boundaries of the range by value.
Definicja w linii 790 pliku qcustomplot.h.
|
inline |
Adds value to both boundaries of the range.
Definicja w linii 788 pliku qcustomplot.h.
|
inline |
Subtracts value from both boundaries of the range.
Definicja w linii 789 pliku qcustomplot.h.
|
inline |
Divides both boundaries of the range by value.
Definicja w linii 791 pliku qcustomplot.h.
|
inline |
Definicja w linii 785 pliku qcustomplot.h.
QCPRange QCPRange::sanitizedForLinScale | ( | ) | const |
Returns a sanitized version of the range. Sanitized means for linear scales, that lower will always be numerically smaller (or equal) to upper.
Definicja w linii 2086 pliku qcustomplot.cpp.
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.
Definicja w linii 2037 pliku qcustomplot.cpp.
|
inline |
Returns the size of the range, i.e. upper-lower
Definicja w linii 799 pliku qcustomplot.h.
|
static |
To jest metoda przeciążona, udostępniona dla wygody. Różni się od powyższej metody tylko zestawem akceptowanych argumentów. Checks, whether the specified range is within valid bounds, which are defined as QCPRange::maxRange and QCPRange::minRange. A valid range means:
Definicja w linii 2120 pliku qcustomplot.cpp.
|
static |
Checks, whether the specified range is within valid bounds, which are defined as QCPRange::maxRange and QCPRange::minRange. A valid range means:
Definicja w linii 2101 pliku qcustomplot.cpp.
Multiplies both boundaries of the range by value.
Definicja w linii 862 pliku qcustomplot.h.
Multiplies both boundaries of the range by value.
Definicja w linii 872 pliku qcustomplot.h.
Adds value to both boundaries of the range.
Definicja w linii 832 pliku qcustomplot.h.
Adds value to both boundaries of the range.
Definicja w linii 842 pliku qcustomplot.h.
Subtracts value from both boundaries of the range.
Definicja w linii 852 pliku qcustomplot.h.
Divides both boundaries of the range by value.
Definicja w linii 882 pliku qcustomplot.h.
|
related |
Prints range in a human readable format to the qDebug output.
Definicja w linii 823 pliku qcustomplot.h.
double QCPRange::lower |
Definicja w linii 780 pliku qcustomplot.h.
|
static |
Maximum values (negative and positive) the range will accept in range-changing functions. Larger absolute values would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a maximum magnitude of roughly 1e308.
Definicja w linii 814 pliku qcustomplot.h.
|
static |
Minimum range size (upper - lower) the range changing functions will accept. Smaller intervals would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a minimum magnitude of roughly 1e-308.
Definicja w linii 813 pliku qcustomplot.h.
double QCPRange::upper |
Definicja w linii 780 pliku qcustomplot.h.