18#ifndef QGSALGORITHMEXTRACTBYLOCATION_H
19#define QGSALGORITHMEXTRACTBYLOCATION_H
50 void addPredicateParameter();
51 Predicate reversePredicate( Predicate predicate )
const;
52 QStringList predicateOptionsList()
const;
66class QgsSelectByLocationAlgorithm :
public QgsLocationBasedAlgorithm
71 QgsSelectByLocationAlgorithm() =
default;
72 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
74 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectLocation.svg" ) ); }
75 QString name()
const override;
76 Flags flags()
const override;
77 QString displayName()
const override;
78 QStringList tags()
const override;
79 QString group()
const override;
80 QString groupId()
const override;
81 QString shortHelpString()
const override;
82 QgsSelectByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
86 QVariantMap processAlgorithm( const QVariantMap ¶meters,
94class QgsExtractByLocationAlgorithm : public QgsLocationBasedAlgorithm
99 QgsExtractByLocationAlgorithm() =
default;
100 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
101 QString name()
const override;
102 QString displayName()
const override;
103 QStringList tags()
const override;
104 QString group()
const override;
105 QString groupId()
const override;
106 QString shortHelpString()
const override;
107 QgsExtractByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
111 QVariantMap processAlgorithm( const QVariantMap ¶meters,
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
static QString iconPath(const QString &iconFile)
Returns path to the desired icon file.
An interface for objects which provide features via a getFeatures method.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
QSet< QgsFeatureId > QgsFeatureIds