QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
analysis
vector
geometry_checker
qgsvectorlayerfeaturepool.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorlayerfeaturepool.h
3
--------------------------------------
4
Date : 18.9.2018
5
Copyright : (C) 2018 by Matthias Kuhn
6
email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSVECTORLAYERFEATUREPOOL_H
17
#define QGSVECTORLAYERFEATUREPOOL_H
18
19
#include "
qgsfeaturepool.h
"
20
#include "
qgsvectorlayer.h
"
21
22
#define SIP_NO_FILE
23
30
class
ANALYSIS_EXPORT
QgsVectorLayerFeaturePool
:
public
QObject,
public
QgsFeaturePool
31
{
32
Q_OBJECT
33
34
public
:
35
39
QgsVectorLayerFeaturePool
(
QgsVectorLayer
*layer );
40
41
bool
addFeature
(
QgsFeature
&feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() )
override
;
42
bool
addFeatures
(
QgsFeatureList
&features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() )
override
;
43
void
updateFeature
(
QgsFeature
&feature )
override
;
44
void
deleteFeature
(
QgsFeatureId
fid )
override
;
45
46
private
slots:
47
void
onGeometryChanged(
QgsFeatureId
fid,
const
QgsGeometry
&geometry );
48
void
onFeatureDeleted(
QgsFeatureId
fid );
49
};
50
51
#endif // QGSVECTORLAYERFEATUREPOOL_H
QgsFeatureSink::addFeature
virtual bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())
Adds a single feature to the sink.
Definition:
qgsfeaturesink.cpp:20
qgsfeaturepool.h
QgsFeaturePool::deleteFeature
virtual void deleteFeature(QgsFeatureId fid)=0
Removes a feature from this pool.
QgsFeaturePool::updateFeature
virtual void updateFeature(QgsFeature &feature)=0
Updates a feature in this pool.
QgsFeatureList
QList< QgsFeature > QgsFeatureList
Definition:
qgsfeature.h:572
qgsvectorlayer.h
QgsVectorLayerFeaturePool
Definition:
qgsvectorlayerfeaturepool.h:30
QgsGeometry
Definition:
qgsgeometry.h:122
QgsVectorLayer
Definition:
qgsvectorlayer.h:385
QgsFeatureSink::addFeatures
virtual bool addFeatures(QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())=0
Adds a list of features to the sink.
QgsFeature
Definition:
qgsfeature.h:55
QgsFeaturePool
Definition:
qgsfeaturepool.h:37
QgsFeatureId
qint64 QgsFeatureId
Definition:
qgsfeatureid.h:25
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17