diff layer/SpectrogramLayer.h @ 1103:d84a0033b305 spectrogram-minor-refactor

Turn BinDisplay and BinScale into enum classes
author Chris Cannam
date Thu, 14 Jul 2016 15:13:37 +0100
parents cd22f74dc159
children 46cc4644206d
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Wed Jul 13 13:44:11 2016 +0100
+++ b/layer/SpectrogramLayer.h	Thu Jul 14 15:13:37 2016 +0100
@@ -149,14 +149,14 @@
     /**
      * Specify the scale for the y axis.
      */
-    void setBinScale(Colour3DPlotRenderer::BinScale);
-    Colour3DPlotRenderer::BinScale getBinScale() const;
+    void setBinScale(BinScale);
+    BinScale getBinScale() const;
 
     /**
      * Specify the processing of frequency bins for the y axis.
      */
-    void setBinDisplay(Colour3DPlotRenderer::BinDisplay);
-    Colour3DPlotRenderer::BinDisplay getBinDisplay() const;
+    void setBinDisplay(BinDisplay);
+    BinDisplay getBinDisplay() const;
 
     /**
      * Specify the normalization mode for bin values.
@@ -247,8 +247,8 @@
     ColourScale::Scale  m_colourScale;
     int                 m_colourMap;
     QColor              m_crosshairColour;
-    Colour3DPlotRenderer::BinScale m_binScale;
-    Colour3DPlotRenderer::BinDisplay m_binDisplay;
+    BinScale m_binScale;
+    BinDisplay m_binDisplay;
     ColumnOp::Normalization m_normalization;
     int                 m_lastEmittedZoomStep;
     bool                m_synchronous;