Qwt User's Guide svn
Public Member Functions | Protected Attributes
QwtSetSeriesData Class Reference

#include <qwt_series_data.h>

Inherits QwtArraySeriesData< QwtSetSample >.

List of all members.

Public Member Functions

virtual QRectF boundingRect () const
 QwtSetSeriesData (const QVector< QwtSetSample > &=QVector< QwtSetSample >())
virtual QwtSetSample sample (size_t) const
const QVector< QwtSetSamplesamples () const
virtual void setRectOfInterest (const QRectF &)
void setSamples (const QVector< QwtSetSample > &)
virtual size_t size () const

Protected Attributes

QRectF d_boundingRect
QVector< QwtSetSampled_samples

Detailed Description

Interface for iterating over an array of samples.


Constructor & Destructor Documentation

QwtSetSeriesData::QwtSetSeriesData ( const QVector< QwtSetSample > &  samples = QVector<QwtSetSample>())

Constructor

Parameters:
samplesSamples

Member Function Documentation

QRectF QwtSetSeriesData::boundingRect ( ) const [virtual]

Calculate the bounding rect.

The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.

Returns:
Bounding rectangle

Implements QwtSeriesData< QwtSetSample >.

virtual QwtSetSample QwtArraySeriesData< QwtSetSample >::sample ( size_t  i) const [virtual, inherited]

Return a sample

Parameters:
iIndex
Returns:
Sample at position i

Implements QwtSeriesData< QwtSetSample >.

virtual size_t QwtArraySeriesData< QwtSetSample >::size ( ) const [virtual, inherited]
Returns:
Number of samples

Implements QwtSeriesData< QwtSetSample >.


Member Data Documentation

QRectF QwtSeriesData< QwtSetSample >::d_boundingRect [mutable, protected, inherited]

Can be used to cache a calculated bounding rectangle.

QVector<QwtSetSample > QwtArraySeriesData< QwtSetSample >::d_samples [protected, inherited]

Vector of samples.

qmi style