diff layer/Colour3DPlotRenderer.h @ 1502:62aad7969f8b

Pass the cache pointer through rather than looking it up afresh from the model id for each column
author Chris Cannam
date Thu, 12 Sep 2019 11:53:17 +0100
parents 886c1cd48f9d
children
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h	Wed Sep 11 20:36:04 2019 +0100
+++ b/layer/Colour3DPlotRenderer.h	Thu Sep 12 11:53:17 2019 +0100
@@ -33,6 +33,7 @@
 class VerticalBinLayer;
 class RenderTimer;
 class Dense3DModelPeakCache;
+class DenseThreeDimensionalModel;
 
 enum class BinDisplay {
     AllBins,
@@ -323,9 +324,9 @@
         const;
     
     ColumnOp::Column getColumn(int sx, int minbin, int nbins,
-                               int peakCacheIndex) const; // -1 => don't use cache
+                               std::shared_ptr<DenseThreeDimensionalModel> source) const;
     ColumnOp::Column getColumnRaw(int sx, int minbin, int nbins,
-                                  int peakCacheIndex) const; // -1 => don't use cache
+                                  std::shared_ptr<DenseThreeDimensionalModel> source) const;
 
     void getPreferredPeakCache(const LayerGeometryProvider *,
                                int &peakCacheIndex, int &binsPerPeak) const;