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

Arithmetic including a tolerance 更多...

#include <qwt_scale_engine.h>

静态 Public 成员函数

static double ceilEps (double value, double intervalSize)
 Ceiling with epsilon tolerance
 
static double floorEps (double value, double intervalSize)
 Floor with epsilon tolerance
 
static double divideEps (double intervalSize, double numSteps)
 Divide with epsilon tolerance
 
static double divideInterval (double intervalSize, int numSteps, uint base)
 Divide interval
 

详细描述

Arithmetic including a tolerance

成员函数说明

◆ ceilEps()

double QwtScaleArithmetic::ceilEps ( double  value,
double  intervalSize 
)
static

Ceiling with epsilon tolerance

Ceil a value, relative to an interval

参数
valueValue to be ceiled
intervalSizeInterval size
返回
Rounded value
参见
floorEps()

◆ divideEps()

double QwtScaleArithmetic::divideEps ( double  intervalSize,
double  numSteps 
)
static

Divide with epsilon tolerance

Divide an interval into steps

Formula: $stepSize = (intervalSize - intervalSize * 10e^{-6}) / numSteps$

参数
intervalSizeInterval size
numStepsNumber of steps
返回
Step size

◆ divideInterval()

double QwtScaleArithmetic::divideInterval ( double  intervalSize,
int  numSteps,
uint  base 
)
static

Divide interval

Calculate a step size for a given interval

参数
intervalSizeInterval size
numStepsNumber of steps
baseBase for the division (usually 10)
返回
Calculated step size

◆ floorEps()

double QwtScaleArithmetic::floorEps ( double  value,
double  intervalSize 
)
static

Floor with epsilon tolerance

Floor a value, relative to an interval

参数
valueValue to be floored
intervalSizeInterval size
返回
Rounded value
参见
ceilEps()

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