comparison data/model/DenseTimeValueModel.h @ 874:862fe7b20df7 tony_integration

Merge from tonioni branch
author Chris Cannam
date Tue, 28 Jan 2014 15:01:54 +0000
parents 3a3541b357fe
children 59e7fe1b1003
comparison
equal deleted inserted replaced
862:786ee8d1f30e 874:862fe7b20df7
20 20
21 #include "Model.h" 21 #include "Model.h"
22 22
23 /** 23 /**
24 * Base class for models containing dense two-dimensional data (value 24 * Base class for models containing dense two-dimensional data (value
25 * against time). For example, audio waveform data. 25 * against time). For example, audio waveform data. Other time-value
26 * plot data, especially if editable, will normally go into a
27 * SparseTimeValueModel instead even if regularly sampled.
26 */ 28 */
27 29
28 class DenseTimeValueModel : public Model 30 class DenseTimeValueModel : public Model
29 { 31 {
30 Q_OBJECT 32 Q_OBJECT
81 virtual size_t getData(size_t fromchannel, size_t tochannel, 83 virtual size_t getData(size_t fromchannel, size_t tochannel,
82 size_t start, size_t count, 84 size_t start, size_t count,
83 float **buffers) const = 0; 85 float **buffers) const = 0;
84 86
85 virtual bool canPlay() const { return true; } 87 virtual bool canPlay() const { return true; }
86 virtual QString getDefaultPlayPluginId() const { return ""; } 88 virtual QString getDefaultPlayClipId() const { return ""; }
87 virtual QString getDefaultPlayPluginConfiguration() const { return ""; }
88 89
89 virtual QString toDelimitedDataString(QString delimiter, size_t f0, size_t f1) const; 90 virtual QString toDelimitedDataString(QString delimiter, size_t f0, size_t f1) const;
90 91
91 QString getTypeName() const { return tr("Dense Time-Value"); } 92 QString getTypeName() const { return tr("Dense Time-Value"); }
92 }; 93 };