#include <qwavpeakinterpolator.h>
Inheritance diagram for QwavPeakInterpolator:
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 () |
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.
|
Standard constructor. Does nothing. |
|
Destructor. |
|
Returns the name of this interpolation strategy. Have to be implemented in subclasses to return a unique name (e.g. the class name).
Implemented in QwavDefaultPeakInterpolator, and QwavExperimentalPeakInterpolation. |
|
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.
Implemented in QwavDefaultPeakInterpolator, and QwavExperimentalPeakInterpolation. |