comparison layer/Layer.h @ 1522:d5ef91dc2ea7

Merge from branch time-frequency-boxes
author Chris Cannam
date Wed, 25 Sep 2019 13:48:04 +0100
parents 4eafe5a1b655
children 4f8c72adbf43
comparison
equal deleted inserted replaced
1510:872873aa6463 1522:d5ef91dc2ea7
486 double /* max */) { 486 double /* max */) {
487 return false; 487 return false;
488 } 488 }
489 489
490 /** 490 /**
491 * Consider using the given value extents and units for this
492 * layer. This may be called on a new layer when added, to prepare
493 * it for editing, and the extents are those of the layer
494 * underneath it. May not be appropriate for most layer types.
495 */
496 virtual bool adoptExtents(double /* min */, double /* max */,
497 QString /* unit */) {
498 return false;
499 }
500
501 /**
491 * Return the value and unit at the given x coordinate in the 502 * Return the value and unit at the given x coordinate in the
492 * given view. This is for descriptive purposes using the 503 * given view. This is for descriptive purposes using the
493 * measurement tool. The default implementation works correctly 504 * measurement tool. The default implementation works correctly
494 * if the layer hasTimeXAxis(). 505 * if the layer hasTimeXAxis().
495 */ 506 */