-
Notifications
You must be signed in to change notification settings - Fork 27
/
axisticker.sip
42 lines (35 loc) · 1.21 KB
/
axisticker.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
/** 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 QCPAxisTicker
{
%TypeHeaderCode
#include <QCustomPlot/src/axis/axisticker.h>
%End
public:
enum TickStepStrategy
{
tssReadability ///< A nicely readable tick step is prioritized over matching the requested number of ticks (see \ref setTickCount)
,tssMeetTickCount ///< Less readable tick steps are allowed which in turn facilitates getting closer to the requested tick count
};
QCPAxisTicker();
virtual ~QCPAxisTicker();
// getters:
TickStepStrategy tickStepStrategy() const;
int tickCount() const;
double tickOrigin() const;
// setters:
void setTickStepStrategy(TickStepStrategy strategy);
void setTickCount(int count);
void setTickOrigin(double origin);
// introduced virtual methods:
virtual void generate(const QCPRange &range, const QLocale &locale, QChar formatChar, int precision, QVector<double> &ticks, QVector<double> *subTicks, QVector<QString> *tickLabels);
private:
QCPAxisTicker(const QCPAxisTicker&);
QCPAxisTicker& operator=(const QCPAxisTicker&);
};