QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Protected Member Functions | Friends | List of all members
Qwt3D::LinearAutoScaler Class Reference

Automatic beautifying of linear scales . More...

#include <qwt3d_autoscaler.h>

Inheritance diagram for Qwt3D::LinearAutoScaler:
Qwt3D::AutoScaler

Protected Member Functions

 LinearAutoScaler ()
 Initializes with an {1,2,5} sequence of mantissas.
 
 LinearAutoScaler (std::vector< double > &mantisses)
 Initialize with interval [0,1] and one requested interval.
 
AutoScalerclone () const
 
int execute (double &a, double &b, double start, double stop, int ivals)
 

Friends

class LinearScale
 

Detailed Description

Automatic beautifying of linear scales

.

Constructor & Destructor Documentation

◆ LinearAutoScaler()

LinearAutoScaler::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

◆ clone()

AutoScaler * Qwt3D::LinearAutoScaler::clone ( ) const
inlineprotectedvirtual

Implements Qwt3D::AutoScaler.

◆ execute()

int LinearAutoScaler::execute ( double &  a,
double &  b,
double  start,
double  stop,
int  ivals 
)
protectedvirtual
  \brief Does the actual scaling
  \return Number of intervals after rescaling. This will in the most cases differ
  from the requested interval number!  Always >0.
  \param a Start value after scaling (always >= start)
  \param b Stop value after scaling  (always <= stop)
Parameters
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 Qwt3D::AutoScaler.


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