comparison layer/SliceLayer.h @ 197:6b023411087b

* Work on harmonising colour and scale ranges between types of layer * Add normalize options to colour 3d plot layer
author Chris Cannam
date Thu, 01 Feb 2007 14:31:28 +0000
parents 4a3bdde1ef13
children c2ed5014d4ff
comparison
equal deleted inserted replaced
196:22c99c8aa1e0 197:6b023411087b
63 63
64 enum EnergyScale { LinearScale, MeterScale, dBScale }; 64 enum EnergyScale { LinearScale, MeterScale, dBScale };
65 65
66 enum SamplingMode { NearestSample, SampleMean, SamplePeak }; 66 enum SamplingMode { NearestSample, SampleMean, SamplePeak };
67 67
68 enum PlotStyle { PlotLines, PlotSteps, PlotBlocks }; 68 enum PlotStyle { PlotLines, PlotSteps, PlotBlocks, PlotFilledBlocks };
69 69
70 enum BinScale { LinearBins, LogBins, InvertedLogBins }; 70 enum BinScale { LinearBins, LogBins, InvertedLogBins };
71 71
72 void setBaseColour(QColor); 72 void setBaseColour(QColor);
73 QColor getBaseColour() const { return m_colour; } 73 QColor getBaseColour() const { return m_colour; }
74
75 void setFillColourMap(int);
76 int getFillColourMap() const { return m_colourMap; }
74 77
75 void setEnergyScale(EnergyScale); 78 void setEnergyScale(EnergyScale);
76 EnergyScale getEnergyScale() const { return m_energyScale; } 79 EnergyScale getEnergyScale() const { return m_energyScale; }
77 80
78 void setSamplingMode(SamplingMode); 81 void setSamplingMode(SamplingMode);
98 void modelAboutToBeDeleted(Model *); 101 void modelAboutToBeDeleted(Model *);
99 102
100 protected: 103 protected:
101 const DenseThreeDimensionalModel *m_sliceableModel; 104 const DenseThreeDimensionalModel *m_sliceableModel;
102 QColor m_colour; 105 QColor m_colour;
106 int m_colourMap;
103 EnergyScale m_energyScale; 107 EnergyScale m_energyScale;
104 SamplingMode m_samplingMode; 108 SamplingMode m_samplingMode;
105 PlotStyle m_plotStyle; 109 PlotStyle m_plotStyle;
106 BinScale m_binScale; 110 BinScale m_binScale;
107 bool m_normalize; 111 bool m_normalize;