Qwt User's Guide 6.3.0
|
Template class for data, that is organized as QVector. More...
#include <qwt_series_data.h>
Public Member Functions | |
QwtArraySeriesData () | |
Constructor. | |
QwtArraySeriesData (const QVector< T > &samples) | |
void | setSamples (const QVector< T > &samples) |
const QVector< T > | samples () const |
virtual size_t | size () const override |
virtual T | sample (size_t index) const override |
Public Member Functions inherited from QwtSeriesData< T > | |
QwtSeriesData () | |
Constructor. | |
virtual | ~QwtSeriesData () |
Destructor. | |
T | firstSample () const |
T | lastSample () const |
virtual QRectF | boundingRect () const |
virtual void | setRectOfInterest (const QRectF &rect) |
Protected Attributes | |
QVector< T > | m_samples |
Vector of samples. | |
Protected Attributes inherited from QwtSeriesData< T > | |
QRectF | cachedBoundingRect |
Can be used to cache a calculated bounding rectangle. | |
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 152 of file qwt_series_data.h.
QwtArraySeriesData< T >::QwtArraySeriesData | ( | ) |
Constructor.
Definition at line 190 of file qwt_series_data.h.
|
explicit |
|
overridevirtual |
index | Index |
Implements QwtSeriesData< T >.
Definition at line 220 of file qwt_series_data.h.
const QVector< T > QwtArraySeriesData< T >::samples | ( | ) | const |
Definition at line 208 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 201 of file qwt_series_data.h.
|
overridevirtual |
Implements QwtSeriesData< T >.
Definition at line 214 of file qwt_series_data.h.
|
protected |
Vector of samples.
Definition at line 186 of file qwt_series_data.h.