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

The standard (1:1) mapping class for axis numbering. More...

#include <qwt3d_scale.h>

Inheritance diagram for Qwt3D::LinearScale:
Qwt3D::Scale

Classes

class  PrivateData
 

Protected Member Functions

 LinearScale ()
 Applies LinearAutoScaler::execute() for autoscaling.
 
int autoscale (double &a, double &b, double start, double stop, int ivals) override
 Autoscales the axis.
 
Scaleclone () const override
 Returns a new heap based object utilized from ClonePtr.
 
void calculate () override
 Creates the major and minor vector for the scale.
 
- Protected Member Functions inherited from Qwt3D::Scale
virtual QString ticLabel (unsigned int idx) const
 Maps the double value at tic-position idx to a final representation.
 
virtual void setLimits (double start, double stop)
 Sets start and stop value for the scale.
 
virtual void setMajors (int val)
 Sets number of major intervals.
 
virtual void setMinors (int val)
 Sets number of minor intervals per major interval.
 
virtual void setMajorLimits (double start, double stop)
 Sets value of first and last major tic.
 
int majors () const
 Returns major intervals.
 
int minors () const
 Returns minor intervals.
 
const std::vector< double > & majorTicks () const
 Returns const reference to major tic positions.
 
const std::vector< double > & minorTicks () const
 Returns const reference to minor tic positions.
 
void copyFrom (const Scale &other)
 Copies Scale base state from another Scale.
 

Friends

class Axis
 Indices used to identify an axis.
 
class ClonePtr< Scale >
 

Detailed Description

The standard (1:1) mapping class for axis numbering.

Constructor & Destructor Documentation

◆ LinearScale()

LinearScale::LinearScale ( )
protected

Applies LinearAutoScaler::execute() for autoscaling.

Parameters
[out]aFirst major tic after autoscaling
[out]bLast major tic after autoscaling
startScale begin
stopScale end
ivalsRequested number of major intervals
Returns
Number of major intervals after autoscaling

Member Function Documentation

◆ autoscale()

int Qwt3D::LinearScale::autoscale ( double &  a,
double &  b,
double  start,
double  stop,
int  ivals 
)
overrideprotectedvirtual

Autoscales the axis.

Parameters
[out]aFirst major tic after applying autoscaling
[out]bLast major tic after applying autoscaling
startScale begin
stopScale end
ivalsRequested number of major intervals
Returns
Number of major intervals after autoscaling

The default implementation sets a=start, b=stop and returns ivals.

Reimplemented from Qwt3D::Scale.

◆ calculate()

void LinearScale::calculate ( )
overrideprotectedvirtual

Creates the major and minor vector for the scale.

Implements Qwt3D::Scale.

◆ clone()

Scale * LinearScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from ClonePtr.

Returns
A new LinearScale copy

Implements Qwt3D::Scale.

Friends And Related Symbol Documentation

◆ Axis

friend class Axis
friend

Indices used to identify an axis.

See also
Scale

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