LinearAutoScaler Class Reference

Automatic beautifying of linear scales.

#include <qwt3d_autoscaler.h>

Inheritance diagram for LinearAutoScaler:


List of all members.

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 (  )  [protected]

Initializes with an {1,2,5} sequence of mantissas.

LinearAutoScaler ( std::vector< double > &  mantisse  )  [explicit, protected]

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

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

Member Function Documentation

AutoScaler* clone (  )  const [inline, protected, virtual]

Returns a new heap based object utilized from qwt3d_ptr.

Implements AutoScaler.

int execute ( double &  a,
double &  b,
double  start,
double  stop,
int  ivals 
) [protected, virtual]

Does the actual scaling.

Number of intervals after rescaling. This will in the most cases differ from the requested interval number! Always >0.
a Start value after scaling (always >= start)
b Stop value after scaling (always <= stop)
start Start value
stop Stop value
ivals Requested intervals
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:

Generated on Sun Jun 7 00:16:33 2009 for QwtPlot3D API by  doxygen 1.5.8