Canvas map tool that drags the 2D-mesh profile position arrow along the traced path. Pairs with MeshProfileOverlay (the persistent line.
More...
Go to the source code of this file.
Canvas map tool that drags the 2D-mesh profile position arrow along the traced path. Pairs with MeshProfileOverlay (the persistent line.
- Author
- Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
- Date
- 2026
- License\n GPL-3.0-or-later
- arrow) and MeshProfilePlotDialog (which wires this tool's markerChainageChanged to the profile chart's cursor, and the chart's cursorChainageChanged back to the overlay).
Behaviour:
- Left-press within a few pixels of the profile line begins a drag and snaps the marker to the nearest point on the line.
- Mouse-move projects the cursor onto the line → chainage, moves the marker, and emits markerChainageChanged so the chart cursor follows.
- While dragging the arrow is painted live in the tool overlay (immediate) and the scene-overlay arrow is hidden; on release the scene arrow is restored at the final position.