|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
刻度映射 更多...
#include <qwt_scale_map.h>
Public 成员函数 | |
| QwtScaleMap () | |
| Default constructor | |
| QwtScaleMap (const QwtScaleMap &) | |
| Copy constructor | |
| QwtScaleMap (QwtScaleMap &&) | |
| Move constructor | |
| ~QwtScaleMap () | |
| Destructor | |
| QwtScaleMap & | operator= (const QwtScaleMap &) |
| Copy assignment operator | |
| QwtScaleMap & | operator= (QwtScaleMap &&) |
| Move assignment operator | |
| void | setTransformation (QwtTransform *) |
| Set the transformation (takes ownership) | |
| const QwtTransform * | transformation () const |
| Return the transformation | |
| void | setPaintInterval (double p1, double p2) |
| Set the paint device interval boundaries | |
| void | setScaleInterval (double s1, double s2) |
| Set the scale interval boundaries | |
| double | transform (double s) const |
| Transform a scale value to paint device coordinate | |
| double | invTransform (double p) const |
| Transform a paint device coordinate to scale value | |
| double | p1 () const |
| Return first border of paint interval | |
| double | p2 () const |
| Return second border of paint interval | |
| double | s1 () const |
| Return first border of scale interval | |
| double | s2 () const |
| Return second border of scale interval | |
| double | pDist () const |
| Return distance between paint interval boundaries | |
| double | sDist () const |
| Return distance between scale interval boundaries | |
| bool | isInverting () const |
| Check if the mapping direction is inverted | |
静态 Public 成员函数 | |
| static QRectF | transform (const QwtScaleMap &, const QwtScaleMap &, const QRectF &) |
| Transform a rectangle from scale to paint coordinates | |
| static QRectF | invTransform (const QwtScaleMap &, const QwtScaleMap &, const QRectF &) |
| Transform a rectangle from paint to scale coordinates | |
| static QPointF | transform (const QwtScaleMap &, const QwtScaleMap &, const QPointF &) |
| Transform a point from scale to paint coordinates | |
| static QPointF | invTransform (const QwtScaleMap &, const QwtScaleMap &, const QPointF &) |
| Transform a point from paint to scale coordinates | |
| static bool | isLinerScale (const QwtScaleMap &sm) |
| Check if the scale is linear (no transformation) | |
Protected 成员函数 | |
| void | swap (QwtScaleMap &other) noexcept |
刻度映射
| QwtScaleMap::QwtScaleMap | ( | ) |
Default constructor
默认构造函数
| QwtScaleMap::QwtScaleMap | ( | const QwtScaleMap & | other | ) |
Copy constructor
复制构造函数
| QwtScaleMap::~QwtScaleMap | ( | ) |
Destructor
析构函数
|
static |
Transform a point from paint to scale coordinates
将点从绘制坐标转换为刻度坐标
|
static |
Transform a rectangle from paint to scale coordinates
将矩形从绘制坐标转换为刻度坐标
|
inline |
Transform a paint device coordinate to scale value
将绘制设备值转换为刻度区间中的值
|
inline |
|
static |
Check if the scale is linear (no transformation)
检查刻度是否为线性(无变换)
| QwtScaleMap & QwtScaleMap::operator= | ( | const QwtScaleMap & | other | ) |
Copy assignment operator
赋值运算符
|
inline |
Return first border of paint interval
返回绘制区间的第一个边界
|
inline |
Return second border of paint interval
返回绘制区间的第二个边界
|
inline |
|
inline |
Return first border of scale interval
返回刻度区间的第一个边界
|
inline |
Return second border of scale interval
返回刻度区间的第二个边界
|
inline |
| void QwtScaleMap::setPaintInterval | ( | double | p1, |
| double | p2 | ||
| ) |
Set the paint device interval boundaries
指定绘制设备区间的边界
| void QwtScaleMap::setScaleInterval | ( | double | s1, |
| double | s2 | ||
| ) |
Set the scale interval boundaries
指定刻度区间的边界
| void QwtScaleMap::setTransformation | ( | QwtTransform * | transform | ) |
Set the transformation (takes ownership)
使用变换初始化映射
|
static |
Transform a point from scale to paint coordinates
将点从刻度坐标转换为绘制坐标
|
static |
Transform a rectangle from scale to paint coordinates
将矩形从刻度坐标转换为绘制坐标
|
inline |
Transform a scale value to paint device coordinate
将相对于刻度区间的点转换为相对于绘制设备区间的点
| const QwtTransform * QwtScaleMap::transformation | ( | ) | const |
Return the transformation
获取变换