Skip to content
Permalink
Browse files

added overlay methods to python bindings for QgsVectorLayer

git-svn-id: http://svn.osgeo.org/qgis/trunk@10845 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed May 25, 2009
1 parent 243ccdf commit 9a2e66a11fe675dde4aed7f1ae97863113c8ac30
Showing with 21 additions and 1 deletion.
  1. +21 −1 python/core/qgsvectorlayer.sip
@@ -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
@@ -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() */

0 comments on commit 9a2e66a

Please sign in to comment.
You can’t perform that action at this time.