comparison layer/Colour3DPlotLayer.h @ 1068:521f7e8b0559 spectrogram-minor-refactor

Introduce ColourScale to handle colour mapping for both spectrogram and colour 3d plot layers
author Chris Cannam
date Thu, 23 Jun 2016 14:42:37 +0100
parents 7242fe160c19
children 5b4fe7bb9430
comparison
equal deleted inserted replaced
1067:6eb9e032e708 1068:521f7e8b0559
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _COLOUR_3D_PLOT_H_ 16 #ifndef COLOUR_3D_PLOT_LAYER_H
17 #define _COLOUR_3D_PLOT_H_ 17 #define COLOUR_3D_PLOT_LAYER_H
18 18
19 #include "SliceableLayer.h" 19 #include "SliceableLayer.h"
20 20
21 #include "data/model/DenseThreeDimensionalModel.h" 21 #include "data/model/DenseThreeDimensionalModel.h"
22 22
28 * This is a view that displays dense 3-D data (time, some sort of 28 * This is a view that displays dense 3-D data (time, some sort of
29 * binned y-axis range, value) as a colour plot with value mapped to 29 * binned y-axis range, value) as a colour plot with value mapped to
30 * colour range. Its source is a DenseThreeDimensionalModel. 30 * colour range. Its source is a DenseThreeDimensionalModel.
31 * 31 *
32 * This was the original implementation for the spectrogram view, but 32 * This was the original implementation for the spectrogram view, but
33 * it was replaced with a more efficient implementation that derived 33 * it was replaced for that purpose with a more efficient
34 * the spectrogram itself from a DenseTimeValueModel instead of using 34 * implementation that derived the spectrogram itself from a
35 * a three-dimensional model. This class is retained in case it 35 * DenseTimeValueModel instead of using a three-dimensional model.
36 * becomes useful, but it will probably need some cleaning up if it's
37 * ever actually used.
38 */ 36 */
39
40 class Colour3DPlotLayer : public SliceableLayer 37 class Colour3DPlotLayer : public SliceableLayer
41 { 38 {
42 Q_OBJECT 39 Q_OBJECT
43 40
44 public: 41 public: