18#ifndef QGSALGORITHMDISTANCEWITHIN_H
19#define QGSALGORITHMDISTANCEWITHIN_H
38 void addDistanceParameter();
41 double distance,
const QgsProperty &distanceProperty,
48 double distance,
const QgsProperty &distanceProperty,
49 const std::function<
void(
const QgsFeature & )> &handleFeatureFunction,
bool onlyRequireTargetIds,
60class QgsSelectWithinDistanceAlgorithm :
public QgsDistanceWithinAlgorithm
65 QgsSelectWithinDistanceAlgorithm() =
default;
66 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
68 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectDistance.svg" ) ); }
69 QString name()
const override;
70 Flags flags()
const override;
71 QString displayName()
const override;
72 QStringList tags()
const override;
73 QString group()
const override;
74 QString groupId()
const override;
75 QString shortHelpString()
const override;
76 QgsSelectWithinDistanceAlgorithm *createInstance() const override
SIP_FACTORY;
80 QVariantMap processAlgorithm( const QVariantMap ¶meters,
88class QgsExtractWithinDistanceAlgorithm : public QgsDistanceWithinAlgorithm
93 QgsExtractWithinDistanceAlgorithm() =
default;
94 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
95 QString name()
const override;
96 QString displayName()
const override;
97 QStringList tags()
const override;
98 QString group()
const override;
99 QString groupId()
const override;
100 QString shortHelpString()
const override;
101 QgsExtractWithinDistanceAlgorithm *createInstance() const override
SIP_FACTORY;
105 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.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
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.
A store for object properties.