mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
make vector layer geometry editing methods invokable
This commit is contained in:
parent
8e40df8e26
commit
5a703d95d6
@ -1269,7 +1269,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* Deletes the selected features
|
||||
* \returns TRUE in case of success and FALSE otherwise
|
||||
*/
|
||||
bool deleteSelectedFeatures( int *deletedCount = nullptr );
|
||||
Q_INVOKABLE bool deleteSelectedFeatures( int *deletedCount = nullptr );
|
||||
|
||||
/**
|
||||
* Adds a ring to polygon/multipolygon features
|
||||
@ -1311,7 +1311,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult addRing( const QgsPointSequence &ring, QgsFeatureId *featureId = nullptr );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult addRing( const QgsPointSequence &ring, QgsFeatureId *featureId = nullptr );
|
||||
|
||||
/**
|
||||
* Adds a ring to polygon/multipolygon features (takes ownership)
|
||||
@ -1331,7 +1331,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult addRing( QgsCurve *ring SIP_TRANSFER, QgsFeatureId *featureId = nullptr ) SIP_PYNAME( addCurvedRing );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult addRing( QgsCurve *ring SIP_TRANSFER, QgsFeatureId *featureId = nullptr ) SIP_PYNAME( addCurvedRing );
|
||||
|
||||
/**
|
||||
* Adds a new part polygon to a multipart feature
|
||||
@ -1390,7 +1390,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult addPart( const QgsPointSequence &ring ) SIP_PYNAME( addPartV2 );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult addPart( const QgsPointSequence &ring ) SIP_PYNAME( addPartV2 );
|
||||
|
||||
/**
|
||||
* \note available in Python as addCurvedPart
|
||||
@ -1399,7 +1399,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult addPart( QgsCurve *ring SIP_TRANSFER ) SIP_PYNAME( addCurvedPart );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult addPart( QgsCurve *ring SIP_TRANSFER ) SIP_PYNAME( addCurvedPart );
|
||||
|
||||
/**
|
||||
* Translates feature by dx, dy
|
||||
@ -1412,7 +1412,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
int translateFeature( QgsFeatureId featureId, double dx, double dy );
|
||||
Q_INVOKABLE int translateFeature( QgsFeatureId featureId, double dx, double dy );
|
||||
|
||||
/**
|
||||
* Splits parts cut by the given line
|
||||
@ -1451,7 +1451,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult splitParts( const QgsPointSequence &splitLine, bool topologicalEditing = false );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult splitParts( const QgsPointSequence &splitLine, bool topologicalEditing = false );
|
||||
|
||||
/**
|
||||
* Splits features cut by the given line
|
||||
@ -1490,7 +1490,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
||||
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
|
||||
* changes can be discarded by calling rollBack().
|
||||
*/
|
||||
QgsGeometry::OperationResult splitFeatures( const QgsPointSequence &splitLine, bool topologicalEditing = false );
|
||||
Q_INVOKABLE QgsGeometry::OperationResult splitFeatures( const QgsPointSequence &splitLine, bool topologicalEditing = false );
|
||||
|
||||
/**
|
||||
* Adds topological points for every vertex of the geometry.
|
||||
|
Loading…
x
Reference in New Issue
Block a user