|
Qwt User's Guide 6.0.1
|
Interface for iterating over two QVector<double> objects. More...
#include <qwt_series_data.h>

Public Member Functions | |
| virtual QRectF | boundingRect () const |
| QwtPointArrayData (const double *x, const double *y, size_t size) | |
| QwtPointArrayData (const QVector< double > &x, const QVector< double > &y) | |
| virtual QPointF | sample (size_t i) const |
| virtual void | setRectOfInterest (const QRectF &) |
| virtual size_t | size () const |
| const QVector< double > & | xData () const |
| const QVector< double > & | yData () const |
Protected Attributes | |
| QRectF | d_boundingRect |
Interface for iterating over two QVector<double> objects.
| QwtPointArrayData::QwtPointArrayData | ( | const QVector< double > & | x, |
| const QVector< double > & | y | ||
| ) |
Constructor
| x | Array of x values |
| y | Array of y values |
| 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 |
| QRectF QwtPointArrayData::boundingRect | ( | ) | const [virtual] |
Calculate the bounding rect.
The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.
Implements QwtSeriesData< QPointF >.
| QPointF QwtPointArrayData::sample | ( | size_t | i | ) | const [virtual] |
Return the sample at position i
| i | Index |
Implements QwtSeriesData< QPointF >.
| size_t QwtPointArrayData::size | ( | ) | const [virtual] |
Implements QwtSeriesData< QPointF >.
| const QVector< double > & QwtPointArrayData::xData | ( | ) | const |
| const QVector< double > & QwtPointArrayData::yData | ( | ) | const |
QRectF QwtSeriesData< QPointF >::d_boundingRect [mutable, protected, inherited] |
Can be used to cache a calculated bounding rectangle.
1.7.3