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