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

极坐标点 更多...

#include <qwt_point_polar.h>

Public 成员函数

 QwtPointPolar ()
 默认构造函数 - 构造一个空点,半径和方位角都设置为 0.0
 
 QwtPointPolar (double azimuth, double radius)
 构造一个由半径和方位角指定坐标的点
 
 QwtPointPolar (const QPointF &)
 从笛卡尔坐标点转换并赋值
 
void setPoint (const QPointF &)
 从笛卡尔坐标点转换并赋值
 
QPointF toPoint () const
 转换并返回笛卡尔坐标值
 
bool isValid () const
 如果 radius() >= 0.0 则返回 true
 
bool isNull () const
 如果 radius() == 0.0 则返回 true
 
double radius () const
 返回半径
 
double azimuth () const
 返回方位角
 
double & rRadius ()
 返回半径的引用
 
double & rAzimuth ()
 返回方位角的引用
 
void setRadius (double)
 将半径设置为 radius
 
void setAzimuth (double)
 将方位角设置为 azimuth
 
bool operator== (const QwtPointPolar &) const
 比较两个点
 
bool operator!= (const QwtPointPolar &) const
 比较两个点
 
QwtPointPolar normalized () const
 规范化半径和方位角
 

详细描述

极坐标点

构造及析构函数说明

◆ QwtPointPolar() [1/3]

QwtPointPolar::QwtPointPolar ( )
inline

默认构造函数 - 构造一个空点,半径和方位角都设置为 0.0

◆ QwtPointPolar() [2/3]

QwtPointPolar::QwtPointPolar ( double  azimuth,
double  radius 
)
inline

构造一个由半径和方位角指定坐标的点

◆ QwtPointPolar() [3/3]

QwtPointPolar::QwtPointPolar ( const QPointF &  p)

从笛卡尔坐标点转换并赋值

成员函数说明

◆ normalized()

QwtPointPolar QwtPointPolar::normalized ( ) const

规范化半径和方位角

◆ operator!=()

bool QwtPointPolar::operator!= ( const QwtPointPolar other) const

比较两个点

◆ operator==()

bool QwtPointPolar::operator== ( const QwtPointPolar other) const

比较两个点

◆ setPoint()

void QwtPointPolar::setPoint ( const QPointF &  p)

从笛卡尔坐标点转换并赋值

◆ toPoint()

QPointF QwtPointPolar::toPoint ( ) const

转换并返回笛卡尔坐标值


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