Interface for iterating over two QVector<double> objects. More...
#include <qwt_point_data.h>
Public Member Functions | |
virtual QRectF | boundingRect () const |
Calculate the bounding rectangle. More... | |
QwtPointArrayData (const QVector< double > &x, const QVector< double > &y) | |
QwtPointArrayData (const double *x, const double *y, size_t size) | |
virtual QPointF | sample (size_t i) const |
virtual size_t | size () const |
const QVector< double > & | xData () const |
const QVector< double > & | yData () const |
Public Member Functions inherited from QwtSeriesData< QPointF > | |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Private Attributes | |
QVector< double > | d_x |
QVector< double > | d_y |
Additional Inherited Members | |
Protected Attributes inherited from QwtSeriesData< QPointF > | |
QRectF | d_boundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Interface for iterating over two QVector<double> objects.
Definition at line 19 of file qwt_point_data.h.
QwtPointArrayData::QwtPointArrayData | ( | const QVector< double > & | x, |
const QVector< double > & | y | ||
) |
Constructor
x | Array of x values |
y | Array of y values |
Definition at line 22 of file qwt_point_data.cpp.
QwtPointArrayData::QwtPointArrayData | ( | const double * | x, |
const double * | 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 37 of file qwt_point_data.cpp.
|
virtual |
Calculate the bounding rectangle.
The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.
Implements QwtSeriesData< QPointF >.
Definition at line 55 of file qwt_point_data.cpp.
|
virtual |
Return the sample at position i
index | Index |
Implements QwtSeriesData< QPointF >.
Definition at line 75 of file qwt_point_data.cpp.
|
virtual |
Implements QwtSeriesData< QPointF >.
Definition at line 64 of file qwt_point_data.cpp.
const QVector< double > & QwtPointArrayData::xData | ( | ) | const |
Definition at line 81 of file qwt_point_data.cpp.
const QVector< double > & QwtPointArrayData::yData | ( | ) | const |
Definition at line 87 of file qwt_point_data.cpp.
|
private |
Definition at line 34 of file qwt_point_data.h.
|
private |
Definition at line 35 of file qwt_point_data.h.