16 Commits

Author SHA1 Message Date
Nyall Dawson
994257b538 If the elevation profile mouse cursor is snapped, then use the snapped
position when drawing the marker on the map canvas to indicate the
cursor position

Otherwise things are misleading -- the elevation profile will show
snapped results yet the corresponding canvas point may be slightly
displaced from what the elevation plot is showing
2022-05-27 11:56:10 +10:00
Nyall Dawson
612164305b Ensure measure line stays in the correct location when plot is
panned/zoomed
2022-05-07 21:42:54 +10:00
Nyall Dawson
b9e10e754b Make private method public 2022-05-07 21:42:54 +10:00
Nyall Dawson
bf046be5ad [feature] Add a measure tool to elevation profile widget
Allows measuring distances on the plot
2022-05-07 21:42:54 +10:00
Nyall Dawson
3c086ead05 Add framework for identifying results from profile generators 2022-05-06 08:58:41 +10:00
Nyall Dawson
4907eb2652 Don't reset plot extent so often
Be more picky about when we force a zoom full in the elevation plot,
so that we aren't zooming out when a user makes a change like
increasing the distance tolerance or nudging the curve.
2022-05-02 12:33:19 +10:00
Nyall Dawson
5a6524f3aa Use "regenerate" instead of "update" for re-building the profile for
a layer, as "update" is ambiguous and is associated with "repainting"
a Qt widget
2022-04-27 10:24:12 +10:00
Nyall Dawson
28f02c4890 Fix clazy warning 2022-04-27 10:24:12 +10:00
Nyall Dawson
7861830ea9 Expose tolerance setting for elevation plots in UI 2022-04-22 07:21:26 +10:00
Nyall Dawson
27dc6e7a7d Snap plot cursor to sampled heights
And add a "snapping" toggle to disable this behavior
2022-04-15 12:15:54 +10:00
Nyall Dawson
9001d8eccb Show a marker on the canvas corresponding to the hovered profile plot point 2022-04-12 02:29:11 -07:00
Nyall Dawson
4c31c81f13 Show a crosshairs over the profile plot as the mouse is moved around 2022-04-12 02:29:11 -07:00
Nyall Dawson
19c2c3d3e2 Add a dedicated x-axis zoom tool for elevation profile widget 2022-04-07 19:22:19 +10:00
Nyall Dawson
b779bfc44a Spelling 2022-04-07 19:22:19 +10:00
Nyall Dawson
d2e5186d56 Add action to export profile graph to PDF 2022-04-07 19:22:19 +10:00
Nyall Dawson
62450ec373 Move files to elevation directory 2022-04-07 19:22:19 +10:00