16 #ifndef QGSSNAPTOGRIDCANVASITEM_H 17 #define QGSSNAPTOGRIDCANVASITEM_H 44 void paint( QPainter *painter )
override;
70 void setPrecision(
double precision );
94 void setEnabled(
bool enabled );
97 void updateMapCanvasCrs();
99 void updateZoomFactor();
102 QPen mGridPen = QPen( QColor( 127, 127, 127, 150 ) );
103 QPen mCurrentPointPen = QPen( QColor( 200, 200, 200, 150 ) );
105 bool mEnabled =
true;
106 bool mAvailableByZoomFactor =
false;
108 double mPrecision = 0.0;
113 #endif // QGSSNAPTOGRIDCANVASITEM_H
A class to represent a 2D point.
An abstract class for items that can be placed on the map canvas.
const QgsCoordinateReferenceSystem & crs
Map canvas is a class for displaying all GIS data types on a canvas.
Shows a grid on the map canvas given a spatial resolution.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
This class represents a coordinate reference system (CRS).