diff layer/Colour3DPlotRenderer.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 102f986ec032
children 46cc4644206d
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h	Wed Jul 13 13:44:11 2016 +0100
+++ b/layer/Colour3DPlotRenderer.h	Thu Jul 14 15:13:37 2016 +0100
@@ -32,20 +32,20 @@
 class Dense3DModelPeakCache;
 class FFTModel;
 
+enum class BinDisplay {
+    AllBins,
+    PeakBins,
+    PeakFrequencies
+};
+
+enum class BinScale {
+    Linear,
+    Log
+};
+
 class Colour3DPlotRenderer
 {
 public:
-    enum BinDisplay {
-	AllBins,
-	PeakBins,
-	PeakFrequencies
-    };
-
-    enum BinScale {
-	LinearBinScale,
-	LogBinScale
-    };
-
     struct Sources {
         Sources() : verticalBinLayer(0), source(0), peaks(0), fft(0) { }
         
@@ -60,8 +60,8 @@
 	Parameters() :
 	    colourScale(ColourScale::Parameters()),
 	    normalization(ColumnOp::NoNormalization),
-	    binDisplay(AllBins),
-            binScale(LinearBinScale),
+	    binDisplay(BinDisplay::AllBins),
+            binScale(BinScale::Linear),
 	    alwaysOpaque(false),
             interpolate(false), //!!! separate out x-interpolate and y-interpolate? the spectrogram actually does (or used to)
             invertVertical(false) { }