diff layer/Colour3DPlotRenderer.h @ 1469:11a150e65ee1 by-id

Some work on updating layers for ModelId bits
author Chris Cannam
date Thu, 27 Jun 2019 13:16:25 +0100
parents 7d28e7522dbd
children 886c1cd48f9d
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h	Thu Jun 13 15:35:01 2019 +0100
+++ b/layer/Colour3DPlotRenderer.h	Thu Jun 27 13:16:25 2019 +0100
@@ -23,16 +23,16 @@
 #include "base/ColumnOp.h"
 #include "base/MagnitudeRange.h"
 
+#include "data/model/Model.h"
+
 #include <QRect>
 #include <QPainter>
 #include <QImage>
 
 class LayerGeometryProvider;
 class VerticalBinLayer;
-class DenseThreeDimensionalModel;
+class RenderTimer;
 class Dense3DModelPeakCache;
-class FFTModel;
-class RenderTimer;
 
 enum class BinDisplay {
     AllBins,
@@ -49,12 +49,12 @@
 {
 public:
     struct Sources {
-        Sources() : verticalBinLayer(0), source(0), fft(0) { }
+        Sources() : verticalBinLayer(0) { }
         
         // These must all outlive this class
-        const VerticalBinLayer *verticalBinLayer;  // always
-        const DenseThreeDimensionalModel *source;  // always
-        const FFTModel *fft;                       // optionally
+        const VerticalBinLayer *verticalBinLayer; // always
+        ModelId source; // always; a DenseThreeDimensionalModel
+        ModelId fft; // optionally
         std::vector<Dense3DModelPeakCache *> peakCaches; // zero or more
     };