10#ifndef QWT_SERIES_STORE_H
11#define QWT_SERIES_STORE_H
13#include "qwt_global.h"
14#include "qwt_series_data.h"
31#ifndef QWT_PYTHON_WRAPPER
50 virtual QRectF
dataRect()
const {
return QRectF( 0.0, 0.0, -1.0, -1.0 ); }
51 virtual size_t dataSize()
const {
return 0; }
133template< typename T >
139template<
typename T >
145template<
typename T >
151template<
typename T >
157template<
typename T >
160 return m_series ? m_series->sample( index ) : T();
163template<
typename T >
166 if ( m_series != series )
174template<
typename T >
177 if ( m_series == NULL )
180 return m_series->size();
183template<
typename T >
186 if ( m_series == NULL )
187 return QRectF( 1.0, 1.0, -2.0, -2.0 );
189 return m_series->boundingRect();
192template<
typename T >
196 m_series->setRectOfInterest( rect );
199template<
typename T >
205 return swappedSeries;
Bridge between QwtSeriesStore and QwtPlotSeriesItem.
virtual QRectF dataRect() const =0
virtual ~QwtAbstractSeriesStore()
Destructor.
virtual void setRectOfInterest(const QRectF &)=0
virtual size_t dataSize() const =0
virtual void dataChanged()=0
dataChanged() indicates, that the series has been changed.
Abstract interface for iterating over samples.
Class storing a QwtSeriesData object.
T sample(int index) const
QwtSeriesData< T > * swapData(QwtSeriesData< T > *series)
virtual size_t dataSize() const override
const QwtSeriesData< T > * data() const
QwtSeriesStore()
Constructor The store contains no series.
QwtSeriesData< T > * data()
void setData(QwtSeriesData< T > *series)
~QwtSeriesStore()
Destructor.
virtual QRectF dataRect() const override
virtual void setRectOfInterest(const QRectF &rect) override