Skip to content


Browse files Browse the repository at this point in the history
added overlay methods to python bindings for QgsVectorLayer
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 25, 2009
1 parent 243ccdf commit 9a2e66a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion python/core/qgsvectorlayer.sip
Expand Up @@ -165,7 +165,7 @@ public:
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
Expand Down Expand Up @@ -369,6 +369,26 @@ public:
/**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() */
Expand Down

0 comments on commit 9a2e66a

Please sign in to comment.