comparison data/model/AlignmentModel.h @ 1599:ce185d4dd408 bqaudiostream

Merge from default branch
author Chris Cannam
date Wed, 23 Jan 2019 14:43:43 +0000
parents ad5f892c0c4d
children 82d03c9661f9 901f37d32060
comparison
equal deleted inserted replaced
1598:d2555df635ec 1599:ce185d4dd408
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _ALIGNMENT_MODEL_H_ 16 #ifndef SV_ALIGNMENT_MODEL_H
17 #define _ALIGNMENT_MODEL_H_ 17 #define SV_ALIGNMENT_MODEL_H
18 18
19 #include "Model.h" 19 #include "Model.h"
20 #include "PathModel.h" 20 #include "PathModel.h"
21 #include "base/RealTime.h" 21 #include "base/RealTime.h"
22 22
34 Model *aligned, 34 Model *aligned,
35 Model *inputModel, // probably an AggregateWaveModel; may be null; I take ownership 35 Model *inputModel, // probably an AggregateWaveModel; may be null; I take ownership
36 SparseTimeValueModel *path); // I take ownership 36 SparseTimeValueModel *path); // I take ownership
37 ~AlignmentModel(); 37 ~AlignmentModel();
38 38
39 virtual bool isOK() const; 39 bool isOK() const override;
40 virtual sv_frame_t getStartFrame() const; 40 sv_frame_t getStartFrame() const override;
41 virtual sv_frame_t getEndFrame() const; 41 sv_frame_t getEndFrame() const override;
42 virtual sv_samplerate_t getSampleRate() const; 42 sv_samplerate_t getSampleRate() const override;
43 virtual bool isReady(int *completion = 0) const; 43 bool isReady(int *completion = 0) const override;
44 virtual const ZoomConstraint *getZoomConstraint() const; 44 const ZoomConstraint *getZoomConstraint() const override;
45 45
46 QString getTypeName() const { return tr("Alignment"); } 46 QString getTypeName() const override { return tr("Alignment"); }
47 47
48 const Model *getReferenceModel() const; 48 const Model *getReferenceModel() const;
49 const Model *getAlignedModel() const; 49 const Model *getAlignedModel() const;
50 50
51 sv_frame_t toReference(sv_frame_t frame) const; 51 sv_frame_t toReference(sv_frame_t frame) const;
52 sv_frame_t fromReference(sv_frame_t frame) const; 52 sv_frame_t fromReference(sv_frame_t frame) const;
53 53
54 void setPathFrom(SparseTimeValueModel *rawpath); 54 void setPathFrom(SparseTimeValueModel *rawpath);
55 void setPath(PathModel *path); 55 void setPath(PathModel *path);
56 56
57 virtual void toXml(QTextStream &stream, 57 void toXml(QTextStream &stream,
58 QString indent = "", 58 QString indent = "",
59 QString extraAttributes = "") const; 59 QString extraAttributes = "") const override;
60 60
61 signals: 61 signals:
62 void modelChanged(); 62 void modelChanged();
63 void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame); 63 void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame);
64 void completionChanged(); 64 void completionChanged();