Data class containing two pointers to memory blocks of doubles. More...
#include <qwt_point_data.h>

Public Member Functions | |
| virtual QRectF | boundingRect () const |
| Calculate the bounding rectangle. More... | |
| QwtCPointerData (const double *x, const double *y, size_t size) | |
| virtual QPointF | sample (size_t i) const |
| virtual size_t | size () const |
| const double * | xData () const |
| const 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 | |
| size_t | d_size |
| const double * | d_x |
| const 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... | |
Data class containing two pointers to memory blocks of doubles.
Definition at line 41 of file qwt_point_data.h.
| QwtCPointerData::QwtCPointerData | ( | 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 105 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 121 of file qwt_point_data.cpp.
|
virtual |
Return the sample at position i
| index | Index |
Implements QwtSeriesData< QPointF >.
Definition at line 141 of file qwt_point_data.cpp.
|
virtual |
Implements QwtSeriesData< QPointF >.
Definition at line 130 of file qwt_point_data.cpp.
| const double * QwtCPointerData::xData | ( | ) | const |
Definition at line 147 of file qwt_point_data.cpp.
| const double * QwtCPointerData::yData | ( | ) | const |
Definition at line 153 of file qwt_point_data.cpp.
|
private |
Definition at line 56 of file qwt_point_data.h.
|
private |
Definition at line 54 of file qwt_point_data.h.
|
private |
Definition at line 55 of file qwt_point_data.h.