sec_interp.gui.tools.snapper module
Shared point snapping helper for profile view tools.
- class sec_interp.gui.tools.snapper.ProfileSnapper(canvas: qgis.gui.QgsMapCanvas)
Bases:
objectHelper class to handle point snapping functionality.
- __init__(canvas: qgis.gui.QgsMapCanvas) None
Initialize the profile snapper.
- Parameters:
canvas – The map canvas to snap on.
- snap(mouse_pos: qgis.PyQt.QtCore.QPoint) qgis.core.QgsPointXY
Find the nearest vertex or edge to the mouse position.