Template class for data, that is organized as QVector. More...
#include <qwt_series_data.h>
Public Member Functions | |
QwtArraySeriesData () | |
Constructor. More... | |
QwtArraySeriesData (const QVector< T > &samples) | |
virtual T | sample (size_t index) const QWT_OVERRIDE |
const QVector< T > | samples () const |
void | setSamples (const QVector< T > &samples) |
virtual size_t | size () const QWT_OVERRIDE |
Public Member Functions inherited from QwtSeriesData< T > | |
virtual QRectF | boundingRect () const |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Protected Attributes | |
QVector< T > | m_samples |
Vector of samples. More... | |
Protected Attributes inherited from QwtSeriesData< T > | |
QRectF | cachedBoundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Template class for data, that is organized as QVector.
QVector uses implicit data sharing and can be passed around as argument efficiently.
Definition at line 140 of file qwt_series_data.h.
QwtArraySeriesData< T >::QwtArraySeriesData |
Constructor.
Definition at line 178 of file qwt_series_data.h.
|
explicit |
|
virtual |
index | Index |
Implements QwtSeriesData< T >.
Definition at line 208 of file qwt_series_data.h.
const QVector< T > QwtArraySeriesData< T >::samples |
Definition at line 196 of file qwt_series_data.h.
void QwtArraySeriesData< T >::setSamples | ( | const QVector< T > & | samples | ) |
Assign an array of samples
samples | Array of samples |
Definition at line 189 of file qwt_series_data.h.
|
virtual |
Implements QwtSeriesData< T >.
Definition at line 202 of file qwt_series_data.h.
|
protected |
Vector of samples.
Definition at line 174 of file qwt_series_data.h.