Skip to content

Commit 9a2e66a

Browse files
author
mhugent
committed
added overlay methods to python bindings for QgsVectorLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk@10845 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 243ccdf commit 9a2e66a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

python/core/qgsvectorlayer.sip

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public:
165165
bool fetchGeometry = true,
166166
bool useIntersect = false);
167167

168-
bool nextFeature(QgsFeature& feature);
168+
bool nextFeature(QgsFeature& feature /Out/ );
169169

170170

171171
/**Gets the feature at the given feature id. Considers the changed, added, deleted and permanent features
@@ -369,6 +369,26 @@ public:
369369
/**access range */
370370
RangeData &range(int idx);
371371

372+
/**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object
373+
@note this method was added in version 1.1
374+
*/
375+
void addOverlay( QgsVectorOverlay* overlay /Transfer/);
376+
377+
/**Removes all overlays of a given type
378+
@note this method was added in version 1.1
379+
*/
380+
void removeOverlay( const QString& typeName );
381+
382+
/**Returns pointers to the overlays of this layer
383+
@note this method was added in version 1.1
384+
*/
385+
void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/);
386+
387+
/**Returns the (first) overlay of a type, e.g. diagram or label
388+
@note this method was added in version 1.1
389+
*/
390+
QgsVectorOverlay* findOverlayByType( const QString& typeName );
391+
372392
public slots:
373393

374394
/** Select feature by its ID, optionally emit signal selectionChanged() */

0 commit comments

Comments
 (0)