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

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

#include <qwt3d_scale.h>

类 Qwt3DLinearScale 继承关系图:
Qwt3DScale

class  PrivateData
 

Protected 成员函数

 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 成员函数 继承自 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
 

友元

class Qwt3DAxis
 
class Qwt3DClonePtr< Qwt3DScale >
 

详细描述

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

构造及析构函数说明

◆ Qwt3DLinearScale()

Qwt3DLinearScale::Qwt3DLinearScale ( )
protected

Applies Qwt3DLinearAutoScaler::execute() for autoscaling

参数
[out]aFirst major tic after autoscaling
[out]bLast major tic after autoscaling
startScale begin
stopScale end
ivalsRequested number of major intervals
返回
Number of major intervals after autoscaling

成员函数说明

◆ autoscale()

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

Autoscales the axis

参数
[out]aFirst major tic after applying autoscaling
[out]bLast major tic after applying autoscaling
startScale begin
stopScale end
ivalsRequested number of major intervals
返回
Number of major intervals after autoscaling

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

重载 Qwt3DScale .

◆ calculate()

void Qwt3DLinearScale::calculate ( )
overrideprotectedvirtual

Creates the major and minor vector for the scale

实现了 Qwt3DScale.

◆ clone()

Qwt3DScale * Qwt3DLinearScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from Qwt3DClonePtr

返回
A new Qwt3DLinearScale copy

实现了 Qwt3DScale.


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