Mercurial > hg > svcore
comparison data/model/AlignmentModel.h @ 1705:28f9ff7864c6 single-point
Add error field to alignment model
author | Chris Cannam |
---|---|
date | Wed, 15 May 2019 17:51:43 +0100 |
parents | d08b560102a1 |
children | 78fe29adfd16 |
comparison
equal
deleted
inserted
replaced
1704:452b48b29c2d | 1705:28f9ff7864c6 |
---|---|
34 Model *aligned, | 34 Model *aligned, |
35 SparseTimeValueModel *path); | 35 SparseTimeValueModel *path); |
36 ~AlignmentModel(); | 36 ~AlignmentModel(); |
37 | 37 |
38 bool isOK() const override; | 38 bool isOK() const override; |
39 | |
40 void setError(QString error) { m_error = error; } | |
41 QString getError() const { return m_error; } | |
42 | |
39 sv_frame_t getStartFrame() const override; | 43 sv_frame_t getStartFrame() const override; |
40 sv_frame_t getEndFrame() const override; | 44 sv_frame_t getEndFrame() const override; |
41 sv_samplerate_t getSampleRate() const override; | 45 sv_samplerate_t getSampleRate() const override; |
42 bool isReady(int *completion = 0) const override; | 46 bool isReady(int *completion = 0) const override; |
43 int getCompletion() const override { | 47 int getCompletion() const override { |
84 SparseTimeValueModel *m_rawPath; // I own this | 88 SparseTimeValueModel *m_rawPath; // I own this |
85 mutable PathModel *m_path; // I own this | 89 mutable PathModel *m_path; // I own this |
86 mutable PathModel *m_reversePath; // I own this | 90 mutable PathModel *m_reversePath; // I own this |
87 bool m_pathBegun; | 91 bool m_pathBegun; |
88 bool m_pathComplete; | 92 bool m_pathComplete; |
93 QString m_error; | |
89 | 94 |
90 void constructPath() const; | 95 void constructPath() const; |
91 void constructReversePath() const; | 96 void constructReversePath() const; |
92 | 97 |
93 sv_frame_t align(PathModel *path, sv_frame_t frame) const; | 98 sv_frame_t align(PathModel *path, sv_frame_t frame) const; |