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

A sample of the types (x1...xn, y) or (x, y1..yn) 更多...

#include <qwt_samples.h>

Public 成员函数

 QwtSetSample ()
 Default constructor
 
 QwtSetSample (double, const QVector< double > &=QVector< double >())
 Constructor with value and set
 
bool operator== (const QwtSetSample &other) const
 Equality comparison operator
 
bool operator!= (const QwtSetSample &other) const
 Inequality comparison operator
 
double added () const
 Return all values of the set added together
 

Public 属性

double value
 value
 
QVector< double > set
 Vector of values associated to value
 

详细描述

A sample of the types (x1...xn, y) or (x, y1..yn)

Used for set-based samples where one dimension has multiple values. Commonly used for bar charts with multiple bars at each position.

构造及析构函数说明

◆ QwtSetSample() [1/2]

QwtSetSample::QwtSetSample ( )
inline

Default constructor

The value is set to 0.0

◆ QwtSetSample() [2/2]

QwtSetSample::QwtSetSample ( double  v,
const QVector< double > &  s = QVector< double >() 
)
inlineexplicit

Constructor with value and set

参数
vValue
sSet of values

成员函数说明

◆ added()

double QwtSetSample::added ( ) const
inline

Return all values of the set added together

返回
Sum of all values in the set

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