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

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

#include <qwt3d_scale.h>

类 Qwt3D::LinearScale 继承关系图:
Qwt3D::Scale

class  PrivateData
 

Protected 成员函数

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

友元

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

详细描述

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

构造及析构函数说明

◆ LinearScale()

LinearScale::LinearScale ( )
protected

Applies LinearAutoScaler::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 Qwt3D::LinearScale::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.

重载 Qwt3D::Scale .

◆ calculate()

void LinearScale::calculate ( )
overrideprotectedvirtual

Creates the major and minor vector for the scale

实现了 Qwt3D::Scale.

◆ clone()

Scale * LinearScale::clone ( ) const
overrideprotectedvirtual

Returns a new heap based object utilized from ClonePtr

返回
A new LinearScale copy

实现了 Qwt3D::Scale.

友元及相关函数文档

◆ Axis

friend class Axis
friend

Indices used to identify an axis.

参见
Scale

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