Skip to content

Commit e9f6cec

Browse files
author
wonder
committedNov 19, 2008
PyQGIS: fixed QgsSnapper / QgsMapCanvasSnapper bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@9671 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f63014e commit e9f6cec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/core/qgssnapper.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public:
7373
@param startPoint the start point for snapping (in pixel coordinates)
7474
@param snappingResult the list where the results are inserted (everything in map coordinate system)
7575
@return 0 in case of success*/
76-
int snapPoint(const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult, const QList<QgsPoint>& excludeList);
76+
int snapPoint(const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult /Out/, const QList<QgsPoint>& excludeList);
7777

7878
//setters
7979
void setSnapLayers( const QList<QgsSnapper::SnapLayer>& snapLayers );

‎python/gui/qgsmapcanvassnapper.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QgsMapCanvasSnapper
2929
@param snap_to snap to vertex or to segment
3030
@param snappingTol snapping tolerance. -1 means that the search radius for vertex edits is taken
3131
@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*/
32-
int snapToCurrentLayer( const QPoint& p, QList<QgsSnappingResult>& results, QgsSnapper::SnappingType snap_to, double snappingTol = -1, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
32+
int snapToCurrentLayer( const QPoint& p, QList<QgsSnappingResult>& results /Out/, QgsSnapper::SnappingType snap_to, double snappingTol = -1, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
3333
/**Snaps to the background layers. This method is usefull to align the features of the
3434
edited layers to those of other layers (as described in the project properties).
3535
Uses snap mode QgsSnapper::SnapWithOneResult. Therefore, only the
@@ -38,7 +38,7 @@ class QgsMapCanvasSnapper
3838
@param result snapped point
3939
@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
4040
@return 0 in case of success*/
41-
int snapToBackgroundLayers( const QPoint& p, QList<QgsSnappingResult>& results, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
41+
int snapToBackgroundLayers( const QPoint& p, QList<QgsSnappingResult>& results /Out/, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
4242

4343
void setMapCanvas( QgsMapCanvas* canvas );
4444

0 commit comments

Comments
 (0)
Please sign in to comment.