comparison data/model/Model.h @ 935:f960d67ce842 tonioni

Merge from branch warnfix_no_size_t
author Chris Cannam
date Wed, 18 Jun 2014 13:42:01 +0100
parents d03b3d956358
children cc27f35aa75c
comparison
equal deleted inserted replaced
925:3efc20c59a94 935:f960d67ce842
48 virtual bool isOK() const = 0; 48 virtual bool isOK() const = 0;
49 49
50 /** 50 /**
51 * Return the first audio frame spanned by the model. 51 * Return the first audio frame spanned by the model.
52 */ 52 */
53 virtual size_t getStartFrame() const = 0; 53 virtual int getStartFrame() const = 0;
54 54
55 /** 55 /**
56 * Return the last audio frame spanned by the model. 56 * Return the last audio frame spanned by the model.
57 */ 57 */
58 virtual size_t getEndFrame() const = 0; 58 virtual int getEndFrame() const = 0;
59 59
60 /** 60 /**
61 * Return the frame rate in frames per second. 61 * Return the frame rate in frames per second.
62 */ 62 */
63 virtual size_t getSampleRate() const = 0; 63 virtual int getSampleRate() const = 0;
64 64
65 /** 65 /**
66 * Return the frame rate of the underlying material, if the model 66 * Return the frame rate of the underlying material, if the model
67 * itself has already been resampled. 67 * itself has already been resampled.
68 */ 68 */
69 virtual size_t getNativeRate() const { return getSampleRate(); } 69 virtual int getNativeRate() const { return getSampleRate(); }
70 70
71 /** 71 /**
72 * Return the "work title" of the model, if known. 72 * Return the "work title" of the model, if known.
73 */ 73 */
74 virtual QString getTitle() const; 74 virtual QString getTitle() const;
198 198
199 /** 199 /**
200 * Return the frame number of the reference model that corresponds 200 * Return the frame number of the reference model that corresponds
201 * to the given frame number in this model. 201 * to the given frame number in this model.
202 */ 202 */
203 virtual size_t alignToReference(size_t frame) const; 203 virtual int alignToReference(int frame) const;
204 204
205 /** 205 /**
206 * Return the frame number in this model that corresponds to the 206 * Return the frame number in this model that corresponds to the
207 * given frame number of the reference model. 207 * given frame number of the reference model.
208 */ 208 */
209 virtual size_t alignFromReference(size_t referenceFrame) const; 209 virtual int alignFromReference(int referenceFrame) const;
210 210
211 /** 211 /**
212 * Return the completion percentage for the alignment model: 100 212 * Return the completion percentage for the alignment model: 100
213 * if there is no alignment model or it has been entirely 213 * if there is no alignment model or it has been entirely
214 * calculated, or less than 100 if it is still being calculated. 214 * calculated, or less than 100 if it is still being calculated.
232 virtual void toXml(QTextStream &stream, 232 virtual void toXml(QTextStream &stream,
233 QString indent = "", 233 QString indent = "",
234 QString extraAttributes = "") const; 234 QString extraAttributes = "") const;
235 235
236 virtual QString toDelimitedDataString(QString delimiter) const { 236 virtual QString toDelimitedDataString(QString delimiter) const {
237 return toDelimitedDataString(delimiter, getStartFrame(), getEndFrame()); 237 return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame());
238 } 238 }
239 virtual QString toDelimitedDataString(QString, size_t /* f0 */, size_t /* f1 */) const { 239 virtual QString toDelimitedDataStringSubset(QString, int /* f0 */, int /* f1 */) const {
240 return ""; 240 return "";
241 } 241 }
242 242
243 public slots: 243 public slots:
244 void aboutToDelete(); 244 void aboutToDelete();
253 253
254 /** 254 /**
255 * Emitted when a model has been edited (or more data retrieved 255 * Emitted when a model has been edited (or more data retrieved
256 * from cache, in the case of a cached model that generates slowly) 256 * from cache, in the case of a cached model that generates slowly)
257 */ 257 */
258 void modelChanged(size_t startFrame, size_t endFrame); 258 void modelChangedWithin(int startFrame, int endFrame);
259 259
260 /** 260 /**
261 * Emitted when some internal processing has advanced a stage, but 261 * Emitted when some internal processing has advanced a stage, but
262 * the model has not changed externally. Views should respond by 262 * the model has not changed externally. Views should respond by
263 * updating any progress meters or other monitoring, but not 263 * updating any progress meters or other monitoring, but not