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

用于遍历两个 QVector<T> 对象的接口 更多...

#include <qwt_point_data.h>

类 QwtPointArrayData< T > 继承关系图:
QwtPointSeriesData QwtArraySeriesData< QPointF > QwtSeriesData< T >

Public 成员函数

 QwtPointArrayData (const QVector< T > &x, const QVector< T > &y)
 Constructor with QVector references
 
 QwtPointArrayData (QVector< T > &&x, QVector< T > &&y)
 Constructor with rvalue references
 
 QwtPointArrayData (const T *x, const T *y, size_t size)
 Constructor with C-style arrays
 
virtual size_t size () const override
 Get the size of the data set
 
virtual QPointF sample (size_t index) const override
 Get the sample at a specific index
 
const QVector< T > & xData () const
 Get the x-data vector
 
const QVector< T > & yData () const
 Get the y-data vector
 
- Public 成员函数 继承自 QwtPointSeriesData
 QwtPointSeriesData (const QVector< QPointF > &=QVector< QPointF >())
 Constructor
 
virtual QRectF boundingRect () const override
 Calculate the bounding rectangle
 
- Public 成员函数 继承自 QwtArraySeriesData< QPointF >
 QwtArraySeriesData ()
 Constructor
 
 QwtArraySeriesData (const QVector< QPointF > &samples)
 Constructor
 
 QwtArraySeriesData (QVector< QPointF > &&samples)
 
void setSamples (const QVector< QPointF > &samples)
 Assign an array of samples
 
void setSamples (QVector< QPointF > &&samples)
 
const QVector< QPointF > samples () const
 
- Public 成员函数 继承自 QwtSeriesData< T >
 QwtSeriesData ()
 Constructor
 
virtual ~QwtSeriesData ()
 Destructor
 
virtual void setRectOfInterest (const QRectF &rect)
 Set a the "rect of interest"
 

额外继承的成员函数

- Protected 属性 继承自 QwtArraySeriesData< QPointF >
QVector< QPointF > m_samples
 Vector of samples
 
- Protected 属性 继承自 QwtSeriesData< T >
QRectF cachedBoundingRect
 Can be used to cache a calculated bounding rectangle
 

详细描述

template<typename T>
class QwtPointArrayData< T >

用于遍历两个 QVector<T> 对象的接口

成员函数说明

◆ sample()

template<typename T >
QPointF QwtPointArrayData< T >::sample ( size_t  index) const
overridevirtual

Get the sample at a specific index

重载 QwtArraySeriesData< QPointF > .

◆ size()

template<typename T >
size_t QwtPointArrayData< T >::size ( ) const
overridevirtual

Get the size of the data set

重载 QwtArraySeriesData< QPointF > .


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