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
Qwt3DLinearScale Class Reference

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

#include <qwt3d_scale.h>

Inheritance diagram for Qwt3DLinearScale:
Qwt3DScale

Classes

class  PrivateData
 

Protected Member Functions

 Qwt3DLinearScale ()
 Applies Qwt3DLinearAutoScaler::execute() for autoscaling.
 
int autoscale (double &a, double &b, double start, double stop, int ivals) override
 Autoscales the axis.
 
Qwt3DScaleclone () const override
 Returns a new heap based object utilized from Qwt3DClonePtr.
 
void calculate () override
 Creates the major and minor vector for the scale.
 
- Protected Member Functions inherited from Qwt3DScale
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 Qwt3DScale &other)
 Copies Qwt3DScale base state from another Qwt3DScale.
 

Friends

class Qwt3DAxis
 
class Qwt3DClonePtr< Qwt3DScale >
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Qwt3DLinearScale()

Qwt3DLinearScale::Qwt3DLinearScale ( )
protected

Applies Qwt3DLinearAutoScaler::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 Qwt3DLinearScale::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 Qwt3DScale.

◆ calculate()

void Qwt3DLinearScale::calculate ( )
overrideprotectedvirtual

Creates the major and minor vector for the scale.

Implements Qwt3DScale.

◆ clone()

Qwt3DScale * Qwt3DLinearScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from Qwt3DClonePtr.

Returns
A new Qwt3DLinearScale copy

Implements Qwt3DScale.


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