comparison data/model/EditableDenseThreeDimensionalModel.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents cc27f35aa75c
children 0fd3661bcfff
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
40 { 40 {
41 NoCompression, 41 NoCompression,
42 BasicMultirateCompression 42 BasicMultirateCompression
43 }; 43 };
44 44
45 EditableDenseThreeDimensionalModel(int sampleRate, 45 EditableDenseThreeDimensionalModel(sv_samplerate_t sampleRate,
46 int resolution, 46 int resolution,
47 int yBinCount, 47 int yBinCount,
48 CompressionType compression, 48 CompressionType compression,
49 bool notifyOnAdd = true); 49 bool notifyOnAdd = true);
50 50
51 virtual bool isOK() const; 51 virtual bool isOK() const;
52 52
53 virtual int getSampleRate() const; 53 virtual sv_samplerate_t getSampleRate() const;
54 virtual sv_frame_t getStartFrame() const; 54 virtual sv_frame_t getStartFrame() const;
55 virtual sv_frame_t getEndFrame() const; 55 virtual sv_frame_t getEndFrame() const;
56 56
57 virtual Model *clone() const; 57 virtual Model *clone() const;
58 58
215 std::vector<QString> m_binNames; 215 std::vector<QString> m_binNames;
216 std::vector<float> m_binValues; 216 std::vector<float> m_binValues;
217 QString m_binValueUnit; 217 QString m_binValueUnit;
218 218
219 sv_frame_t m_startFrame; 219 sv_frame_t m_startFrame;
220 int m_sampleRate; 220 sv_samplerate_t m_sampleRate;
221 int m_resolution; 221 int m_resolution;
222 int m_yBinCount; 222 int m_yBinCount;
223 CompressionType m_compression; 223 CompressionType m_compression;
224 float m_minimum; 224 float m_minimum;
225 float m_maximum; 225 float m_maximum;