comparison layer/Colour3DPlotLayer.h @ 193:57c2350a8c40

* Add slice layers (so you can display a slice of a colour 3d plot as if it were a spectrum) * Make spectrum layer a subclass of slice layer
author Chris Cannam
date Fri, 26 Jan 2007 16:59:57 +0000
parents 5f86ae638b04
children 6b023411087b
comparison
equal deleted inserted replaced
192:fcc043f75c41 193:57c2350a8c40
14 */ 14 */
15 15
16 #ifndef _COLOUR_3D_PLOT_H_ 16 #ifndef _COLOUR_3D_PLOT_H_
17 #define _COLOUR_3D_PLOT_H_ 17 #define _COLOUR_3D_PLOT_H_
18 18
19 #include "Layer.h" 19 #include "SliceableLayer.h"
20 20
21 #include "data/model/DenseThreeDimensionalModel.h" 21 #include "data/model/DenseThreeDimensionalModel.h"
22 22
23 class View; 23 class View;
24 class QPainter; 24 class QPainter;
35 * a three-dimensional model. This class is retained in case it 35 * a three-dimensional model. This class is retained in case it
36 * becomes useful, but it will probably need some cleaning up if it's 36 * becomes useful, but it will probably need some cleaning up if it's
37 * ever actually used. 37 * ever actually used.
38 */ 38 */
39 39
40 class Colour3DPlotLayer : public Layer 40 class Colour3DPlotLayer : public SliceableLayer
41 { 41 {
42 Q_OBJECT 42 Q_OBJECT
43 43
44 public: 44 public:
45 Colour3DPlotLayer(); 45 Colour3DPlotLayer();
86 enum ColourScale { LinearScale, AbsoluteScale, MeterScale, dBScale }; 86 enum ColourScale { LinearScale, AbsoluteScale, MeterScale, dBScale };
87 87
88 void setColourScale(ColourScale); 88 void setColourScale(ColourScale);
89 ColourScale getColourScale() const { return m_colourScale; } 89 ColourScale getColourScale() const { return m_colourScale; }
90 90
91 virtual const Model *getSliceableModel() const { return m_model; }
92
91 protected slots: 93 protected slots:
92 void cacheInvalid(); 94 void cacheInvalid();
93 void cacheInvalid(size_t startFrame, size_t endFrame); 95 void cacheInvalid(size_t startFrame, size_t endFrame);
94 96
95 protected: 97 protected: