SYNOPSIS

#include <qwt_series_data.h>

Inherited by QwtArraySeriesData< T >.

Public Member Functions

QwtSeriesData ()

virtual ~QwtSeriesData ()

virtual size_t size () const =0

virtual T sample (size_t i) const =0

virtual QRectF boundingRect () const =0

virtual void setRectOfInterest (const QRectF &)

Protected Attributes

QRectF d_boundingRect

Detailed Description

template<typename T> class QwtSeriesData< T >

Abstract interface for iterating over samples.

Qwt offers several implementations of the QwtSeriesData API, but in situations, where data of an application specific format needs to be displayed, without having to copy it, it is recommended to implement an individual data access.

Constructor & Destructor Documentation

template<typename T > \fBQwtSeriesData\fP< T >::\fBQwtSeriesData\fP ()

Constructor.

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

Destructor.

Member Function Documentation

template<typename T> virtual QRectF \fBQwtSeriesData\fP< T >::boundingRect () const\fC [pure virtual]\fP Calculate the bounding rect of all samples

The bounding rect is necessary for autoscaling and can be used for a couple of painting optimizations.

qwtBoundingRect(...) offers slow implementations iterating over the samples. For large sets it is recommended to implement something faster f.e. by caching the bounding rect.

Implemented in QwtPointSeriesData, QwtPoint3DSeriesData, QwtIntervalSeriesData, QwtSetSeriesData, QwtPointArrayData, QwtCPointerData, and QwtSyntheticPointData.

template<typename T> virtual T \fBQwtSeriesData\fP< T >::sample (size_ti) const\fC [pure virtual]\fP Return a sample

Parameters:

i Index

Returns:

Sample at position i

Implemented in QwtArraySeriesData< T >, QwtPointArrayData, QwtCPointerData, QwtSyntheticPointData, QwtArraySeriesData< QwtIntervalSample >, QwtArraySeriesData< QPointF >, QwtArraySeriesData< QwtPoint3D >, and QwtArraySeriesData< QwtSetSample >.

template<typename T > void \fBQwtSeriesData\fP< T >::setRectOfInterest (const QRectF &)\fC [virtual]\fP Set a the 'rect of interest'

QwtPlotSeriesItem defines the current area of the plot canvas as 'rect of interest' ( QwtPlotSeriesItem::updateScaleDiv() ). It can be used to implement different levels of details.

The default implementation does nothing.

Reimplemented in QwtSyntheticPointData.

template<typename T> virtual size_t \fBQwtSeriesData\fP< T >::size () const\fC [pure virtual]\fP \fBReturns:\fP

Number of samples

Implemented in QwtArraySeriesData< T >, QwtPointArrayData, QwtCPointerData, QwtSyntheticPointData, QwtArraySeriesData< QwtIntervalSample >, QwtArraySeriesData< QPointF >, QwtArraySeriesData< QwtPoint3D >, and QwtArraySeriesData< QwtSetSample >.

Member Data Documentation

template<typename T> QRectF \fBQwtSeriesData\fP< T >::\fBd_boundingRect\fP\fC [mutable, protected]\fP

Can be used to cache a calculated bounding rectangle.

Author

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