Skip to content
Permalink
Browse files

PyQGIS: missing QgsMapTool bindings

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9706 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 25, 2008
1 parent a9ca23c commit bef7e1dea17372b483087f59cfab57b5b7606ad7
Showing with 6 additions and 0 deletions.
  1. +6 −0 python/gui/qgsmaptool.sip
@@ -70,6 +70,9 @@ class QgsMapTool : QObject
//! 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 @@ class QgsMapTool : QObject
//! 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);

0 comments on commit bef7e1d

Please sign in to comment.
You can’t perform that action at this time.