Skip to content
Browse files
PyQGIS: missing QgsMapTool bindings
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 25, 2008
1 parent 4e35930 commit c223b010f9c6246de5188e2446cef749f2c1eb78
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();


//! 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 c223b01

Please sign in to comment.