19 #include <QStringList>
22 : mFilter( FilterNone )
28 : mFilter( FilterFid )
35 : mFilter( FilterRect )
84 for (
int idx = 0; idx < fields.
count(); ++idx )
86 if ( attrNames.contains( fields[idx].name() ) )
A rectangle specified with double values.
const Flags & flags() const
QgsFeatureRequest & setSubsetOfAttributes(const QgsAttributeList &attrs)
Set a subset of attributes that will be fetched.
Container of fields for a vector layer.
QgsFeatureRequest & setFilterFid(QgsFeatureId fid)
Set feature ID that should be fetched.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
QgsFeatureRequest()
construct a default request: for all features get attributes and geometries
QList< int > QgsAttributeList
Filter using a rectangle.
int count() const
Return number of items.
Fetch only a subset of attributes (setSubsetOfAttributes sets this flag)
QgsFeatureRequest & setFlags(Flags flags)
Set flags that affect how features will be fetched.
QgsFeatureRequest & setFilterRect(const QgsRectangle &rect)
Set rectangle from which features will be taken.