mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
PyQGIS: missing QgsMapTool bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@9706 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
4e35930cab
commit
c223b010f9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user