37 QCPRange(
double lower,
double upper);
39 bool operator==(
const QCPRange& other)
const {
return lower == other.lower && upper == other.upper; }
40 bool operator!=(
const QCPRange& other)
const {
return !(*
this == other); }
54 double center()
const;
56 void expand(
const QCPRange &otherRange);
58 QCPRange sanitizedForLogScale()
const;
59 QCPRange sanitizedForLinScale()
const;
60 bool contains(
double value)
const;
62 static bool validRange(
double lower,
double upper);
63 static bool validRange(
const QCPRange &range);
68 Q_DECLARE_TYPEINFO(
QCPRange, Q_MOVABLE_TYPE);
154 #endif // QCP_RANGE_H
QCPRange & operator/=(const double &value)
Definition: range.h:45
Represents the range an axis is encompassing.
Definition: range.h:31
QCPRange & operator+=(const double &value)
Definition: range.h:42
QCPRange & operator-=(const double &value)
Definition: range.h:43
static const double minRange
Definition: range.h:64
QCPRange & operator*=(const double &value)
Definition: range.h:44
static const double maxRange
Definition: range.h:65