Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added overlay methods to python bindings for QgsVectorLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10845 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 25, 2009
1 parent b3aef0b commit 4449b14
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 4449b14

Please sign in to comment.