diff layer/SpectrogramLayer.h @ 28:202d1dca67d2

* Rationalise the local feature identification API in Layer subclasses * Add segmentation mode to TimeInstantLayer
author Chris Cannam
date Mon, 06 Feb 2006 17:24:52 +0000
parents dcdb21b62dbb
children 9f55af9676b4
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Fri Feb 03 17:30:47 2006 +0000
+++ b/layer/SpectrogramLayer.h	Mon Feb 06 17:24:52 2006 +0000
@@ -53,9 +53,9 @@
 
     virtual QString getFeatureDescription(QPoint &) const;
 
-    virtual int getNearestFeatureFrame(int frame, 
-				       size_t &resolution,
-				       bool snapRight = true) const;
+    virtual bool snapToFeatureFrame(int &frame,
+				    size_t &resolution,
+				    SnapType snap) const;
 
     void setModel(const DenseTimeValueModel *model);