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

包含两个指向 T 类型内存块的指针的数据类 更多...

#include <qwt_point_data.h>

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

Public 成员函数

 QwtCPointerData (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 T * xData () const
 Get the x-data pointer
 
const T * yData () const
 Get the y-data pointer
 
- 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 QwtCPointerData< T >

包含两个指向 T 类型内存块的指针的数据类

成员函数说明

◆ sample()

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

Get the sample at a specific index

重载 QwtArraySeriesData< QPointF > .

◆ size()

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

Get the size of the data set

重载 QwtArraySeriesData< QPointF > .


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