The standard (1:1) mapping class for axis numbering.
More...
#include <qwt3dScale.h>
|
QString | ticLabel (unsigned int idx) const |
|
|
int | autoscale (double &a, double &b, double start, double stop, int ivals) |
| Applies LinearAutoScaler::execute() More...
|
|
void | calculate () |
| Creates the major and minor vector for the scale. More...
|
|
Qwt3D::Scale * | clone () const |
| Returns a new heap based object utilized from qwt3d_ptr. More...
|
|
The standard (1:1) mapping class for axis numbering.
Definition at line 33 of file qwt3dScale.h.
int ValueScale::autoscale |
( |
double & |
a, |
|
|
double & |
b, |
|
|
double |
start, |
|
|
double |
stop, |
|
|
int |
ivals |
|
) |
| |
|
protected |
Applies LinearAutoScaler::execute()
Definition at line 34 of file qwt3dScale.cpp.
int execute2(double &a, double &b, double start, double stop, int ivals)
LinearAutoScaler2 autoscaler_p2
void ValueScale::calculate |
( |
| ) |
|
|
protected |
Creates the major and minor vector for the scale.
Definition at line 40 of file qwt3dScale.cpp.
47 double interval = mstop_p - mstart_p;
54 if (mstart_p < start_p || mstop_p > stop_p)
57 majors_p.push_back(mstart_p);
60 for (i = 1; i <= majorintervals_p; ++i)
62 double t = double(i) / majorintervals_p;
63 runningval = mstart_p + t * interval;
65 if (runningval > stop_p)
68 if (isPracticallyZero(mstart_p, -t*interval))
71 majors_p.push_back(runningval);
74 majorintervals_p = (int) majors_p.size();
80 if (!majorintervals_p || !minorintervals_p)
89 double step = (majors_p[1] - majors_p[0]) / minorintervals_p;
91 if (isPracticallyZero(step))
94 runningval = mstart_p - step;
96 while (runningval > start_p)
98 minors_p.push_back(runningval);
105 for (i = 0; i != majorintervals_p; ++i)
107 runningval = majors_p[i] + step;
109 for (j = 0; j != minorintervals_p; ++j)
111 minors_p.push_back(runningval);
119 runningval = mstop_p + step;
121 while (runningval < stop_p)
123 minors_p.push_back(runningval);
Qwt3D::Scale* ValueScale::clone |
( |
| ) |
const |
|
inlineprotected |
Returns a new heap based object utilized from qwt3d_ptr.
Definition at line 40 of file qwt3dScale.h.
The standard (1:1) mapping class for axis numbering.
QString ValueScale::ticLabel |
( |
unsigned int |
idx | ) |
const |
Definition at line 128 of file qwt3dScale.cpp.
130 if (idx < majors_p.size())
132 return QString::number(majors_p[idx]);
friend class Qwt3D::qwt3d_ptr< Qwt3D::Scale > |
|
friend |
The documentation for this class was generated from the following files: