comparison layer/RegionLayer.h @ 1547:e6362cf5ff1d

Pass a y-coord, optionally, to Layer::snapToFeatureFrame. This is necessary for BoxLayer which needs to coordinate its snaps with the box it is highlighting for editing. Then in BoxLayer, merge getPointToDrag and getLocalPoints into a single getLocalPoint and use this throughout.
author Chris Cannam
date Thu, 17 Oct 2019 11:12:54 +0100
parents 696e569ff21b
children
comparison
equal deleted inserted replaced
1546:ec837d223bd9 1547:e6362cf5ff1d
47 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; 47 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override;
48 QString getLabelPreceding(sv_frame_t) const override; 48 QString getLabelPreceding(sv_frame_t) const override;
49 49
50 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, 50 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame,
51 int &resolution, 51 int &resolution,
52 SnapType snap) const override; 52 SnapType snap, int ycoord) const override;
53 bool snapToSimilarFeature(LayerGeometryProvider *v, sv_frame_t &frame, 53 bool snapToSimilarFeature(LayerGeometryProvider *v, sv_frame_t &frame,
54 int &resolution, 54 int &resolution,
55 SnapType snap) const override; 55 SnapType snap) const override;
56 56
57 void drawStart(LayerGeometryProvider *v, QMouseEvent *) override; 57 void drawStart(LayerGeometryProvider *v, QMouseEvent *) override;