Interface for iterating over a QVector<T>. More...
#include <qwt_point_data.h>
Public Member Functions | |
QwtValuePointData (const QVector< T > &y) | |
QwtValuePointData (const T *y, size_t size) | |
virtual QPointF | sample (size_t index) const QWT_OVERRIDE |
virtual size_t | size () const QWT_OVERRIDE |
const QVector< T > & | yData () const |
Public Member Functions inherited from QwtPointSeriesData | |
virtual QRectF | boundingRect () const QWT_OVERRIDE |
Calculate the bounding rectangle. More... | |
QwtPointSeriesData (const QVector< QPointF > &=QVector< QPointF >()) | |
Public Member Functions inherited from QwtArraySeriesData< QPointF > | |
QwtArraySeriesData () | |
Constructor. More... | |
QwtArraySeriesData (const QVector< QPointF > &samples) | |
const QVector< QPointF > | samples () const |
void | setSamples (const QVector< QPointF > &samples) |
Public Member Functions inherited from QwtSeriesData< QPointF > | |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Private Attributes | |
QVector< T > | d_y |
Additional Inherited Members | |
Protected Attributes inherited from QwtArraySeriesData< QPointF > | |
QVector< QPointF > | d_samples |
Vector of samples. More... | |
Protected Attributes inherited from QwtSeriesData< QPointF > | |
QRectF | d_boundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Interface for iterating over a QVector<T>.
The memory contains the y coordinates, while the index is interpreted as x coordinate.
Definition at line 67 of file qwt_point_data.h.
QwtValuePointData< T >::QwtValuePointData | ( | const QVector< T > & | y | ) |
QwtValuePointData< T >::QwtValuePointData | ( | const T * | y, |
size_t | size | ||
) |
Constructor
x | Array of x values |
y | Array of y values |
size | Size of the x and y arrays |
Definition at line 281 of file qwt_point_data.h.
|
virtual |
Return the sample at position i
index | Index |
Reimplemented from QwtArraySeriesData< QPointF >.
Definition at line 301 of file qwt_point_data.h.
|
virtual |
Reimplemented from QwtArraySeriesData< QPointF >.
Definition at line 289 of file qwt_point_data.h.
const QVector< T > & QwtValuePointData< T >::yData | ( | ) | const |
Definition at line 308 of file qwt_point_data.h.
|
private |
Definition at line 79 of file qwt_point_data.h.