16 #ifndef QGSSNAPTOGRIDCANVASITEM_H
17 #define QGSSNAPTOGRIDCANVASITEM_H
53 sipType = sipType_QgsSnapToGridCanvasItem;
66 void paint( QPainter *painter )
override;
111 bool enabled()
const;
116 void setEnabled(
bool enabled );
119 void updateMapCanvasCrs();
121 void updateZoomFactor();
124 QPen mGridPen = QPen( QColor( 127, 127, 127, 150 ) );
125 QPen mCurrentPointPen = QPen( QColor( 200, 200, 200, 150 ) );
127 bool mEnabled =
true;
128 bool mAvailableByZoomFactor =
false;
130 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