comparison layer/Colour3DPlotLayer.h @ 1563:563bab925c9b spectrogram-export

Use Colour3DPlotExporter in line with SpectrogramLayer
author Chris Cannam
date Thu, 09 Jan 2020 14:35:55 +0000
parents e6362cf5ff1d
children
comparison
equal deleted inserted replaced
1562:3b45788b7804 1563:563bab925c9b
45 public: 45 public:
46 Colour3DPlotLayer(); 46 Colour3DPlotLayer();
47 ~Colour3DPlotLayer(); 47 ~Colour3DPlotLayer();
48 48
49 ModelId getModel() const override { return m_model; } 49 ModelId getModel() const override { return m_model; }
50
51 ModelId getExportModel(LayerGeometryProvider *) const override;
50 52
51 const ZoomConstraint *getZoomConstraint() const override; 53 const ZoomConstraint *getZoomConstraint() const override;
52 54
53 void paint(LayerGeometryProvider *v, 55 void paint(LayerGeometryProvider *v,
54 QPainter &paint, QRect rect) const override; 56 QPainter &paint, QRect rect) const override;
190 mutable ModelId m_peakCache; 192 mutable ModelId m_peakCache;
191 const int m_peakCacheDivisor; 193 const int m_peakCacheDivisor;
192 void invalidatePeakCache(); 194 void invalidatePeakCache();
193 ModelId getPeakCache() const; 195 ModelId getPeakCache() const;
194 196
197 mutable std::vector<ModelId> m_exporters; // used, waiting to be released
198
195 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id 199 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id
196 mutable ViewMagMap m_viewMags; 200 mutable ViewMagMap m_viewMags;
197 mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode 201 mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode
198 void invalidateMagnitudes(); 202 void invalidateMagnitudes();
199 203