[QGIS Commit] r10845 - trunk/qgis/python/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon May 25 10:08:27 EDT 2009


Author: mhugent
Date: 2009-05-25 10:08:27 -0400 (Mon, 25 May 2009)
New Revision: 10845

Modified:
   trunk/qgis/python/core/qgsvectorlayer.sip
Log:
added overlay methods to python bindings for QgsVectorLayer

Modified: trunk/qgis/python/core/qgsvectorlayer.sip
===================================================================
--- trunk/qgis/python/core/qgsvectorlayer.sip	2009-05-25 10:27:54 UTC (rev 10844)
+++ trunk/qgis/python/core/qgsvectorlayer.sip	2009-05-25 14:08:27 UTC (rev 10845)
@@ -165,7 +165,7 @@
               bool fetchGeometry = true,
               bool useIntersect = false);
 
-  bool nextFeature(QgsFeature& feature);
+  bool nextFeature(QgsFeature& feature /Out/ );
 
 
   /**Gets the feature at the given feature id. Considers the changed, added, deleted and permanent features
@@ -369,6 +369,26 @@
   /**access range */
   RangeData &range(int idx);
 
+    /**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object
+    @note this method was added in version 1.1
+    */
+    void addOverlay( QgsVectorOverlay* overlay /Transfer/);
+
+    /**Removes all overlays of a given type
+    @note this method was added in version 1.1
+    */
+    void removeOverlay( const QString& typeName );
+
+    /**Returns pointers to the overlays of this layer
+    @note this method was added in version 1.1
+    */
+    void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/);
+
+    /**Returns the (first) overlay of a type, e.g. diagram or label
+    @note this method was added in version 1.1
+    */
+    QgsVectorOverlay* findOverlayByType( const QString& typeName );
+
 public slots:
 
   /** Select feature by its ID, optionally emit signal selectionChanged() */



More information about the QGIS-commit mailing list