@@ -228,54 +228,54 @@ class CORE_EXPORT QgsMapSettings
228
228
* @param referenceExtent A reference extent based on which to perform the computation. If not specified, the layer extent is used
229
229
* @note added in QGIS 2.12
230
230
*/
231
- double layerToMapUnits ( QgsMapLayer* layer, const QgsRectangle& referenceExtent = QgsRectangle() ) const ;
231
+ double layerToMapUnits ( const QgsMapLayer* layer, const QgsRectangle& referenceExtent = QgsRectangle() ) const ;
232
232
233
233
/* *
234
234
* @brief transform bounding box from layer's CRS to output CRS
235
235
* @see layerToMapCoordinates( QgsMapLayer* layer, QgsRectangle rect ) if you want to transform a rectangle
236
236
* @return a bounding box (aligned rectangle) containing the transformed extent
237
237
*/
238
- QgsRectangle layerExtentToOutputExtent ( QgsMapLayer* layer, QgsRectangle extent ) const ;
238
+ QgsRectangle layerExtentToOutputExtent ( const QgsMapLayer* layer, QgsRectangle extent ) const ;
239
239
240
240
/* *
241
241
* @brief transform bounding box from output CRS to layer's CRS
242
242
* @see mapToLayerCoordinates( QgsMapLayer* layer,QgsRectangle rect ) if you want to transform a rectangle
243
243
* @return a bounding box (aligned rectangle) containing the transformed extent
244
244
*/
245
- QgsRectangle outputExtentToLayerExtent ( QgsMapLayer* layer, QgsRectangle extent ) const ;
245
+ QgsRectangle outputExtentToLayerExtent ( const QgsMapLayer* layer, QgsRectangle extent ) const ;
246
246
247
247
/* *
248
248
* @brief transform point coordinates from layer's CRS to output CRS
249
249
* @return the transformed point
250
250
*/
251
- QgsPoint layerToMapCoordinates ( QgsMapLayer* layer, QgsPoint point ) const ;
251
+ QgsPoint layerToMapCoordinates ( const QgsMapLayer* layer, QgsPoint point ) const ;
252
252
253
253
/* *
254
254
* @brief transform rectangle from layer's CRS to output CRS
255
255
* @see layerExtentToOutputExtent() if you want to transform a bounding box
256
256
* @return the transformed rectangle
257
257
*/
258
- QgsRectangle layerToMapCoordinates ( QgsMapLayer* layer, QgsRectangle rect ) const ;
258
+ QgsRectangle layerToMapCoordinates ( const QgsMapLayer* layer, QgsRectangle rect ) const ;
259
259
260
260
/* *
261
261
* @brief transform point coordinates from output CRS to layer's CRS
262
262
* @return the transformed point
263
263
*/
264
- QgsPoint mapToLayerCoordinates ( QgsMapLayer* layer, QgsPoint point ) const ;
264
+ QgsPoint mapToLayerCoordinates ( const QgsMapLayer* layer, QgsPoint point ) const ;
265
265
266
266
/* *
267
267
* @brief transform rectangle from output CRS to layer's CRS
268
268
* @see outputExtentToLayerExtent() if you want to transform a bounding box
269
269
* @return the transformed rectangle
270
270
*/
271
- QgsRectangle mapToLayerCoordinates ( QgsMapLayer* layer, QgsRectangle rect ) const ;
271
+ QgsRectangle mapToLayerCoordinates ( const QgsMapLayer* layer, QgsRectangle rect ) const ;
272
272
273
273
/* *
274
274
* @brief Return coordinate transform from layer's CRS to destination CRS
275
275
* @param layer
276
276
* @return transform - may be invalid if the transform is not needed
277
277
*/
278
- QgsCoordinateTransform layerTransform ( QgsMapLayer *layer ) const ;
278
+ QgsCoordinateTransform layerTransform ( const QgsMapLayer *layer ) const ;
279
279
280
280
// ! returns current extent of layer set
281
281
QgsRectangle fullExtent () const ;
0 commit comments