[QGIS Commit] r9671 - in trunk/qgis/python: core gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Nov 19 15:03:30 EST 2008


Author: wonder
Date: 2008-11-19 15:03:30 -0500 (Wed, 19 Nov 2008)
New Revision: 9671

Modified:
   trunk/qgis/python/core/qgssnapper.sip
   trunk/qgis/python/gui/qgsmapcanvassnapper.sip
Log:
PyQGIS: fixed QgsSnapper / QgsMapCanvasSnapper bindings


Modified: trunk/qgis/python/core/qgssnapper.sip
===================================================================
--- trunk/qgis/python/core/qgssnapper.sip	2008-11-19 08:51:59 UTC (rev 9670)
+++ trunk/qgis/python/core/qgssnapper.sip	2008-11-19 20:03:30 UTC (rev 9671)
@@ -73,7 +73,7 @@
    @param startPoint the start point for snapping (in pixel coordinates)
   @param snappingResult the list where the results are inserted (everything in map coordinate system)
   @return 0 in case of success*/
-  int snapPoint(const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult, const QList<QgsPoint>& excludeList);
+  int snapPoint(const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult /Out/, const QList<QgsPoint>& excludeList);
 
   //setters
   void setSnapLayers( const QList<QgsSnapper::SnapLayer>& snapLayers );

Modified: trunk/qgis/python/gui/qgsmapcanvassnapper.sip
===================================================================
--- trunk/qgis/python/gui/qgsmapcanvassnapper.sip	2008-11-19 08:51:59 UTC (rev 9670)
+++ trunk/qgis/python/gui/qgsmapcanvassnapper.sip	2008-11-19 20:03:30 UTC (rev 9671)
@@ -29,7 +29,7 @@
        @param snap_to snap to vertex or to segment
        @param snappingTol snapping tolerance. -1 means that the search radius for vertex edits is taken
        @param excludePoints a list with (map coordinate) points that should be excluded in the snapping result. Useful e.g. for vertex moves where a vertex should not be snapped to its original position*/
-    int snapToCurrentLayer( const QPoint& p, QList<QgsSnappingResult>& results, QgsSnapper::SnappingType snap_to, double snappingTol = -1, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
+    int snapToCurrentLayer( const QPoint& p, QList<QgsSnappingResult>& results /Out/, QgsSnapper::SnappingType snap_to, double snappingTol = -1, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
     /**Snaps to the background layers. This method is usefull to align the features of the
        edited layers to those of other layers (as described in the project properties).
        Uses snap mode QgsSnapper::SnapWithOneResult. Therefore, only the
@@ -38,7 +38,7 @@
        @param result snapped point
        @param excludePoints a list with (map coordinate) points that should be excluded in the snapping result. Useful e.g. for vertex moves where a vertex should not be snapped to its original position
        @return 0 in case of success*/
-    int snapToBackgroundLayers( const QPoint& p, QList<QgsSnappingResult>& results, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
+    int snapToBackgroundLayers( const QPoint& p, QList<QgsSnappingResult>& results /Out/, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
 
     void setMapCanvas( QgsMapCanvas* canvas );
 



More information about the QGIS-commit mailing list