QgsSnapIndicator class
Class that shows snapping marker on map canvas for the current snapping match.
Contents
Constructors, destructors, conversion operators
- QgsSnapIndicator(QgsMapCanvas* canvas)
- Constructs an indicator for the given map canvas.
Public functions
- auto isVisible() const -> bool
- Returns whether the snapping indicator is visible.
-
auto match() const -> QgsPointLocator::
Match - Returns currently displayed snapping match.
-
void setMatch(const QgsPointLocator::
Match& match) - Sets snapping match that should be displayed in map canvas. Invalid match hides the indicator.
- void setVisible(bool visible = true)
- Sets whether the snapping indicator is visible.