[QGIS Commit] r9706 - trunk/qgis/python/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Nov 25 16:37:38 EST 2008
Author: wonder
Date: 2008-11-25 16:37:38 -0500 (Tue, 25 Nov 2008)
New Revision: 9706
Modified:
trunk/qgis/python/gui/qgsmaptool.sip
Log:
PyQGIS: missing QgsMapTool bindings
Modified: trunk/qgis/python/gui/qgsmaptool.sip
===================================================================
--- trunk/qgis/python/gui/qgsmaptool.sip 2008-11-25 14:03:24 UTC (rev 9705)
+++ trunk/qgis/python/gui/qgsmaptool.sip 2008-11-25 21:37:38 UTC (rev 9706)
@@ -70,6 +70,9 @@
//! called when map tool is being deactivated
virtual void deactivate();
+ //! returns pointer to the tool's map canvas
+ QgsMapCanvas* canvas();
+
protected:
//! constructor takes map canvas as a parameter
@@ -84,6 +87,9 @@
//! trnasformation from map coordinates to layer's coordinates
QgsPoint toLayerCoordinates(QgsMapLayer* layer, const QgsPoint& point);
+ //!transformation from layer's coordinates to map coordinates (which is different in case reprojection is used)
+ QgsPoint toMapCoordinates( QgsMapLayer* layer, const QgsPoint& point );
+
//! trnasformation of the rect from map coordinates to layer's coordinates
QgsRectangle toLayerCoordinates(QgsMapLayer* layer, const QgsRectangle& rect);
More information about the QGIS-commit
mailing list