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

对数刻度引擎 更多...

#include <qwt_scale_engine.h>

类 QwtLogScaleEngine 继承关系图:
QwtScaleEngine

Public 成员函数

 QwtLogScaleEngine (uint base=10)
 构造函数
 
virtual ~QwtLogScaleEngine ()
 Destructor
 
virtual void autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const override
 对齐并划分区间
 
virtual QwtScaleDiv divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const override
 计算区间的刻度划分
 
- Public 成员函数 继承自 QwtScaleEngine
 QwtScaleEngine (uint base=10)
 构造函数
 
virtual ~QwtScaleEngine ()
 Destructor
 
void setBase (uint base)
 Set the base
 
uint base () const
 返回刻度引擎的基数
 
void setAttribute (Attribute, bool on=true)
 Set an attribute
 
bool testAttribute (Attribute) const
 测试属性是否启用
 
void setAttributes (Attributes)
 Set attributes
 
Attributes attributes () const
 返回刻度属性
 
void setReference (double)
 Set the reference value
 
double reference () const
 返回参考值
 
void setMargins (double lower, double upper)
 Set the margins
 
double lowerMargin () const
 返回刻度下端的边距
 
double upperMargin () const
 返回刻度上端的边距
 
void setTransformation (QwtTransform *)
 Set the transformation
 
QwtTransformtransformation () const
 创建并返回引擎变换的克隆
 

Protected 成员函数

QwtInterval align (const QwtInterval &, double stepSize) const
 将区间对齐到步长
 
void buildTicks (const QwtInterval &, double stepSize, int maxMinorSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) const
 计算区间的刻度
 
QList< double > buildMajorTicks (const QwtInterval &interval, double stepSize) const
 计算区间的主刻度
 
void buildMinorTicks (const QList< double > &majorTicks, int maxMinorSteps, double stepSize, QList< double > &minorTicks, QList< double > &mediumTicks) const
 计算主刻度的次刻度/中刻度
 
- Protected 成员函数 继承自 QwtScaleEngine
bool contains (const QwtInterval &, double value) const
 Check if an interval contains a value
 
QList< double > strip (const QList< double > &, const QwtInterval &) const
 Strip values outside an interval
 
double divideInterval (double intervalSize, int numSteps) const
 Divide an interval
 
QwtInterval buildInterval (double value) const
 Build an interval around a value
 

额外继承的成员函数

- Public 类型 继承自 QwtScaleEngine
enum  Attribute {
  NoAttribute = 0x00 , IncludeReference = 0x01 , Symmetric = 0x02 , Floating = 0x04 ,
  Inverted = 0x08
}
 布局属性 更多...
 

详细描述

对数刻度引擎

构造及析构函数说明

◆ QwtLogScaleEngine()

QwtLogScaleEngine::QwtLogScaleEngine ( uint  base = 10)
explicit

构造函数

成员函数说明

◆ align()

QwtInterval QwtLogScaleEngine::align ( const QwtInterval interval,
double  stepSize 
) const
protected

将区间对齐到步长

◆ autoScale()

void QwtLogScaleEngine::autoScale ( int  maxNumSteps,
double &  x1,
double &  x2,
double &  stepSize 
) const
overridevirtual

对齐并划分区间

实现了 QwtScaleEngine.

◆ buildMajorTicks()

QList< double > QwtLogScaleEngine::buildMajorTicks ( const QwtInterval interval,
double  stepSize 
) const
protected

计算区间的主刻度

◆ buildMinorTicks()

void QwtLogScaleEngine::buildMinorTicks ( const QList< double > &  majorTicks,
int  maxMinorSteps,
double  stepSize,
QList< double > &  minorTicks,
QList< double > &  mediumTicks 
) const
protected

计算主刻度的次刻度/中刻度

◆ buildTicks()

void QwtLogScaleEngine::buildTicks ( const QwtInterval interval,
double  stepSize,
int  maxMinorSteps,
QList< double >  ticks[QwtScaleDiv::NTickTypes] 
) const
protected

计算区间的刻度

◆ divideScale()

QwtScaleDiv QwtLogScaleEngine::divideScale ( double  x1,
double  x2,
int  maxMajorSteps,
int  maxMinorSteps,
double  stepSize = 0.0 
) const
overridevirtual

计算区间的刻度划分

实现了 QwtScaleEngine.


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