Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Wed Jan 24 17:14:24 2007 +0000 +++ b/layer/Colour3DPlotLayer.h Fri Jan 26 16:59:57 2007 +0000 @@ -16,7 +16,7 @@ #ifndef _COLOUR_3D_PLOT_H_ #define _COLOUR_3D_PLOT_H_ -#include "Layer.h" +#include "SliceableLayer.h" #include "data/model/DenseThreeDimensionalModel.h" @@ -37,7 +37,7 @@ * ever actually used. */ -class Colour3DPlotLayer : public Layer +class Colour3DPlotLayer : public SliceableLayer { Q_OBJECT @@ -88,6 +88,8 @@ void setColourScale(ColourScale); ColourScale getColourScale() const { return m_colourScale; } + virtual const Model *getSliceableModel() const { return m_model; } + protected slots: void cacheInvalid(); void cacheInvalid(size_t startFrame, size_t endFrame);