QwtPlotSeriesItem< T > Class Template Reference

Class template for plot items reprsenting a series of samples. More...

#include <qwt_plot_seriesitem.h>

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

List of all members.

Public Member Functions

 QwtPlotSeriesItem (const QString &title=QString::null)
 QwtPlotSeriesItem (const QwtText &title)
virtual ~QwtPlotSeriesItem ()
void setData (QwtSeriesData< T > *)
QwtSeriesData< T > * data ()
const QwtSeriesData< T > * data () const
size_t dataSize () const
sample (int i) const
virtual QRectF boundingRect () const
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)

Protected Attributes

QwtSeriesData< T > * d_series

Detailed Description

template<typename T>
class QwtPlotSeriesItem< T >

Class template for plot items reprsenting a series of samples.


Constructor & Destructor Documentation

template<typename T >
QwtPlotSeriesItem< T >::QwtPlotSeriesItem ( const QString &  title = QString::null  )  [inline, explicit]

Constructor

Parameters:
title Title of the series item
template<typename T >
QwtPlotSeriesItem< T >::QwtPlotSeriesItem ( const QwtText title  )  [inline, explicit]

Constructor

Parameters:
title Title of the series item
template<typename T >
QwtPlotSeriesItem< T >::~QwtPlotSeriesItem (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<typename T >
QRectF QwtPlotSeriesItem< T >::boundingRect (  )  const [inline, virtual]
Returns:
Bounding rectangle of the data. If there is no bounding rect, like for empty data the rectangle is invalid.
See also:
QwtSeriesData<T>::boundingRect(), QRectF::isValid()

Reimplemented from QwtPlotItem.

Reimplemented in QwtPlotHistogram, and QwtPlotIntervalCurve.

template<typename T >
const QwtSeriesData< T > * QwtPlotSeriesItem< T >::data (  )  const [inline]
Returns:
the the curve data
template<typename T >
QwtSeriesData< T > * QwtPlotSeriesItem< T >::data (  )  [inline]
Returns:
the the curve data
template<typename T >
size_t QwtPlotSeriesItem< T >::dataSize (  )  const [inline]

Return the size of the data arrays

See also:
setData()
template<typename T >
T QwtPlotSeriesItem< T >::sample ( int  index  )  const [inline]
Parameters:
index Index
Returns:
Sample at position index
template<typename T>
void QwtPlotSeriesItem< T >::setData ( QwtSeriesData< T > *  data  )  [inline]

Assign a series of samples

Parameters:
data Data
Warning:
The item takes ownership of the data object, deleting it when its not used anymore.
template<typename T >
void QwtPlotSeriesItem< T >::updateScaleDiv ( const QwtScaleDiv xScaleDiv,
const QwtScaleDiv yScaleDiv 
) [inline, virtual]

Update the rect of interest according to the current scale ranges

Parameters:
xScaleDiv Scale division of the x-axis
yScaleDiv Scale division of the y-axis
See also:
QwtSeriesData<T>::setRectOfInterest()

Reimplemented from QwtPlotItem.


Member Data Documentation

template<typename T>
QwtSeriesData<T>* QwtPlotSeriesItem< T >::d_series [protected]

Series.

Generated on Sun Nov 21 12:01:46 2010 for Qwt User's Guide by  doxygen 1.6.3