16 #ifndef QGSMAPMOUSEEVENT_H
17 #define QGSMAPMOUSEEVENT_H
19 #include <QMouseEvent>
70 QgsPoint snapPoint( SnappingMode snappingMode );
80 QList<QgsPoint> snapSegment( SnappingMode snappingMode,
bool* snapped = 0,
bool allLayers =
false )
const;
88 bool isSnapped()
const {
return mSnapMatch.isValid(); }
102 void setMapPoint(
const QgsPoint& point );
130 SnappingMode mSnappingMode;
148 #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())
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