QwtPlot3D API  0.2.7
Protected Member Functions | List of all members
LinearAutoScaler Class Reference

#include <qwt3d_autoscaler.h>

Inheritance diagram for LinearAutoScaler:
AutoScaler

Protected Member Functions

 LinearAutoScaler ()
 
 LinearAutoScaler (std::vector< double > &mantisses)
 
AutoScalerclone () const
 
int execute (double &a, double &b, double start, double stop, int ivals)
 

Constructor & Destructor Documentation

LinearAutoScaler ( std::vector< double > &  mantisse)
explicitprotected

Initialize with interval [0,1] and one requested interval.

val mantisse A increasing ordered vector of values representing mantisse values between 1 and 9.

Member Function Documentation

int execute ( double &  a,
double &  b,
double  start,
double  stop,
int  ivals 
)
protectedvirtual

Does the actual scaling.

Returns
Number of intervals after rescaling. This will in the most cases differ from the requested interval number! Always >0.
Parameters
aStart value after scaling (always >= start)
bStop value after scaling (always <= stop)
startStart value
stopStop value
ivalsRequested intervals
Returns
Number of intervals after autoscaling

If the given interval has zero length the function returns the current interval number and a and b remain unchanged.

Implements AutoScaler.


The documentation for this class was generated from the following files: