QGIS API Documentation
3.6.0-Noosa (5873452)
|
Pair of QgsFeature and QgsVectorLayer. More...
#include <qgsquickfeaturelayerpair.h>
Public Member Functions | |
QgsQuickFeatureLayerPair () | |
Constructs invalid feature-layer pair. More... | |
QgsQuickFeatureLayerPair (const QgsFeature &feature, QgsVectorLayer *layer) | |
Constructor of a new feature-layer pair. More... | |
QgsFeature | feature () const |
Feature that belongs to layer. More... | |
QgsFeature & | featureRef () |
Feature that belongs to layer. More... | |
bool | isValid () const |
Whether. More... | |
QgsVectorLayer * | layer () const |
Vector layer to which the feature belongs. More... | |
bool | operator!= (const QgsQuickFeatureLayerPair &other) const |
bool | operator== (const QgsQuickFeatureLayerPair &other) const |
Properties | |
QgsFeature | feature |
Feature that belongs to layer. More... | |
QgsVectorLayer | layer |
Vector layer to which the feature belongs. More... | |
bool | valid |
Whether. More... | |
Pair of QgsFeature and QgsVectorLayer.
Vector layer is commonly used to gather geometry type or CRS for the feature.
Note that the feature may or may not be part of the layer's features
Definition at line 40 of file qgsquickfeaturelayerpair.h.
|
default |
Constructs invalid feature-layer pair.
QgsQuickFeatureLayerPair::QgsQuickFeatureLayerPair | ( | const QgsFeature & | feature, |
QgsVectorLayer * | layer | ||
) |
Constructor of a new feature-layer pair.
feature | QgsFeature associated. |
layer | Vector layer which the feature belongs to |
Definition at line 23 of file qgsquickfeaturelayerpair.cpp.
QgsFeature QgsQuickFeatureLayerPair::feature | ( | ) | const |
Feature that belongs to layer.
This is a readonly property.
QgsFeature & QgsQuickFeatureLayerPair::featureRef | ( | ) |
Feature that belongs to layer.
This is a readonly property.
Definition at line 39 of file qgsquickfeaturelayerpair.cpp.
bool QgsQuickFeatureLayerPair::isValid | ( | ) | const |
Whether.
This is a readonly property.
Definition at line 44 of file qgsquickfeaturelayerpair.cpp.
QgsVectorLayer* QgsQuickFeatureLayerPair::layer | ( | ) | const |
Vector layer to which the feature belongs.
May be nullptr if pair is not valid
This is a readonly property.
bool QgsQuickFeatureLayerPair::operator!= | ( | const QgsQuickFeatureLayerPair & | other | ) | const |
Definition at line 54 of file qgsquickfeaturelayerpair.cpp.
bool QgsQuickFeatureLayerPair::operator== | ( | const QgsQuickFeatureLayerPair & | other | ) | const |
Definition at line 49 of file qgsquickfeaturelayerpair.cpp.
|
read |
Feature that belongs to layer.
This is a readonly property.
Definition at line 56 of file qgsquickfeaturelayerpair.h.
|
read |
Vector layer to which the feature belongs.
May be nullptr if pair is not valid
This is a readonly property.
Definition at line 49 of file qgsquickfeaturelayerpair.h.
|
read |
Whether.
This is a readonly property.
Definition at line 66 of file qgsquickfeaturelayerpair.h.