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

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents 1afaf98dbf11
children
comparison
equal deleted inserted replaced
337:a6fab10ff9e6 384:6f6ab834449d
130 virtual void setCompletion(int completion, bool update = true); 130 virtual void setCompletion(int completion, bool update = true);
131 virtual int getCompletion() const { return m_completion; } 131 virtual int getCompletion() const { return m_completion; }
132 132
133 virtual bool hasTextLabels() const { return m_hasTextLabels; } 133 virtual bool hasTextLabels() const { return m_hasTextLabels; }
134 134
135 QString getTypeName() const { return tr("Sparse"); }
136
135 virtual void toXml(QTextStream &out, 137 virtual void toXml(QTextStream &out,
136 QString indent = "", 138 QString indent = "",
137 QString extraAttributes = "") const; 139 QString extraAttributes = "") const;
138 140
139 virtual QString toDelimitedDataString(QString delimiter) const 141 virtual QString toDelimitedDataString(QString delimiter) const
460 { 462 {
461 { 463 {
462 QMutexLocker locker(&m_mutex); 464 QMutexLocker locker(&m_mutex);
463 m_points.insert(point); 465 m_points.insert(point);
464 m_pointCount++; 466 m_pointCount++;
465 if (point.label != "") m_hasTextLabels = true; 467 if (point.getLabel() != "") m_hasTextLabels = true;
466 } 468 }
467 469
468 // Even though this model is nominally sparse, there may still be 470 // Even though this model is nominally sparse, there may still be
469 // too many signals going on here (especially as they'll probably 471 // too many signals going on here (especially as they'll probably
470 // be queued from one thread to another), which is why we need the 472 // be queued from one thread to another), which is why we need the