Qwt User's Guide
svn
|
#include <qwt_series_data.h>
Inherits QwtArraySeriesData< QwtSetSample >.
Public Member Functions | |
virtual QRectF | boundingRect () const |
QwtSetSeriesData (const QVector< QwtSetSample > &=QVector< QwtSetSample >()) | |
virtual QwtSetSample | sample (size_t) const |
const QVector< QwtSetSample > | samples () const |
virtual void | setRectOfInterest (const QRectF &) |
void | setSamples (const QVector< QwtSetSample > &) |
virtual size_t | size () const |
Protected Attributes | |
QRectF | d_boundingRect |
QVector< QwtSetSample > | d_samples |
Interface for iterating over an array of samples.
QwtSetSeriesData::QwtSetSeriesData | ( | const QVector< QwtSetSample > & | samples = QVector<QwtSetSample>() | ) |
Constructor
samples | Samples |
QRectF QwtSetSeriesData::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< QwtSetSample >.
virtual QwtSetSample QwtArraySeriesData< QwtSetSample >::sample | ( | size_t | i | ) | const [virtual, inherited] |
Return a sample
i | Index |
Implements QwtSeriesData< QwtSetSample >.
virtual size_t QwtArraySeriesData< QwtSetSample >::size | ( | ) | const [virtual, inherited] |
Implements QwtSeriesData< QwtSetSample >.
QRectF QwtSeriesData< QwtSetSample >::d_boundingRect [mutable, protected, inherited] |
Can be used to cache a calculated bounding rectangle.
QVector<QwtSetSample > QwtArraySeriesData< QwtSetSample >::d_samples [protected, inherited] |
Vector of samples.