16 #ifndef QGSSNAPTOGRIDCANVASITEM_H 17 #define QGSSNAPTOGRIDCANVASITEM_H 46 if ( dynamic_cast<QgsSnapToGridCanvasItem *>( sipCpp ) )
47 sipType = sipType_QgsSnapToGridCanvasItem;
60 void paint( QPainter *painter )
override;
86 void setPrecision(
double precision );
105 bool enabled()
const;
110 void setEnabled(
bool enabled );
113 void updateMapCanvasCrs();
115 void updateZoomFactor();
118 QPen mGridPen = QPen( QColor( 127, 127, 127, 150 ) );
119 QPen mCurrentPointPen = QPen( QColor( 200, 200, 200, 150 ) );
121 bool mEnabled =
true;
122 bool mAvailableByZoomFactor =
false;
124 double mPrecision = 0.0;
129 #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).
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)