Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.h @ 1453:39f1154c0e97 single-point
Smoother cache & colour management in colour 3d plots
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 13:42:18 +0100 |
parents | a18e78b9c78b |
children | 11a150e65ee1 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Fri May 03 17:45:39 2019 +0100 +++ b/layer/Colour3DPlotLayer.h Thu May 09 13:42:18 2019 +0100 @@ -129,6 +129,8 @@ void setSmooth(bool i); bool getSmooth() const; + bool hasLightBackground() const override; + bool getValueExtents(double &min, double &max, bool &logarithmic, QString &unit) const override; @@ -149,10 +151,8 @@ QString extraAttributes = "") const override; protected slots: - void cacheInvalid(); - void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); - void modelChanged(); - void modelChangedWithin(sv_frame_t, sv_frame_t); + void handleModelChanged(); + void handleModelChangedWithin(sv_frame_t, sv_frame_t); protected: const DenseThreeDimensionalModel *m_model; // I do not own this @@ -185,6 +185,7 @@ mutable Dense3DModelPeakCache *m_peakCache; const int m_peakCacheDivisor; Dense3DModelPeakCache *getPeakCache() const; + void invalidatePeakCache(); typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id mutable ViewMagMap m_viewMags;