Section: Qwt User's Guide (3)Updated: 16 Nov 2004Local indexUp
NAME
QwtData -
SYNOPSIS
Inherited by QwtArrayData, QwtCPointerData, and QwtDoublePointData.
Detailed Description
QwtData defines an interface to any type of data.
Classes, derived from QwtData may:
•
store the data in almost any type of container
•
calculate the data on the fly instead of storing it
•
implement data with error bars (this implies subclassing QwtPlot, QwtCurve and QwtPlotCurve)
Warning:
In the future, 'almost any type of container' may be limited to containers supporting bi-directional iterators like the vector, array and list classes in Qt or in the standard template library.
Returns the bounding rectangle of the data. If there is no bounding rect, like for empty data the rectangle is invalid: QwtDoubleRect::isValid() == FALSE
Warning:
This is an slow implementation iterating over all points. It is intended to be overloaded by derived classes. In case of auto scaling boundingRect() is called for every replot, so it might be worth to implement a cache, or use x(0), x(size() - 1) for ordered data ...
Reimplemented in QwtArrayData, and QwtCPointerData.