Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 469:9863f9a36cc2
* some tweaks that make Colour3DPlotLayer a little bit faster for
very dense models
author | Chris Cannam |
---|---|
date | Fri, 23 Jan 2009 15:11:40 +0000 |
parents | 76a47146f1f6 |
children | 13e8edbffbd7 |
comparison
equal
deleted
inserted
replaced
468:762e96217900 | 469:9863f9a36cc2 |
---|---|
126 | 126 |
127 protected: | 127 protected: |
128 const DenseThreeDimensionalModel *m_model; // I do not own this | 128 const DenseThreeDimensionalModel *m_model; // I do not own this |
129 | 129 |
130 mutable QImage *m_cache; | 130 mutable QImage *m_cache; |
131 mutable QImage *m_peaksCache; | |
131 mutable size_t m_cacheValidStart; | 132 mutable size_t m_cacheValidStart; |
132 mutable size_t m_cacheValidEnd; | 133 mutable size_t m_cacheValidEnd; |
133 | 134 |
134 ColourScale m_colourScale; | 135 ColourScale m_colourScale; |
135 bool m_colourScaleSet; | 136 bool m_colourScaleSet; |
136 int m_colourMap; | 137 int m_colourMap; |
137 bool m_normalizeColumns; | 138 bool m_normalizeColumns; |
138 bool m_normalizeVisibleArea; | 139 bool m_normalizeVisibleArea; |
139 bool m_invertVertical; | 140 bool m_invertVertical; |
140 bool m_opaque; | 141 bool m_opaque; |
142 size_t m_peakResolution; | |
141 | 143 |
142 int m_miny; | 144 int m_miny; |
143 int m_maxy; | 145 int m_maxy; |
144 | 146 |
145 DenseThreeDimensionalModel::Column getColumn(size_t col) const; | 147 DenseThreeDimensionalModel::Column getColumn(size_t col) const; |
146 | 148 |
147 virtual int getColourScaleWidth(QPainter &) const; | 149 int getColourScaleWidth(QPainter &) const; |
148 virtual void fillCache(size_t firstBin, size_t lastBin) const; | 150 void fillCache(size_t firstBin, size_t lastBin) const; |
149 virtual void paintDense(View *v, QPainter &paint, QRect rect) const; | 151 void paintDense(View *v, QPainter &paint, QRect rect) const; |
150 }; | 152 }; |
151 | 153 |
152 #endif | 154 #endif |