comparison align/TransformAligner.h @ 753:31289e8592c7 pitch-align

Switch to using the pulled-out TransformAligner and ExternalProgramAligner
author Chris Cannam
date Fri, 24 Apr 2020 14:38:22 +0100
parents 32654e402f8b
children 6429a164b7e1
comparison
equal deleted inserted replaced
752:32654e402f8b 753:31289e8592c7
13 */ 13 */
14 14
15 #ifndef SV_TRANSFORM_ALIGNER_H 15 #ifndef SV_TRANSFORM_ALIGNER_H
16 #define SV_TRANSFORM_ALIGNER_H 16 #define SV_TRANSFORM_ALIGNER_H
17 17
18 #include <QString> 18 #include "Aligner.h"
19
20 #include "data/model/Model.h"
21 19
22 class AlignmentModel; 20 class AlignmentModel;
23 class Document; 21 class Document;
24 22
25 class TransformAligner : public QObject 23 class TransformAligner : public Aligner
26 { 24 {
27 Q_OBJECT 25 Q_OBJECT
28 26
29 public: 27 public:
30 TransformAligner(Document *doc, 28 TransformAligner(Document *doc,
32 ModelId toAlign); 30 ModelId toAlign);
33 31
34 // Destroy the aligner, cleanly cancelling any ongoing alignment 32 // Destroy the aligner, cleanly cancelling any ongoing alignment
35 ~TransformAligner(); 33 ~TransformAligner();
36 34
37 bool begin(QString &error); 35 bool begin(QString &error) override;
38 36
39 static bool isAvailable(); 37 static bool isAvailable();
40
41 signals:
42 /**
43 * Emitted when alignment is successfully completed. The reference
44 * and toAlign models can be queried from the alignment model.
45 */
46 void complete(ModelId alignmentModel); // an AlignmentModel
47 38
48 private slots: 39 private slots:
49 void alignmentCompletionChanged(ModelId); 40 void alignmentCompletionChanged(ModelId);
50 void tuningDifferenceCompletionChanged(ModelId); 41 void tuningDifferenceCompletionChanged(ModelId);
51 42