QwtPlotSeriesItem< T > Class Template Reference

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)
void setData (const QwtSeriesData< T > &)
QwtSeriesData< T > & data ()
const QwtSeriesData< T > & data () const
int dataSize () const
sample (int i) const
virtual QRectF boundingRect () const
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)

Protected Attributes

QwtSeriesData< T > * d_series

template<typename T>
class QwtPlotSeriesItem< T >


Member Function Documentation

template<typename T >
QRectF QwtPlotSeriesItem< T >::boundingRect (  )  const [inline, virtual]

Returns the bounding rectangle of the curve 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 >
int QwtPlotSeriesItem< T >::dataSize (  )  const [inline]

Return the size of the data arrays

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

Assign a series of samples

Parameters:
data Data
See also:
QwtSeriesData<T>::copy()
template<typename T >
void QwtPlotSeriesItem< T >::updateScaleDiv ( const QwtScaleDiv ,
const QwtScaleDiv  
) [inline, virtual]

Update the item to changes of the axes scale division.

Update the item, when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like QwtPlotGrid()) have to reimplement updateScaleDiv()

Parameters:
xScaleDiv Scale division of the x-axis
yScaleDiv Scale division of the y-axis
See also:
QwtPlot::updateAxes()

Reimplemented from QwtPlotItem.


Generated by  doxygen 1.6.2