Public Member Functions | Private Attributes | List of all members
QwtSeriesStore< T > Class Template Reference

Class storing a QwtSeriesData object. More...

#include <qwt_series_store.h>

Inheritance diagram for QwtSeriesStore< T >:
Inheritance graph
[legend]

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. More...
 
sample (int index) const
 
void setData (QwtSeriesData< T > *series)
 
virtual void setRectOfInterest (const QRectF &rect)
 
QwtSeriesData< T > * swapData (QwtSeriesData< T > *series)
 
 ~QwtSeriesStore ()
 Destructor. More...
 

Private Attributes

QwtSeriesData< T > * d_series
 

Additional Inherited Members

- Protected Member Functions inherited from QwtAbstractSeriesStore
virtual void dataChanged ()=0
 dataChanged() indicates, that the series has been changed. More...
 
virtual ~QwtAbstractSeriesStore ()
 Destructor. More...
 

Detailed Description

template<typename T>
class QwtSeriesStore< T >

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 65 of file qwt_series_store.h.

Constructor & Destructor Documentation

template<typename T >
QwtSeriesStore< T >::QwtSeriesStore ( )
explicit

Constructor The store contains no series.

Definition at line 133 of file qwt_series_store.h.

template<typename T >
QwtSeriesStore< T >::~QwtSeriesStore ( )

Destructor.

Definition at line 139 of file qwt_series_store.h.

Member Function Documentation

template<typename T >
QwtSeriesData< T > * QwtSeriesStore< T >::data ( )
inline
Returns
the the series data

Definition at line 145 of file qwt_series_store.h.

template<typename T >
const QwtSeriesData< T > * QwtSeriesStore< T >::data ( ) const
inline
Returns
the the series data

Definition at line 151 of file qwt_series_store.h.

template<typename T >
QRectF QwtSeriesStore< T >::dataRect ( ) const
virtual
Returns
Bounding rectangle of the series or an invalid rectangle, when no series is stored
See also
QwtSeriesData<T>::boundingRect()

Implements QwtAbstractSeriesStore.

Definition at line 183 of file qwt_series_store.h.

template<typename T >
size_t QwtSeriesStore< T >::dataSize ( ) const
virtual
Returns
Number of samples of the series
See also
setData(), QwtSeriesData<T>::size()

Implements QwtAbstractSeriesStore.

Definition at line 174 of file qwt_series_store.h.

template<typename T >
T QwtSeriesStore< T >::sample ( int  index) const
inline
Parameters
indexIndex
Returns
Sample at position index

Definition at line 157 of file qwt_series_store.h.

template<typename T>
void QwtSeriesStore< T >::setData ( QwtSeriesData< T > *  series)

Assign a series of samples

Parameters
seriesData
Warning
The item takes ownership of the data object, deleting it when its not used anymore.

Definition at line 163 of file qwt_series_store.h.

template<typename T >
void QwtSeriesStore< T >::setRectOfInterest ( const QRectF &  rect)
virtual

Set a the "rect of interest" for the series

Parameters
rectRectangle of interest
See also
QwtSeriesData<T>::setRectOfInterest()

Implements QwtAbstractSeriesStore.

Definition at line 192 of file qwt_series_store.h.

template<typename T>
QwtSeriesData< T > * QwtSeriesStore< T >::swapData ( QwtSeriesData< T > *  series)

Replace a series without deleting the previous one

Parameters
seriesNew series
Returns
Previously assigned series

Definition at line 199 of file qwt_series_store.h.

Member Data Documentation

template<typename T>
QwtSeriesData<T>* QwtSeriesStore< T >::d_series
private

Definition at line 129 of file qwt_series_store.h.


The documentation for this class was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19