Skip to content


Browse files Browse the repository at this point in the history
PyQGIS: missing QgsMapTool bindings
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 25, 2008
1 parent 4e35930 commit c223b01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/gui/qgsmaptool.sip
Expand Up @@ -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
Expand All @@ -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);

Expand Down

0 comments on commit c223b01

Please sign in to comment.