28 Commits

Author SHA1 Message Date
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
027cd208f2 Add API to show additional elevation labels in elevation filter widget 2024-05-20 11:52:10 +02:00
Nyall Dawson
6ee262f401 Add option to invert the elevation filter widget
If checked, this option reverse the slider in the elevation filter
so that the widget goes from high values at the bottom to low values at the top.

See justification in https://github.com/qgis/QGIS/issues/56995

Fixes #56995
2024-05-01 13:48:19 +10:00
Nyall Dawson
1698bd3391 Store elevation filter fixed range size in project
Remember this setting between sessions for a project
2024-05-01 13:48:19 +10:00
Nyall Dawson
465d8bd0ba Use inline settings widget in menu instead of separate dialog 2024-03-18 12:37:42 +10:00
Nyall Dawson
9ee09c176a Rename to fixed range size 2024-03-18 12:37:42 +10:00
Nyall Dawson
ecc71b4479 Add fixed range width option to QgsElevationControllerWidget 2024-03-18 12:37:42 +10:00
Nyall Dawson
4cbde0f067 Show labels in elevation controller widget 2024-03-13 13:18:20 +10:00
Nyall Dawson
9b780c1d36 Create QgsElevationControllerWidget
A widget which allows configuring a slice of a 2d map canvas to show
2024-03-13 13:18:20 +10:00
Nyall Dawson
b168b20516 Add setting to control background color for elevation profile charts
This option (available from the new Settings - Options - Elevation tab)
allows users to set a specific color to use as the background color
for elevation profiles. This can make the chart more readable for
certain datasets, eg point clouds with RGB coloring, where the default
background color is too close to the point colors to be discernable.

This is an opt-in setting -- by default the profiles will continue
to display using the standard system background color.
2023-09-13 10:17:01 +02:00
Nyall Dawson
2d105204f6 [feature] Expose choice of distance unit in elevation profile settings
menu

Allows users to change the distance unit for situations where the
map's default distance unit isn't appropriate
2023-05-29 14:18:35 +10:00
Nyall Dawson
7c7d5dc338 [profile tool] Add option to lock the horizontal/vertical scale to
matching scales

When activated, this option ensures that the horizontal and vertical
scales are always kept equal (so that eg a 45 degree slope will appear
as a 45 degree slope in the profile)
2023-05-20 13:18:54 +10:00
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