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

Log10 scale. More...

#include <qwt3d_scale.h>

Inheritance diagram for Qwt3D::LogScale:
Qwt3D::Scale

Protected Member Functions

QString ticLabel (unsigned int idx) const override
 Returns a power of 10 associated to the major value at index idx.
 
void setMinors (int val) override
 Sets the minor intervals for the logarithmic scale.
 
 LogScale ()
 Default constructor - sets 9 minor intervals.
 
Scaleclone () const override
 Returns a new heap based object utilized from ClonePtr.
 
void calculate () override
 Creates major and minor vectors for the logarithmic scale.
 
- Protected Member Functions inherited from Qwt3D::Scale
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 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.
 
virtual int autoscale (double &a, double &b, double start, double stop, int ivals)
 Autoscales the axis.
 
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

Log10 scale.

Member Function Documentation

◆ calculate()

void LogScale::calculate ( )
overrideprotectedvirtual

Creates major and minor vectors for the logarithmic scale.

Warning
If the interval is too small, the scale becomes empty or will contain only a single major tic. There is no automatism (also not planned for now) for an 'intelligent' guess, what to do. Better switch manually to linear scales in such cases.

Implements Qwt3D::Scale.

◆ clone()

Scale * LogScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from ClonePtr.

Returns
A new LogScale copy

Implements Qwt3D::Scale.

◆ setMinors()

void LogScale::setMinors ( int  val)
overrideprotectedvirtual

Sets the minor intervals for the logarithmic scale.

Parameters
valNumber of minor intervals (only 9, 5, 3, or 2 are accepted)

They will produce mantissa sets of {2,3,4,5,6,7,8,9}, {2,4,6,8}, {2,5} or {5} respectively.

Reimplemented from Qwt3D::Scale.

◆ ticLabel()

QString LogScale::ticLabel ( unsigned int  idx) const
overrideprotectedvirtual

Returns a power of 10 associated to the major value at index idx.

Parameters
idxThe current major tic index
Returns
The QString representation of 10^value for valid index, empty QString else

Reimplemented from 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: