16#ifndef QGSSNAPTOGRIDCANVASITEM_H
17#define QGSSNAPTOGRIDCANVASITEM_H
54 sipType = sipType_QgsSnapToGridCanvasItem;
72 void paint( QPainter *painter )
override;
117 bool enabled()
const;
122 void setEnabled(
bool enabled );
125 void updateMapCanvasCrs();
127 void updateZoomFactor();
130 QPen mGridPen = QPen( QColor( 127, 127, 127, 150 ) );
131 QPen mCurrentPointPen = QPen( QColor( 200, 200, 200, 150 ) );
133 bool mEnabled =
true;
134 bool mAvailableByZoomFactor =
false;
136 double mPrecision = 0.0;
This class represents a coordinate reference system (CRS).
An abstract class for items that can be placed on the map canvas.
Map canvas is a class for displaying all GIS data types on a canvas.
A class to represent a 2D point.
Shows a grid on the map canvas given a spatial resolution.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
const QgsCoordinateReferenceSystem & crs