Mercurial > hg > svgui
comparison layer/LayerFactory.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 | 9e6b3e239b9d |
children | 46faec7aae12 |
comparison
equal
deleted
inserted
replaced
192:fcc043f75c41 | 193:57c2350a8c40 |
---|---|
35 TimeValues, | 35 TimeValues, |
36 Notes, | 36 Notes, |
37 Text, | 37 Text, |
38 Colour3DPlot, | 38 Colour3DPlot, |
39 Spectrum, | 39 Spectrum, |
40 Slice, | |
40 | 41 |
41 // Layers with different initial parameters | 42 // Layers with different initial parameters |
42 MelodicRangeSpectrogram, | 43 MelodicRangeSpectrogram, |
43 PeakFrequencySpectrogram, | 44 PeakFrequencySpectrogram, |
44 | 45 |
57 LayerType getLayerType(const Layer *); | 58 LayerType getLayerType(const Layer *); |
58 | 59 |
59 Layer *createLayer(LayerType type); | 60 Layer *createLayer(LayerType type); |
60 | 61 |
61 QString getLayerPresentationName(LayerType type); | 62 QString getLayerPresentationName(LayerType type); |
63 | |
64 bool isLayerSliceable(const Layer *); | |
62 | 65 |
63 void setModel(Layer *layer, Model *model); | 66 void setModel(Layer *layer, Model *model); |
64 Model *createEmptyModel(LayerType type, Model *baseModel); | 67 Model *createEmptyModel(LayerType type, Model *baseModel); |
65 | 68 |
66 int getChannel(Layer *layer); | 69 int getChannel(Layer *layer); |