QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Protected 成员函数 | 友元 | 所有成员列表
Qwt3DLogScale类 参考

Log10 scale 更多...

#include <qwt3d_scale.h>

类 Qwt3DLogScale 继承关系图:
Qwt3DScale

Protected 成员函数

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
 
 Qwt3DLogScale ()
 Default constructor - sets 9 minor intervals
 
Qwt3DScaleclone () const override
 Returns a new heap based object utilized from Qwt3DClonePtr
 
void calculate () override
 Creates major and minor vectors for the logarithmic scale
 
- Protected 成员函数 继承自 Qwt3DScale
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 Qwt3DScale &other)
 Copies Qwt3DScale base state from another Qwt3DScale
 

友元

class Qwt3DAxis
 
class Qwt3DClonePtr< Qwt3DScale >
 

详细描述

Log10 scale

成员函数说明

◆ calculate()

void Qwt3DLogScale::calculate ( )
overrideprotectedvirtual

Creates major and minor vectors for the logarithmic scale

警告
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.

实现了 Qwt3DScale.

◆ clone()

Qwt3DScale * Qwt3DLogScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from Qwt3DClonePtr

返回
A new Qwt3DLogScale copy

实现了 Qwt3DScale.

◆ setMinors()

void Qwt3DLogScale::setMinors ( int  val)
overrideprotectedvirtual

Sets the minor intervals for the logarithmic scale

参数
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.

重载 Qwt3DScale .

◆ ticLabel()

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

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

参数
idxThe current major tic index
返回
The QString representation of 10^value for valid index, empty QString else

重载 Qwt3DScale .


该类的文档由以下文件生成: