comparison data/model/AlignmentModel.h @ 1862:3072aa267248

Permit setting completion directly on the alignment model, if we aren't using a transform to populate the path source but are instead going to set the path directly after completion
author Chris Cannam
date Fri, 22 May 2020 16:23:25 +0100
parents 21c792334c2e
children
comparison
equal deleted inserted replaced
1861:9219834e39a4 1862:3072aa267248
54 QString getTypeName() const override { return tr("Alignment"); } 54 QString getTypeName() const override { return tr("Alignment"); }
55 55
56 ModelId getReferenceModel() const; 56 ModelId getReferenceModel() const;
57 ModelId getAlignedModel() const; 57 ModelId getAlignedModel() const;
58 58
59 void setCompletion(int completion);
60
59 sv_frame_t toReference(sv_frame_t frame) const; 61 sv_frame_t toReference(sv_frame_t frame) const;
60 sv_frame_t fromReference(sv_frame_t frame) const; 62 sv_frame_t fromReference(sv_frame_t frame) const;
61 63
62 void setPathFrom(ModelId pathSource); // a SparseTimeValueModel 64 void setPathFrom(ModelId pathSource); // a SparseTimeValueModel
63 void setPath(const Path &path); 65 void setPath(const Path &path);
105 mutable std::unique_ptr<Path> m_reversePath; 107 mutable std::unique_ptr<Path> m_reversePath;
106 bool m_pathBegun; 108 bool m_pathBegun;
107 bool m_pathComplete; 109 bool m_pathComplete;
108 QString m_error; 110 QString m_error;
109 int m_relativePitch; 111 int m_relativePitch;
112 int m_explicitlySetCompletion;
110 113
111 void constructPath() const; 114 void constructPath() const;
112 void constructReversePath() const; 115 void constructReversePath() const;
113 116
114 sv_frame_t performAlignment(const Path &path, sv_frame_t frame) const; 117 sv_frame_t performAlignment(const Path &path, sv_frame_t frame) const;