QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
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 : matthias@opengis.ch
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
:
38
QgsVectorLayerFeaturePool
(
QgsVectorLayer
*
layer
);
39
40
bool
addFeature
(
QgsFeature
&feature,
QgsFeatureSink::Flags
flags =
QgsFeatureSink::Flags
() )
override
;
41
42
using
QgsFeaturePool::addFeatures
;
43
bool
addFeatures
(
QgsFeatureList
&features,
QgsFeatureSink::Flags
flags =
QgsFeatureSink::Flags
() )
override
;
44
void
updateFeature
(
QgsFeature
&feature )
override
;
45
void
deleteFeature
(
QgsFeatureId
fid )
override
;
46
47
private
slots:
48
void
onGeometryChanged(
QgsFeatureId
fid,
const
QgsGeometry
&geometry );
49
void
onFeatureDeleted(
QgsFeatureId
fid );
50
};
51
52
#endif
// QGSVECTORLAYERFEATUREPOOL_H
QgsFeaturePool::updateFeature
virtual void updateFeature(QgsFeature &feature)=0
Updates a feature in this pool.
QgsFeaturePool::QgsFeaturePool
QgsFeaturePool(QgsVectorLayer *layer)
Creates a new feature pool for layer.
Definition
qgsfeaturepool.cpp:29
QgsFeaturePool::deleteFeature
virtual void deleteFeature(QgsFeatureId fid)=0
Removes a feature from this pool.
QgsFeaturePool::layer
QgsVectorLayer * layer() const
Gets a pointer to the underlying layer.
Definition
qgsfeaturepool.cpp:122
QgsFeatureSink::addFeature
virtual bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())
Adds a single feature to the sink.
Definition
qgsfeaturesink.cpp:25
QgsFeatureSink::addFeatures
virtual bool addFeatures(QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())=0
Adds a list of features to the sink.
QgsFeatureSink::Flags
QFlags< Flag > Flags
Definition
qgsfeaturesink.h:78
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition
qgsfeature.h:60
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
QgsVectorLayerFeaturePool::QgsVectorLayerFeaturePool
QgsVectorLayerFeaturePool(QgsVectorLayer *layer)
Creates a new feature pool for layer.
Definition
qgsvectorlayerfeaturepool.cpp:24
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
QgsFeatureList
QList< QgsFeature > QgsFeatureList
Definition
qgsfeature.h:1289
QgsFeatureId
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Definition
qgsfeatureid.h:32
qgsfeaturepool.h
qgsvectorlayer.h
Generated on
for QGIS API Documentation by
1.17.0