comparison layer/Layer.h @ 274:b9380f679f70

* Fix centre line position * Fix failure to update overview when generating peaks from wav file * Provide y-coordinate scale values and differences for spectrum measurement mode, and fix values for waveform (inc dB for both) * Add Printer colour scheme (may be futile)
author Chris Cannam
date Mon, 02 Jul 2007 13:04:17 +0000
parents e954c00cbe55
children 3c402c6052f6
comparison
equal deleted inserted replaced
273:e954c00cbe55 274:b9380f679f70
365 float &/* value */, QString &/* unit */) const { 365 float &/* value */, QString &/* unit */) const {
366 return false; 366 return false;
367 } 367 }
368 368
369 /** 369 /**
370 * Return the difference between the values at the given y
371 * coordinates in the given view, and the unit of the difference.
372 * The default implementation just calls getYScaleValue twice and
373 * returns the difference, with the same unit.
374 */
375 virtual bool getYScaleDifference(const View *v, int y0, int y1,
376 float &diff, QString &unit) const;
377
378 /**
370 * Get the number of vertical zoom steps available for this layer. 379 * Get the number of vertical zoom steps available for this layer.
371 * If vertical zooming is not available, return 0. The meaning of 380 * If vertical zooming is not available, return 0. The meaning of
372 * "zooming" is entirely up to the layer -- changing the zoom 381 * "zooming" is entirely up to the layer -- changing the zoom
373 * level may cause the layer to reset its display extents or 382 * level may cause the layer to reset its display extents or
374 * change another property such as display gain. However, layers 383 * change another property such as display gain. However, layers