Mercurial > hg > svcore
comparison data/model/RegionModel.h @ 631:3a5ee4b6c9ad
* Complete the overhaul of CSV file import; now you can pick the purpose for
each column in the file, and SV should do the rest. The most significant
practical improvement here is that we can now handle files in which time
and duration do not necessarily appear in known columns.
author | Chris Cannam |
---|---|
date | Mon, 19 Jul 2010 17:08:56 +0000 |
parents | 080d8bdd8762 |
children | e22b6e89a7f7 |
comparison
equal
deleted
inserted
replaced
630:11a664058dd8 | 631:3a5ee4b6c9ad |
---|---|
34 */ | 34 */ |
35 | 35 |
36 struct RegionRec | 36 struct RegionRec |
37 { | 37 { |
38 public: | 38 public: |
39 RegionRec() : frame(0), value(0.f), duration(0) { } | |
39 RegionRec(long _frame) : frame(_frame), value(0.0f), duration(0) { } | 40 RegionRec(long _frame) : frame(_frame), value(0.0f), duration(0) { } |
40 RegionRec(long _frame, float _value, size_t _duration, QString _label) : | 41 RegionRec(long _frame, float _value, size_t _duration, QString _label) : |
41 frame(_frame), value(_value), duration(_duration), label(_label) { } | 42 frame(_frame), value(_value), duration(_duration), label(_label) { } |
42 | 43 |
43 int getDimensions() const { return 3; } | 44 int getDimensions() const { return 3; } |