# sec_interp.gui.tools.measure_tool module

Measurement tool for Profile View.

This module provides the ProfileMeasureTool for measuring distances, elevation differences, and slopes in the profile preview window. It separates UI event handling from spatial snapping logic.

class sec_interp.gui.tools.measure_tool.ProfileSnapper(canvas: qgis.gui.QgsMapCanvas)

  Bases: `object`

  Helper class to handle point snapping functionality.

  snap(mouse_pos: qgis.PyQt.QtCore.QPoint) → qgis.core.QgsPointXY

    Finds the nearest vertex or edge to the mouse position.

class sec_interp.gui.tools.measure_tool.ProfileMeasureTool(*args: Any, **kwargs: Any)

  Bases: `QgsMapToolEmitPoint`

  Map tool for measuring distances in profile view.

  measurementChanged

    alias of `float`

  activate()
  deactivate()
  reset()

    Resets the tool state.

  canvasReleaseEvent(event)

    Handle mouse click release.

  canvasMoveEvent(event)

    Handle mouse move for rubber band update.