diff layer/VerticalBinLayer.h @ 1113:261a00010918 spectrogram-minor-refactor

Consts and willRenderOpaque
author Chris Cannam
date Tue, 19 Jul 2016 14:49:46 +0100
parents 953ce409ccfb
children 4eafe5a1b655
line wrap: on
line diff
--- a/layer/VerticalBinLayer.h	Tue Jul 19 10:12:30 2016 +0100
+++ b/layer/VerticalBinLayer.h	Tue Jul 19 14:49:46 2016 +0100
@@ -33,12 +33,12 @@
      * and the vertical scale is the usual way up). Bin number may be
      * fractional, to obtain a position part-way through a bin.
      */
-    virtual double getYForBin(LayerGeometryProvider *, double bin) const = 0;
+    virtual double getYForBin(const LayerGeometryProvider *, double bin) const = 0;
 
     /**
      * As getYForBin, but rounding to integer values.
      */
-    virtual int getIYForBin(LayerGeometryProvider *v, int bin) const {
+    virtual int getIYForBin(const LayerGeometryProvider *v, int bin) const {
         return int(round(getYForBin(v, bin)));
     }
     
@@ -48,12 +48,12 @@
      * at which the bins "start" (i.e. the bottom of the visible bin,
      * if the vertical scale is the usual way up).
      */
-    virtual double getBinForY(LayerGeometryProvider *, double y) const = 0;
+    virtual double getBinForY(const LayerGeometryProvider *, double y) const = 0;
 
     /**
      * As getBinForY, but rounding to integer values.
      */
-    virtual int getIBinForY(LayerGeometryProvider *v, int y) const {
+    virtual int getIBinForY(const LayerGeometryProvider *v, int y) const {
         return int(floor(getBinForY(v, y)));
     }
 };