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. | |
| 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 |
Private Attributes | |
| size_t | d_size |
| const double * | d_x |
| const double * | d_y |
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.
| QRectF QwtCPointerData::boundingRect | ( | ) | const [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.
| QPointF QwtCPointerData::sample | ( | size_t | index | ) | const [virtual] |
Return the sample at position i
| index | Index |
Implements QwtSeriesData< QPointF >.
Definition at line 141 of file qwt_point_data.cpp.
| size_t QwtCPointerData::size | ( | ) | const [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.
size_t QwtCPointerData::d_size [private] |
Definition at line 56 of file qwt_point_data.h.
const double* QwtCPointerData::d_x [private] |
Definition at line 54 of file qwt_point_data.h.
const double* QwtCPointerData::d_y [private] |
Definition at line 55 of file qwt_point_data.h.