16 #ifndef QGSMAPMOUSEEVENT_H 17 #define QGSMAPMOUSEEVENT_H 19 #include <QMouseEvent> 88 bool isSnapped()
const {
return mSnapMatch.isValid(); }
109 void setMapPoint(
const QgsPoint& point );
155 #endif // QGSMAPMOUSEEVENT_H
snap to all rendered layers (tolerance and type from defaultSettings())
QgsPoint mapPoint() const
mapPoint returns the point in coordinates
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
bool isSnapped() const
Returns true if there is a snapped point cached.
Map canvas is a class for displaying all GIS data types on a canvas.
snap according to the configuration set in the snapping settings
A class to represent a point.
QgsPointLocator::Match mapPointMatch() const
Returns the matching data from the most recently snapped point.
QPoint originalPixelPoint() const
The unsnapped, real mouse cursor position in pixel coordinates.
QgsPoint originalMapPoint() const
Returns the original, unmodified map point of the mouse cursor.
const QPoint & pos() const
QPoint pixelPoint() const
The snapped mouse cursor in pixel coordinates.
typedef KeyboardModifiers