-
Notifications
You must be signed in to change notification settings - Fork 27
/
range.sip
47 lines (40 loc) · 1.26 KB
/
range.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/** PyQt5 binding for QCustomPlot v2.0.0
*
* Authors: Dmitry Voronin, Giuseppe Corbelli
* License: MIT
*
* QCustomPlot author: Emanuel Eichhammer
* QCustomPlot Website/Contact: http://www.qcustomplot.com
*/
class QCPRange
{
%TypeHeaderCode
#include <QCustomPlot/src/axis/range.h>
%End
public:
double lower;
double upper;
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;
static bool validRange(double lower, double upper);
static bool validRange(const QCPRange &range);
static const double minRange;
static const double maxRange;
};