Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 535:78f9436195b1
* Add smoothing option to colour 3d plot
| author | Chris Cannam |
|---|---|
| date | Fri, 22 May 2009 13:54:45 +0000 |
| parents | 7a560380b6e2 |
| children | 5b72899d692b |
comparison
equal
deleted
inserted
replaced
| 534:7a560380b6e2 | 535:78f9436195b1 |
|---|---|
| 126 bool getInvertVertical() const; | 126 bool getInvertVertical() const; |
| 127 | 127 |
| 128 void setOpaque(bool i); | 128 void setOpaque(bool i); |
| 129 bool getOpaque() const; | 129 bool getOpaque() const; |
| 130 | 130 |
| 131 void setSmooth(bool i); | |
| 132 bool getSmooth() const; | |
| 133 | |
| 131 virtual bool getValueExtents(float &min, float &max, | 134 virtual bool getValueExtents(float &min, float &max, |
| 132 bool &logarithmic, QString &unit) const; | 135 bool &logarithmic, QString &unit) const; |
| 133 | 136 |
| 134 virtual bool getDisplayExtents(float &min, float &max) const; | 137 virtual bool getDisplayExtents(float &min, float &max) const; |
| 135 virtual bool setDisplayExtents(float min, float max); | 138 virtual bool setDisplayExtents(float min, float max); |
| 165 BinScale m_binScale; | 168 BinScale m_binScale; |
| 166 bool m_normalizeColumns; | 169 bool m_normalizeColumns; |
| 167 bool m_normalizeVisibleArea; | 170 bool m_normalizeVisibleArea; |
| 168 bool m_invertVertical; | 171 bool m_invertVertical; |
| 169 bool m_opaque; | 172 bool m_opaque; |
| 173 bool m_smooth; | |
| 170 size_t m_peakResolution; | 174 size_t m_peakResolution; |
| 171 | 175 |
| 172 int m_miny; | 176 int m_miny; |
| 173 int m_maxy; | 177 int m_maxy; |
| 174 | 178 |
| 175 DenseThreeDimensionalModel::Column getColumn(size_t col) const; | 179 DenseThreeDimensionalModel::Column getColumn(size_t col) const; |
| 176 | 180 |
| 177 int getColourScaleWidth(QPainter &) const; | 181 int getColourScaleWidth(QPainter &) const; |
| 178 void fillCache(size_t firstBin, size_t lastBin) const; | 182 void fillCache(size_t firstBin, size_t lastBin) const; |
| 179 void paintDense(View *v, QPainter &paint, QRect rect) const; | 183 void paintDense(View *v, QPainter &paint, QRect rect) const; |
| 180 void paintSmooth(View *v, QPainter &paint, QRect rect) const; | |
| 181 | 184 |
| 182 float getYForBin(View *, float bin) const; | 185 float getYForBin(View *, float bin) const; |
| 183 float getBinForY(View *, float y) const; | 186 float getBinForY(View *, float y) const; |
| 184 }; | 187 }; |
| 185 | 188 |
