comparison layer/SpectrogramLayer.h @ 1554:a0b2f3b4dd2f spectrogram-export

Start work on spectrogram export code
author Chris Cannam
date Mon, 06 Jan 2020 14:46:25 +0000
parents e6362cf5ff1d
children 745be36202aa
comparison
equal deleted inserted replaced
1553:76e4302a3fc2 1554:a0b2f3b4dd2f
63 SpectrogramLayer(Configuration = FullRangeDb); 63 SpectrogramLayer(Configuration = FullRangeDb);
64 ~SpectrogramLayer(); 64 ~SpectrogramLayer();
65 65
66 const ZoomConstraint *getZoomConstraint() const override { return this; } 66 const ZoomConstraint *getZoomConstraint() const override { return this; }
67 ModelId getModel() const override { return m_model; } 67 ModelId getModel() const override { return m_model; }
68
69 ModelId getExportModel(LayerGeometryProvider *) const override;
70
68 void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override; 71 void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override;
69 void setSynchronousPainting(bool synchronous) override; 72 void setSynchronousPainting(bool synchronous) override;
70 73
71 int getVerticalScaleWidth(LayerGeometryProvider *v, bool detailed, QPainter &) const override; 74 int getVerticalScaleWidth(LayerGeometryProvider *v, bool detailed, QPainter &) const override;
72 void paintVerticalScale(LayerGeometryProvider *v, bool detailed, QPainter &paint, QRect rect) const override; 75 void paintVerticalScale(LayerGeometryProvider *v, bool detailed, QPainter &paint, QRect rect) const override;
73 76
74 bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos, 77 bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos,
75 std::vector<QRect> &extents) const override; 78 std::vector<QRect> &extents) const override;
76 void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override; 79 void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override;
77 80
78 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; 81 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override;
79 82
80 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, 83 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame,