comparison data/model/ImageModel.h @ 384:6f6ab834449d spectrogram-cache-rejig

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents 7a4bd2c8585c
children
comparison
equal deleted inserted replaced
337:a6fab10ff9e6 384:6f6ab834449d
36 int getDimensions() const { return 1; } 36 int getDimensions() const { return 1; }
37 37
38 long frame; 38 long frame;
39 QString image; 39 QString image;
40 QString label; 40 QString label;
41
42 QString getLabel() const { return label; }
41 43
42 void toXml(QTextStream &stream, 44 void toXml(QTextStream &stream,
43 QString indent = "", 45 QString indent = "",
44 QString extraAttributes = "") const 46 QString extraAttributes = "") const
45 { 47 {
85 public: 87 public:
86 ImageModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : 88 ImageModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) :
87 SparseModel<ImagePoint>(sampleRate, resolution, notifyOnAdd) 89 SparseModel<ImagePoint>(sampleRate, resolution, notifyOnAdd)
88 { } 90 { }
89 91
92 QString getTypeName() const { return tr("Image"); }
93
90 virtual void toXml(QTextStream &out, 94 virtual void toXml(QTextStream &out,
91 QString indent = "", 95 QString indent = "",
92 QString extraAttributes = "") const 96 QString extraAttributes = "") const
93 { 97 {
94 SparseModel<ImagePoint>::toXml 98 SparseModel<ImagePoint>::toXml