QwtIntervalSeriesData Class Reference

Interface for iterating over an array of intervals. More...

#include <qwt_series_data.h>

Inheritance diagram for QwtIntervalSeriesData:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 QwtIntervalSeriesData (const QwtArray< QwtIntervalSample > &=QwtArray< QwtIntervalSample >())
virtual QwtSeriesData
< QwtIntervalSample > * 
copy () const
virtual QwtDoubleRect boundingRect () const


Detailed Description

Interface for iterating over an array of intervals.

Constructor & Destructor Documentation

QwtIntervalSeriesData::QwtIntervalSeriesData ( const QwtArray< QwtIntervalSample > &  samples = QwtArray <QwtIntervalSample>()  ) 

Constructor

Parameters:
samples Samples


Member Function Documentation

QwtDoubleRect QwtIntervalSeriesData::boundingRect (  )  const [virtual]

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.

Implements QwtSeriesData< QwtIntervalSample >.

QwtSeriesData< QwtIntervalSample > * QwtIntervalSeriesData::copy (  )  const [virtual]

Virtual copy constructor

When accessing a large amount of samples it is recommended to copy only the interface (shallow copy) to them.

Returns:
Pointer to a copy

Implements QwtSeriesData< QwtIntervalSample >.


Generated on Tue Oct 6 03:30:50 2009 for Qwt User's Guide by  doxygen 1.5.9