@@ -404,8 +404,7 @@ Uses :py:class:`QgsExpression`
404
404
:return: The expression which will be used to preview features for this layer
405
405
%End
406
406
407
- virtual QgsVectorDataProvider *dataProvider();
408
-
407
+ QgsVectorDataProvider *dataProvider() ${SIP_FINAL};
409
408
410
409
void setProviderEncoding( const QString &encoding );
411
410
%Docstring
@@ -443,8 +442,7 @@ Returns the join buffer object.
443
442
%End
444
443
const QList<QgsVectorLayerJoinInfo> vectorJoins() const;
445
444
446
- virtual bool setDependencies( const QSet<QgsMapLayerDependency> &layers );
447
-
445
+ bool setDependencies( const QSet<QgsMapLayerDependency> &layers ) ${SIP_FINAL};
448
446
%Docstring
449
447
Sets the list of dependencies.
450
448
@@ -457,8 +455,7 @@ Sets the list of dependencies.
457
455
.. versionadded:: 3.0
458
456
%End
459
457
460
- virtual QSet<QgsMapLayerDependency> dependencies() const;
461
-
458
+ QSet<QgsMapLayerDependency> dependencies() const ${SIP_FINAL};
462
459
%Docstring
463
460
Gets the list of dependencies. This includes data dependencies set by the user (:py:func:`setDataDependencies`)
464
461
as well as dependencies given by the provider
@@ -724,8 +721,7 @@ Ownership is transferred.
724
721
Returns point, line or polygon
725
722
%End
726
723
727
- virtual QgsWkbTypes::Type wkbType() const;
728
-
724
+ QgsWkbTypes::Type wkbType() const ${SIP_FINAL};
729
725
%Docstring
730
726
Returns the WKBType or WKBUnknown in case of error
731
727
%End
@@ -735,13 +731,10 @@ Returns the WKBType or WKBUnknown in case of error
735
731
Returns the provider type for this layer
736
732
%End
737
733
738
- virtual QgsCoordinateReferenceSystem sourceCrs() const;
739
-
740
- virtual QString sourceName() const;
741
-
742
-
743
- virtual bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context );
734
+ QgsCoordinateReferenceSystem sourceCrs() const ${SIP_FINAL};
735
+ QString sourceName() const ${SIP_FINAL};
744
736
737
+ bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context ) ${SIP_FINAL};
745
738
%Docstring
746
739
Reads vector layer specific state from project file Dom node.
747
740
@@ -750,8 +743,7 @@ Reads vector layer specific state from project file Dom node.
750
743
Called by :py:func:`QgsMapLayer.readXml()`
751
744
%End
752
745
753
- virtual bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const;
754
-
746
+ bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const ${SIP_FINAL};
755
747
%Docstring
756
748
Write vector layer specific state to project file Dom node.
757
749
@@ -760,13 +752,10 @@ Write vector layer specific state to project file Dom node.
760
752
Called by :py:func:`QgsMapLayer.writeXml()`
761
753
%End
762
754
763
- virtual QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const;
764
-
765
- virtual QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const;
766
-
767
-
768
- virtual void resolveReferences( QgsProject *project );
755
+ QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const ${SIP_FINAL};
756
+ QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const ${SIP_FINAL};
769
757
758
+ void resolveReferences( QgsProject *project ) ${SIP_FINAL};
770
759
%Docstring
771
760
Resolve references to other layers (kept as layer IDs after reading XML) into layer objects.
772
761
@@ -831,8 +820,8 @@ Load a named style from file/local db/datasource db
831
820
:param categories: the style categories to be loaded.
832
821
%End
833
822
834
- virtual QString loadNamedStyle( const QString &theURI, bool &resultFlag /Out/,
835
- QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories );
823
+ QString loadNamedStyle( const QString &theURI, bool &resultFlag /Out/,
824
+ QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
836
825
%Docstring
837
826
Calls loadNamedStyle( theURI, resultFlag, false );
838
827
Retained for backward compatibility
@@ -872,8 +861,8 @@ Returns the current auxiliary layer.
872
861
%End
873
862
874
863
875
- virtual bool readSymbology( const QDomNode &layerNode, QString &errorMessage,
876
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories );
864
+ bool readSymbology( const QDomNode &layerNode, QString &errorMessage,
865
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
877
866
%Docstring
878
867
Read the symbology for the current layer from the Dom node supplied.
879
868
@@ -885,8 +874,8 @@ Read the symbology for the current layer from the Dom node supplied.
885
874
:return: true in case of success.
886
875
%End
887
876
888
- virtual bool readStyle( const QDomNode &node, QString &errorMessage,
889
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories );
877
+ bool readStyle( const QDomNode &node, QString &errorMessage,
878
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
890
879
%Docstring
891
880
Read the style for the current layer from the Dom node supplied.
892
881
@@ -898,8 +887,8 @@ Read the style for the current layer from the Dom node supplied.
898
887
:return: true in case of success.
899
888
%End
900
889
901
- virtual bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
902
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const;
890
+ bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
891
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL} ;
903
892
%Docstring
904
893
Write the symbology for the layer into the docment provided.
905
894
@@ -912,8 +901,8 @@ Write the symbology for the layer into the docment provided.
912
901
:return: true in case of success.
913
902
%End
914
903
915
- virtual bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
916
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const;
904
+ bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
905
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL} ;
917
906
%Docstring
918
907
Write just the style information for the layer into the document
919
908
@@ -938,8 +927,7 @@ Writes the symbology of the layer into the document provided in SLD 1.1 format
938
927
:return: true in case of success
939
928
%End
940
929
941
- virtual bool readSld( const QDomNode &node, QString &errorMessage );
942
-
930
+ bool readSld( const QDomNode &node, QString &errorMessage ) ${SIP_FINAL};
943
931
944
932
long featureCount( const QString &legendKey ) const;
945
933
%Docstring
@@ -949,8 +937,7 @@ calculated by countSymbolFeatures()
949
937
:return: number of features rendered by symbol or -1 if failed or counts are not available
950
938
%End
951
939
952
- virtual FeatureAvailability hasFeatures() const;
953
-
940
+ FeatureAvailability hasFeatures() const ${SIP_FINAL};
954
941
%Docstring
955
942
Determines if this vector layer has features.
956
943
@@ -997,8 +984,7 @@ if the geometry type of the new data source matches the current geometry type of
997
984
.. versionadded:: 3.2
998
985
%End
999
986
1000
- virtual QString loadDefaultStyle( bool &resultFlag /Out/ );
1001
-
987
+ QString loadDefaultStyle( bool &resultFlag /Out/ ) ${SIP_FINAL};
1002
988
1003
989
QgsVectorLayerFeatureCounter *countSymbolFeatures();
1004
990
%Docstring
@@ -1034,8 +1020,7 @@ Returns the string (typically sql) used to define a subset of the layer.
1034
1020
:return: The subset string or null QString if not implemented by the provider
1035
1021
%End
1036
1022
1037
- virtual QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const;
1038
-
1023
+ QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const ${SIP_FINAL};
1039
1024
%Docstring
1040
1025
Query the layer for features specified in request.
1041
1026
@@ -1065,8 +1050,7 @@ Query the layer for the features with the given ids.
1065
1050
Query the layer for the features which intersect the specified rectangle.
1066
1051
%End
1067
1052
1068
- virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
1069
-
1053
+ bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
1070
1054
1071
1055
bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
1072
1056
%Docstring
@@ -1428,14 +1412,12 @@ Set labeling configuration. Takes ownership of the object.
1428
1412
.. versionadded:: 3.0
1429
1413
%End
1430
1414
1431
- virtual bool isEditable() const;
1432
-
1415
+ bool isEditable() const ${SIP_FINAL};
1433
1416
%Docstring
1434
1417
Returns true if the provider is in editing mode
1435
1418
%End
1436
1419
1437
- virtual bool isSpatial() const;
1438
-
1420
+ bool isSpatial() const ${SIP_FINAL};
1439
1421
%Docstring
1440
1422
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeometry
1441
1423
%End
@@ -1453,26 +1435,22 @@ false otherwise.
1453
1435
.. versionadded:: 3.0
1454
1436
%End
1455
1437
1456
- virtual void reload();
1457
-
1438
+ void reload() ${SIP_FINAL};
1458
1439
%Docstring
1459
1440
Synchronises with changes in the datasource
1460
1441
%End
1461
1442
1462
- virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) /Factory/;
1463
-
1443
+ QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) ${SIP_FINAL} /Factory/;
1464
1444
%Docstring
1465
1445
Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context
1466
1446
1467
1447
.. versionadded:: 2.4
1468
1448
%End
1469
1449
1470
- virtual QgsRectangle extent() const;
1450
+ QgsRectangle extent() const ${SIP_FINAL};
1451
+ QgsRectangle sourceExtent() const ${SIP_FINAL};
1471
1452
1472
- virtual QgsRectangle sourceExtent() const;
1473
-
1474
-
1475
- virtual QgsFields fields() const;
1453
+ QgsFields fields() const ${SIP_FINAL};
1476
1454
%Docstring
1477
1455
Returns the list of fields of this layer.
1478
1456
This also includes fields which have not yet been saved to the provider.
@@ -1490,8 +1468,7 @@ Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()
1490
1468
Returns the list of attributes which make up the layer's primary keys.
1491
1469
%End
1492
1470
1493
- virtual long featureCount() const;
1494
-
1471
+ long featureCount() const ${SIP_FINAL};
1495
1472
%Docstring
1496
1473
Returns feature count including changes which have not yet been committed
1497
1474
If you need only the count of committed features call this method on this layer's provider.
@@ -1715,8 +1692,7 @@ Deletes a list of attribute fields (but does not commit it)
1715
1692
:return: true if at least one attribute has been deleted
1716
1693
%End
1717
1694
1718
- virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
1719
-
1695
+ bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
1720
1696
1721
1697
bool deleteFeature( QgsFeatureId fid );
1722
1698
%Docstring
@@ -1999,8 +1975,7 @@ for the field at `index`.
1999
1975
.. versionadded:: 3.0
2000
1976
%End
2001
1977
2002
- virtual QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const;
2003
-
1978
+ QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const ${SIP_FINAL};
2004
1979
%Docstring
2005
1980
Calculates a list of unique values contained within an attribute in the layer. Note that
2006
1981
in some circumstances when unsaved changes are present for the layer then the returned list
@@ -2034,8 +2009,7 @@ returned list).
2034
2009
:return: list of unique strings containing substring
2035
2010
%End
2036
2011
2037
- virtual QVariant minimumValue( int index ) const;
2038
-
2012
+ QVariant minimumValue( int index ) const ${SIP_FINAL};
2039
2013
%Docstring
2040
2014
Returns the minimum value for an attribute column or an invalid variant in case of error.
2041
2015
Note that in some circumstances when unsaved changes are present for the layer then the
@@ -2047,8 +2021,7 @@ been changed inside the edit buffer then the previous saved value may be returne
2047
2021
.. seealso:: :py:func:`uniqueValues`
2048
2022
%End
2049
2023
2050
- virtual QVariant maximumValue( int index ) const;
2051
-
2024
+ QVariant maximumValue( int index ) const ${SIP_FINAL};
2052
2025
%Docstring
2053
2026
Returns the maximum value for an attribute column or an invalid variant in case of error.
2054
2027
Note that in some circumstances when unsaved changes are present for the layer then the
@@ -2112,8 +2085,7 @@ and 1.0 (fully opaque).
2112
2085
.. versionadded:: 3.0
2113
2086
%End
2114
2087
2115
- virtual QString htmlMetadata() const;
2116
-
2088
+ QString htmlMetadata() const ${SIP_FINAL};
2117
2089
2118
2090
void setSimplifyMethod( const QgsVectorSimplifyMethod &simplifyMethod );
2119
2091
%Docstring
@@ -2181,11 +2153,9 @@ It may also contain embedded expressions.
2181
2153
.. versionadded:: 3.0
2182
2154
%End
2183
2155
2184
- virtual QgsExpressionContext createExpressionContext() const;
2185
-
2186
-
2187
- virtual QgsExpressionContextScope *createExpressionContextScope() const /Factory/;
2156
+ QgsExpressionContext createExpressionContext() const ${SIP_FINAL};
2188
2157
2158
+ QgsExpressionContextScope *createExpressionContextScope() const ${SIP_FINAL} /Factory/;
2189
2159
2190
2160
QgsEditFormConfig editFormConfig() const;
2191
2161
%Docstring
@@ -2596,8 +2566,7 @@ Emitted when the feature count for symbols on this layer has been recalculated.
2596
2566
%End
2597
2567
2598
2568
protected:
2599
- virtual void setExtent( const QgsRectangle &rect );
2600
-
2569
+ void setExtent( const QgsRectangle &rect ) ${SIP_FINAL};
2601
2570
%Docstring
2602
2571
Sets the extent
2603
2572
%End
0 commit comments