Mercurial > hg > svcore
comparison data/model/AlignmentModel.h @ 1688:901f37d32060
Model deletion issues - the AlignmentModel doesn't actually need to know about the input aggregate model; the document should own it instead
author | Chris Cannam |
---|---|
date | Thu, 04 Apr 2019 11:15:43 +0100 |
parents | ad5f892c0c4d |
children | d08b560102a1 |
comparison
equal
deleted
inserted
replaced
1608:0e0947896fd3 | 1688:901f37d32060 |
---|---|
30 Q_OBJECT | 30 Q_OBJECT |
31 | 31 |
32 public: | 32 public: |
33 AlignmentModel(Model *reference, | 33 AlignmentModel(Model *reference, |
34 Model *aligned, | 34 Model *aligned, |
35 Model *inputModel, // probably an AggregateWaveModel; may be null; I take ownership | 35 SparseTimeValueModel *path); |
36 SparseTimeValueModel *path); // I take ownership | |
37 ~AlignmentModel(); | 36 ~AlignmentModel(); |
38 | 37 |
39 bool isOK() const override; | 38 bool isOK() const override; |
40 sv_frame_t getStartFrame() const override; | 39 sv_frame_t getStartFrame() const override; |
41 sv_frame_t getEndFrame() const override; | 40 sv_frame_t getEndFrame() const override; |
70 | 69 |
71 protected: | 70 protected: |
72 Model *m_reference; // I don't own this | 71 Model *m_reference; // I don't own this |
73 Model *m_aligned; // I don't own this | 72 Model *m_aligned; // I don't own this |
74 | 73 |
75 Model *m_inputModel; // I own this | |
76 | |
77 SparseTimeValueModel *m_rawPath; // I own this | 74 SparseTimeValueModel *m_rawPath; // I own this |
78 mutable PathModel *m_path; // I own this | 75 mutable PathModel *m_path; // I own this |
79 mutable PathModel *m_reversePath; // I own this | 76 mutable PathModel *m_reversePath; // I own this |
80 bool m_pathBegun; | 77 bool m_pathBegun; |
81 bool m_pathComplete; | 78 bool m_pathComplete; |