22 #include <QAbstractButton>
25 : QObject( canvas ), mCanvas( canvas ), mCursor( Qt::CrossCursor ), mAction( NULL ), mButton( NULL )
65 double x = point.
x(), y = point.
y();
67 return QPoint( qRound( x ), qRound( y ) );
155 bool QgsMapTool::gestureEvent( QGestureEvent *e )
void unsetMapTool(QgsMapTool *mapTool)
Unset the current map tool or last non zoom tool.
A rectangle specified with double values.
Base class for all map layer types.
QgsPoint mapToLayerCoordinates(QgsMapLayer *theLayer, QgsPoint point)
transform point coordinates from output CRS to layer's CRS
Map canvas is a class for displaying all GIS data types on a canvas.
QgsPoint layerToMapCoordinates(QgsMapLayer *theLayer, QgsPoint point)
transform point coordinates from layer's CRS to output CRS
void transformInPlace(double &x, double &y) const
A class to represent a point geometry.
QgsPoint toMapCoordinates(int x, int y) const
QgsMapRenderer * mapRenderer()
const QgsMapToPixel * getCoordinateTransform()
Get the current coordinate transform.