comparison view/AlignmentView.h @ 1617:cbbb411da977

Merge
author Chris Cannam
date Tue, 21 Jul 2020 14:02:12 +0100
parents 911330a28a7c
children
comparison
equal deleted inserted replaced
1616:199dbb3547d4 1617:cbbb411da977
24 24
25 public: 25 public:
26 AlignmentView(QWidget *parent = 0); 26 AlignmentView(QWidget *parent = 0);
27 QString getPropertyContainerIconName() const override { return "alignment"; } 27 QString getPropertyContainerIconName() const override { return "alignment"; }
28 28
29 void setViewAbove(View *view); 29 void setAboveView(View *view);
30 void setViewBelow(View *view); 30 void setBelowView(View *view);
31 void setReferenceView(View *view);
31 32
32 public slots: 33 public slots:
33 void globalCentreFrameChanged(sv_frame_t) override; 34 void globalCentreFrameChanged(sv_frame_t) override;
34 void viewCentreFrameChanged(View *, sv_frame_t) override; 35 void viewCentreFrameChanged(View *, sv_frame_t) override;
35 36
42 43
43 protected: 44 protected:
44 void paintEvent(QPaintEvent *e) override; 45 void paintEvent(QPaintEvent *e) override;
45 bool shouldLabelSelections() const override { return false; } 46 bool shouldLabelSelections() const override { return false; }
46 47
47 void buildKeyFrameMap(); 48 void buildMaps();
48 49
49 std::vector<sv_frame_t> getKeyFrames(View *, sv_frame_t &resolution); 50 std::vector<sv_frame_t> getKeyFrames(View *, sv_frame_t &resolution);
50 std::vector<sv_frame_t> getDefaultKeyFrames(); 51 std::vector<sv_frame_t> getDefaultKeyFrames();
51 52
52 ModelId getSalientModel(View *); 53 ModelId getSalientModel(View *);
53 54
54 void reconnectModels(); 55 void reconnectModels();
55 56
56 View *m_above; 57 View *m_above;
57 View *m_below; 58 View *m_below;
59 View *m_reference;
58 60
59 QMutex m_keyFrameMutex; 61 QMutex m_mapsMutex;
60 std::multimap<sv_frame_t, sv_frame_t> m_keyFrameMap; 62 std::multimap<sv_frame_t, sv_frame_t> m_fromAboveMap;
63 std::multimap<sv_frame_t, sv_frame_t> m_fromReferenceMap;
64 sv_frame_t m_leftmostAbove;
65 sv_frame_t m_rightmostAbove;
61 }; 66 };
62 67
63 #endif 68 #endif