|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
Abstract interface for iterating over samples. More...
#include <qwt_series_data.h>
Public Member Functions | |
| QwtSeriesData () | |
| Constructor. | |
| virtual | ~QwtSeriesData () |
| Destructor. | |
| virtual size_t | size () const =0 |
| virtual T | sample (size_t i) const =0 |
| Return a sample. | |
| virtual QRectF | boundingRect () const =0 |
| Calculate the bounding rect of all samples. | |
| virtual void | setRectOfInterest (const QRectF &rect) |
| Set a the "rect of interest". | |
Protected Attributes | |
| QRectF | cachedBoundingRect |
| Can be used to cache a calculated bounding rectangle. | |
Abstract interface for iterating over samples.
Qwt offers several implementations of the QwtSeriesData API, but in situations, where data of an application specific format needs to be displayed, without having to copy it, it is recommended to implement an individual data access.
A subclass of QwtSeriesData<QPointF> must implement:
|
pure virtual |
Calculate the bounding rect of all samples.
Implemented in QwtSyntheticPointData, QwtPointSeriesData, QwtPoint3DSeriesData, QwtIntervalSeriesData, QwtSetSeriesData, QwtVectorFieldData, QwtTradingChartData, QwtBoxChartData, and QwtBoxOutlierChartData.
|
pure virtual |
Return a sample.
Implemented in QwtPointArrayData< T >, QwtCPointerData< T >, QwtValuePointData< T >, QwtCPointerValueData< T >, QwtSyntheticPointData, QwtArraySeriesData< T >, QwtArraySeriesData< QPointF >, QwtArraySeriesData< QwtBoxOutlierSample >, QwtArraySeriesData< QwtBoxSample >, QwtArraySeriesData< QwtIntervalSample >, QwtArraySeriesData< QwtOHLCSample >, QwtArraySeriesData< QwtPoint3D >, QwtArraySeriesData< QwtSetSample >, and QwtArraySeriesData< QwtVectorFieldSample >.
|
virtual |
Set a the "rect of interest".
Reimplemented in QwtSyntheticPointData.
|
pure virtual |
Implemented in QwtPointArrayData< T >, QwtCPointerData< T >, QwtValuePointData< T >, QwtCPointerValueData< T >, QwtSyntheticPointData, QwtArraySeriesData< T >, QwtArraySeriesData< QPointF >, QwtArraySeriesData< QwtBoxOutlierSample >, QwtArraySeriesData< QwtBoxSample >, QwtArraySeriesData< QwtIntervalSample >, QwtArraySeriesData< QwtOHLCSample >, QwtArraySeriesData< QwtPoint3D >, QwtArraySeriesData< QwtSetSample >, and QwtArraySeriesData< QwtVectorFieldSample >.