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

QwtPoint3D class defines a 3D point in double coordinates 更多...

#include <qwt_point_3d.h>

Public 成员函数

 QwtPoint3D ()
 Default constructor - constructs a null point
 
 QwtPoint3D (double x, double y, double z)
 Constructs a point with coordinates specified by x, y and z
 
 QwtPoint3D (const QPointF &)
 Constructs a point with x and y coordinates from a 2D point, and z coordinate of 0
 
bool isNull () const noexcept
 
double x () const noexcept
 Return the x-coordinate of the point
 
double y () const noexcept
 Return the y-coordinate of the point
 
double z () const noexcept
 Return the z-coordinate of the point
 
double & rx () noexcept
 Return a reference to the x-coordinate of the point
 
double & ry () noexcept
 Return a reference to the y-coordinate of the point
 
double & rz () noexcept
 Return a reference to the z-coordinate of the point
 
void setX (double x) noexcept
 Set the x-coordinate of the point to x
 
void setY (double y) noexcept
 Set the y-coordinate of the point to y
 
void setZ (double y) noexcept
 Set the z-coordinate of the point to z
 
QPointF toPoint () const noexcept
 
bool operator== (const QwtPoint3D &) const noexcept
 Return true if this point and other are equal
 
bool operator!= (const QwtPoint3D &) const noexcept
 Return true if this point and other are different
 

详细描述

QwtPoint3D class defines a 3D point in double coordinates

构造及析构函数说明

◆ QwtPoint3D() [1/3]

QwtPoint3D::QwtPoint3D ( )
inline

Default constructor - constructs a null point

参见
isNull()

◆ QwtPoint3D() [2/3]

QwtPoint3D::QwtPoint3D ( double  x,
double  y,
double  z = 0.0 
)
inline

Constructs a point with coordinates specified by x, y and z

参数
xX coordinate
yY coordinate
zZ coordinate (default 0.0)

◆ QwtPoint3D() [3/3]

QwtPoint3D::QwtPoint3D ( const QPointF &  other)
inline

Constructs a point with x and y coordinates from a 2D point, and z coordinate of 0

参数
other2D point

成员函数说明

◆ isNull()

bool QwtPoint3D::isNull ( ) const
inlinenoexcept
返回
True if the point is null (x, y, z all equal to zero); otherwise false

◆ toPoint()

QPointF QwtPoint3D::toPoint ( ) const
inlinenoexcept
返回
2D point with the z coordinate dropped

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