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

Sample used in vector fields 更多...

#include <qwt_samples.h>

Public 成员函数

 QwtVectorFieldSample (double x=0.0, double y=0.0, double vx=0.0, double vy=0.0)
 Constructor with position and vector coordinates
 
 QwtVectorFieldSample (const QPointF &pos, double vx=0.0, double vy=0.0)
 Constructor with QPointF position and vector coordinates
 
QPointF pos () const
 Return position as QPointF
 
bool isNull () const
 Check if the vector is null
 

Public 属性

double x
 x coordinate of the position
 
double y
 y coordinate of the position
 
double vx
 x coordinate of the vector
 
double vy
 y coordinate of the vector
 

详细描述

Sample used in vector fields

A vector field sample is a position and a vector - usually representing some direction and magnitude - attached to this position.

参见
QwtVectorFieldData

构造及析构函数说明

◆ QwtVectorFieldSample() [1/2]

QwtVectorFieldSample::QwtVectorFieldSample ( double  posX = 0.0,
double  posY = 0.0,
double  vectorX = 0.0,
double  vectorY = 0.0 
)
inline

Constructor with position and vector coordinates

参数
posXx coordinate of the position
posYy coordinate of the position
vectorXx coordinate of the vector
vectorYy coordinate of the vector

◆ QwtVectorFieldSample() [2/2]

QwtVectorFieldSample::QwtVectorFieldSample ( const QPointF &  pos,
double  vectorX = 0.0,
double  vectorY = 0.0 
)
inline

Constructor with QPointF position and vector coordinates

参数
posPosition as QPointF
vectorXx coordinate of the vector
vectorYy coordinate of the vector

成员函数说明

◆ isNull()

bool QwtVectorFieldSample::isNull ( ) const
inline

Check if the vector is null

返回
true, if vx and vy are 0

◆ pos()

QPointF QwtVectorFieldSample::pos ( ) const
inline

Return position as QPointF

返回
x/y coordinates as QPointF

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