#include <qwt_series_data.h>
Public Member Functions | |
QwtIntervalSeriesData (const QwtArray< QwtIntervalSample > &=QwtArray< QwtIntervalSample >()) | |
virtual QwtSeriesData < QwtIntervalSample > * | copy () const |
virtual QwtDoubleRect | boundingRect () const |
QwtIntervalSeriesData::QwtIntervalSeriesData | ( | const QwtArray< QwtIntervalSample > & | samples = QwtArray <QwtIntervalSample>() |
) |
Constructor
samples | Samples |
QwtDoubleRect QwtIntervalSeriesData::boundingRect | ( | ) | const [virtual] |
Calculate the bounding rect of all samples
The bounding rect is necessary for autoscaling and can be used for a couple of painting optimizations.
qwtBoundingRect(...) offers slow implementations iterating over the samples. For large sets it is recommended to implement something faster f.e. by caching the bounding rect.
Implements QwtSeriesData< QwtIntervalSample >.
QwtSeriesData< QwtIntervalSample > * QwtIntervalSeriesData::copy | ( | ) | const [virtual] |
Virtual copy constructor
When accessing a large amount of samples it is recommended to copy only the interface (shallow copy) to them.
Implements QwtSeriesData< QwtIntervalSample >.