18 #ifndef QGSALGORITHMDISSOLVE_H
19 #define QGSALGORITHMDISSOLVE_H
37 const std::function<
QgsGeometry(
const QVector<QgsGeometry>& )> &collector,
int maxQueueLength = 0, QgsProcessingFeatureSource::Flags sourceFlags = QgsProcessingFeatureSource::Flags() );
43 class QgsDissolveAlgorithm :
public QgsCollectorAlgorithm
48 QgsDissolveAlgorithm() =
default;
49 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
51 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmDissolve.svg" ) ); }
52 QString name()
const override;
53 QString displayName()
const override;
54 QStringList tags()
const override;
55 QString group()
const override;
56 QString groupId()
const override;
57 QString shortHelpString()
const override;
58 QgsDissolveAlgorithm *createInstance() const override
SIP_FACTORY;
62 QVariantMap processAlgorithm( const QVariantMap ¶meters,
70 class QgsCollectAlgorithm : public QgsCollectorAlgorithm
75 QgsCollectAlgorithm() =
default;
77 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmCollect.svg" ) ); }
78 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
79 QString name()
const override;
80 QString displayName()
const override;
81 QStringList tags()
const override;
82 QString group()
const override;
83 QString groupId()
const override;
84 QString shortHelpString()
const override;
85 QgsCollectAlgorithm *createInstance() const override
SIP_FACTORY;
89 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.
A geometry is the spatial representation of a feature.
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.