QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_autoscaler.h
1#ifndef __qwt3d_autoscaler__
2#define __qwt3d_autoscaler__
3
4#include <vector>
5#include "qwt3d_global.h"
6#include "qwt3d_autoptr.h"
7
8namespace Qwt3D {
9
19class QWT3D_EXPORT AutoScaler
20{
21 friend class qwt3d_ptr<AutoScaler>;
22
23protected:
24 virtual AutoScaler *clone() const = 0;
25 virtual int execute(double &a, double &b, double start, double stop, int ivals) = 0;
26 virtual ~AutoScaler() { }
27
28private:
29 void destroy() const { delete this; }
30};
31
41class QWT3D_EXPORT LinearAutoScaler : public AutoScaler
42{
43 friend class LinearScale;
44
45protected:
47 explicit LinearAutoScaler(std::vector<double> &mantisses);
48 AutoScaler *clone() const { return new LinearAutoScaler(*this); }
49 int execute(double &a, double &b, double start, double stop, int ivals);
50
51private:
52 double start_, stop_;
53 int intervals_;
54
55 void init(double start, double stop, int ivals);
56 double anchorvalue(double start, double mantisse, int exponent);
57 int segments(int &l_intervals, int &r_intervals, double start, double stop, double anchor,
58 double mantissa, int exponent);
59 std::vector<double> mantissi_;
60};
61
62} // ns
63
64#endif
自动缩放器的抽象基类
Definition qwt3d_autoscaler.h:20
线性刻度的自动美化缩放器
Definition qwt3d_autoscaler.h:42
坐标轴编号的标准(1:1)映射类
Definition qwt3d_scale.h:80
提供原始指针深拷贝的简单自动指针
Definition qwt3d_autoptr.h:31