Class storing a QwtSeriesData object. More...
#include <qwt_series_store.h>
Public Member Functions | |
QwtSeriesData< T > * | data () |
const QwtSeriesData< T > * | data () const |
virtual QRectF | dataRect () const |
virtual size_t | dataSize () const |
QwtSeriesStore () | |
Constructor The store contains no series. | |
T | sample (int index) const |
void | setData (QwtSeriesData< T > *series) |
virtual void | setRectOfInterest (const QRectF &rect) |
QwtSeriesData< T > * | swapData (QwtSeriesData< T > *series) |
~QwtSeriesStore () | |
Destructor. | |
Private Attributes | |
QwtSeriesData< T > * | d_series |
Class storing a QwtSeriesData object.
QwtSeriesStore and QwtPlotSeriesItem are intended as base classes for all plot items iterating over a series of samples. Both classes share a virtual base class ( QwtAbstractSeriesStore ) to bridge between them.
QwtSeriesStore offers the template based part for the plot item API, so that QwtPlotSeriesItem can be derived without any hassle with templates.
Definition at line 57 of file qwt_series_store.h.
QwtSeriesStore< T >::QwtSeriesStore | ( | ) | [explicit] |
Constructor The store contains no series.
Definition at line 125 of file qwt_series_store.h.
QwtSeriesStore< T >::~QwtSeriesStore | ( | ) |
Destructor.
Definition at line 131 of file qwt_series_store.h.
QwtSeriesData< T > * QwtSeriesStore< T >::data | ( | ) | [inline] |
Definition at line 137 of file qwt_series_store.h.
const QwtSeriesData< T > * QwtSeriesStore< T >::data | ( | ) | const [inline] |
Definition at line 143 of file qwt_series_store.h.
QRectF QwtSeriesStore< T >::dataRect | ( | ) | const [virtual] |
Implements QwtAbstractSeriesStore.
Definition at line 175 of file qwt_series_store.h.
size_t QwtSeriesStore< T >::dataSize | ( | ) | const [virtual] |
Implements QwtAbstractSeriesStore.
Definition at line 166 of file qwt_series_store.h.
T QwtSeriesStore< T >::sample | ( | int | index | ) | const [inline] |
index | Index |
Definition at line 149 of file qwt_series_store.h.
void QwtSeriesStore< T >::setData | ( | QwtSeriesData< T > * | series | ) |
Assign a series of samples
series | Data |
Definition at line 155 of file qwt_series_store.h.
void QwtSeriesStore< T >::setRectOfInterest | ( | const QRectF & | rect | ) | [virtual] |
Set a the "rect of interest" for the series
rect | Rectangle of interest |
Implements QwtAbstractSeriesStore.
Definition at line 184 of file qwt_series_store.h.
QwtSeriesData< T > * QwtSeriesStore< T >::swapData | ( | QwtSeriesData< T > * | series | ) |
Replace a series without deleting the previous one
series | New series |
Definition at line 191 of file qwt_series_store.h.
QwtSeriesData<T>* QwtSeriesStore< T >::d_series [private] |
Definition at line 121 of file qwt_series_store.h.