SYNOPSIS

#include <qwt_plot_seriesitem.h>

Inherits QwtPlotAbstractSeriesItem.

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

T sample (int index) 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 representing a series of samples.

Constructor & Destructor Documentation

template<typename T > \fBQwtPlotSeriesItem\fP< T >::\fBQwtPlotSeriesItem\fP (const QString &title = \fCQString::null\fP)\fC [explicit]\fP Constructor

Parameters:

title Title of the series item

template<typename T > \fBQwtPlotSeriesItem\fP< T >::\fBQwtPlotSeriesItem\fP (const \fBQwtText\fP &title)\fC [explicit]\fP Constructor

Parameters:

title Title of the series item

template<typename T > \fBQwtPlotSeriesItem\fP< T >::~\fBQwtPlotSeriesItem\fP ()\fC [virtual]\fP

Destructor.

Member Function Documentation

template<typename T > QRectF \fBQwtPlotSeriesItem\fP< T >::boundingRect () const\fC [virtual]\fP \fBReturns:\fP

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 > \fBQwtSeriesData\fP< T > * \fBQwtPlotSeriesItem\fP< T >::data ()\fC [inline]\fP \fBReturns:\fP

the the curve data

template<typename T > const \fBQwtSeriesData\fP< T > * \fBQwtPlotSeriesItem\fP< T >::data () const\fC [inline]\fP \fBReturns:\fP

the the curve data

template<typename T > size_t \fBQwtPlotSeriesItem\fP< T >::dataSize () const Return the size of the data arrays

See also:

setData()

template<typename T > T \fBQwtPlotSeriesItem\fP< T >::sample (intindex) const\fC [inline]\fP \fBParameters:\fP

index Index

Returns:

Sample at position index

template<typename T> void \fBQwtPlotSeriesItem\fP< T >::setData (\fBQwtSeriesData\fP< T > *data) 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 \fBQwtPlotSeriesItem\fP< T >::updateScaleDiv (const \fBQwtScaleDiv\fP &xScaleDiv, const \fBQwtScaleDiv\fP &yScaleDiv)\fC [virtual]\fP 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> \fBQwtSeriesData\fP<T>* \fBQwtPlotSeriesItem\fP< T >::\fBd_series\fP\fC [protected]\fP

Series.

Author

Generated automatically by Doxygen for Qwt User's Guide from the source code.