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
QgsPoint mapPoint() const
mapPoint returns the point in coordinates
QgsPoint originalMapPoint() const
Returns the original, unmodified map point of the mouse cursor.
snap to all rendered layers (tolerance and type from defaultSettings())
QgsPointLocator::Match mapPointMatch() const
Returns the matching data from the most recently snapped point.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
Map canvas is a class for displaying all GIS data types on a canvas.
QPoint originalPixelPoint() const
The unsnapped, real mouse cursor position in pixel coordinates.
snap according to the configuration set in the snapping settings
A class to represent a point.
bool isSnapped() const
Returns true if there is a snapped point cached.
const QPoint & pos() const
QPoint pixelPoint() const
The snapped mouse cursor in pixel coordinates.
typedef KeyboardModifiers