QwtPlot3D API
0.2.7
|
#include <qwt3d_autoscaler.h>
Protected Member Functions | |
LinearAutoScaler () | |
LinearAutoScaler (std::vector< double > &mantisses) | |
AutoScaler * | clone () const |
int | execute (double &a, double &b, double start, double stop, int ivals) |
LinearAutoScaler | ( | std::vector< double > & | mantisse | ) | [explicit, protected] |
Initialize with interval [0,1] and one requested interval.
val mantisse A increasing ordered vector of values representing mantisse values between 1 and 9.
int execute | ( | double & | a, |
double & | b, | ||
double | start, | ||
double | stop, | ||
int | ivals | ||
) | [protected, virtual] |
Does the actual scaling.
a | Start value after scaling (always >= start) |
b | Stop value after scaling (always <= stop) |
start | Start value |
stop | Stop value |
ivals | Requested intervals |
If the given interval has zero length the function returns the current interval number and a and b remain unchanged.
Implements AutoScaler.