Range
Public Methods
|
Range() |
|
Range(T start, T end, Format format=Format::Numeric, Scale scale=Scale::Linear) |
|
Range(const QString &start, const QString &end, const Format format=Format::Numeric, const Scale scale=Scale::Linear) |
|
autoScale() const |
|
autoTickCount() const |
|
center() const |
|
checkRange() const |
|
contains(const Range< T > &other) const |
|
contains(T value) const |
|
dateTimeFormat() const |
|
dateTimeFormat() |
|
diff() const |
|
diff(Scale scale, T start, T end) |
|
direction() const |
|
end() const |
|
end() |
|
extend(T value) |
|
finite() const |
|
fixLimits() |
|
format() const |
|
format() |
|
inverse() const |
|
isZero() const |
|
length() const |
|
niceExtend(bool extend=true) |
|
niceShrink() |
|
niceSize(double size, bool round) |
|
relativePrecision() const |
|
scale() const |
|
scale() |
|
setAutoScale(bool b) |
|
setDateTimeFormat(const QString &format) |
|
setEnd(T end) |
|
setFormat(Format format) |
|
setRange(T start, T end, Format format, Scale scale) |
|
setRange(T start, T end) |
|
setScale(Scale scale) |
|
setStart(T start) |
|
size() const |
|
start() const |
|
start() |
|
stepSize(const int steps) const |
|
toLocaleString(bool round=true) const |
|
toStdString(bool round=true) const |
|
toString(bool round=true, QLocale locale=QLocale()) const |
|
translate(T start, T end) |
|
valid() const |
|
zoom(const double factor, const bool nice, const double relZoomPosScene=0.5) |
Detailed Description
-
template<class T>
class Range : private RangeT Public Functions
-
inline QString toString(bool round = true, QLocale locale = QLocale()) const
Return a string in the format ‘start .. end’ and uses system locale (specialization see below)
-
inline QString toLocaleString(bool round = true) const
Return a string in the format ‘start .. end’ and uses number locale.
-
inline void zoom(const double factor, const bool nice, const double relZoomPosScene = 0.5)
TODO: implement zooming depending on the relZoomPosScene also for non linear scales!
-
inline QString toString(bool round = true, QLocale locale = QLocale()) const