diff layer/ColourScale.cpp @ 1079:7ebfb61b1701 spectrogram-minor-refactor

More filling in render & cache code
author Chris Cannam
date Thu, 30 Jun 2016 15:46:14 +0100
parents 65b183494331
children ea5ae9dd10ba
line wrap: on
line diff
--- a/layer/ColourScale.cpp	Thu Jun 30 12:40:22 2016 +0100
+++ b/layer/ColourScale.cpp	Thu Jun 30 15:46:14 2016 +0100
@@ -60,8 +60,14 @@
 {
 }
 
+ColourScale::Scale
+ColourScale::getScale() const
+{
+    return m_params.scale;
+}
+
 int
-ColourScale::getPixel(double value)
+ColourScale::getPixel(double value) const
 {
     double maxPixF = m_maxPixel;
 
@@ -112,7 +118,7 @@
 }
 
 QColor
-ColourScale::getColourForPixel(int pixel, int rotation)
+ColourScale::getColourForPixel(int pixel, int rotation) const
 {
     if (pixel < 0) {
 	pixel = 0;