Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

QwavPeakInterpolator Class Reference
[Peak interpolators]

Abstract baseclass of all interpolation strategies. More...

#include <qwavpeakinterpolator.h>

Inheritance diagram for QwavPeakInterpolator:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual QwavPeakInfo getPeak (const QwavPeakVector *pv, int pixel, int firstSample, Float zoomFactor, uint channel=1) const=0
virtual const string getName () const=0
Constructor & Destructor
 QwavPeakInterpolator ()
virtual ~QwavPeakInterpolator ()

Detailed Description

Abstract baseclass of all interpolation strategies.

A peak interpolation strategy calculates QwavPeakInfo objects for a pixel based on the data contained in a QwavPeakVector.

The QwavPeakInfo contains informations about a block of samples and is used to paint the waveform.

To interpolate the correct informations from the QwavPeakVector the first visible sample and the zoom factor of the view is needed.

See also:
QwavPeakInfo QwavPeakVector
Author:
Peter Eschler


Constructor & Destructor Documentation

Qwav_BEGIN_NAMESPACE QwavPeakInterpolator::QwavPeakInterpolator  
 

Standard constructor. Does nothing.

QwavPeakInterpolator::~QwavPeakInterpolator   [virtual]
 

Destructor.


Member Function Documentation

virtual const string QwavPeakInterpolator::getName   const [pure virtual]
 

Returns the name of this interpolation strategy. Have to be implemented in subclasses to return a unique name (e.g. the class name).

Returns:
the name of this interpolation strategy

Implemented in QwavDefaultPeakInterpolator, and QwavExperimentalPeakInterpolation.

virtual QwavPeakInfo QwavPeakInterpolator::getPeak const QwavPeakVector   pv,
int    pixel,
int    firstSample,
Float    zoomFactor,
uint    channel = 1
const [pure virtual]
 

Returns the peak of sample pixel from the given peak vector pv. The firstSample is the the first visible sample in the view to get the pixel for and zoomFac the zoom factor of this view.

Parameters:
pv  the peak vector to get the data from
pixel  the pixel to get the peak for
firstSample  the first visible sample in the target view
zoomFac  the zoom factor of the target view
See also:
WaveView QwavPeakVector

Implemented in QwavDefaultPeakInterpolator, and QwavExperimentalPeakInterpolation.


The documentation for this class was generated from the following files:
Generated on Mon Jan 20 00:24:56 2003 for Qwav by doxygen1.2.16