comparison layer/Colour3DPlotLayer.h @ 461:272e58f0bf8b sv-v1.4 sv-v1.4rc1

* Knock a bit of sense into Colour3DPlotLayer's cache management
author Chris Cannam
date Mon, 08 Dec 2008 13:06:44 +0000
parents e5800f4490c4
children b77b79413cdb
comparison
equal deleted inserted replaced
460:5f9a257598d8 461:272e58f0bf8b
116 QString extraAttributes = "") const; 116 QString extraAttributes = "") const;
117 117
118 protected slots: 118 protected slots:
119 void cacheInvalid(); 119 void cacheInvalid();
120 void cacheInvalid(size_t startFrame, size_t endFrame); 120 void cacheInvalid(size_t startFrame, size_t endFrame);
121 void modelChanged();
122 void modelChanged(size_t, size_t);
121 123
122 protected: 124 protected:
123 const DenseThreeDimensionalModel *m_model; // I do not own this 125 const DenseThreeDimensionalModel *m_model; // I do not own this
124 126
125 mutable QImage *m_cache; 127 mutable QImage *m_cache;
126 mutable size_t m_cacheStart; 128 mutable size_t m_cacheValidStart;
129 mutable size_t m_cacheValidEnd;
127 130
128 ColourScale m_colourScale; 131 ColourScale m_colourScale;
132 bool m_colourScaleSet;
129 int m_colourMap; 133 int m_colourMap;
130 bool m_normalizeColumns; 134 bool m_normalizeColumns;
131 bool m_normalizeVisibleArea; 135 bool m_normalizeVisibleArea;
132 bool m_invertVertical; 136 bool m_invertVertical;
133 137