55 if (
dynamic_cast< QgsProcessingModelAlgorithm *
>( sipCpp ) != NULL )
56 sipType = sipType_QgsProcessingModelAlgorithm;
58 sipType = sipType_QgsProcessingFeatureBasedAlgorithm;
60 sipType = sipType_QgsProcessingAlgorithm;
152 virtual QString shortDescription() const
SIP_HOLDGIL;
158 virtual QStringList tags() const
SIP_HOLDGIL {
return QStringList(); }
166 virtual QString shortHelpString() const
SIP_HOLDGIL;
191 virtual
Qgis::ProcessingAlgorithmDocumentationFlags documentationFlags() const
SIP_HOLDGIL;
234 virtual
bool canExecute( QString *errorMessage
SIP_OUT =
nullptr ) const;
243 virtual
bool checkParameterValues( const QVariantMap ¶meters,
253 virtual QVariantMap preprocessParameters( const QVariantMap ¶meters );
344 const QVariantMap ¶meters,
346 const QMap< QString, QgsProcessingAlgorithm::VectorProperties > &sourceProperties )
const;
416 virtual QWidget *createCustomParametersWidget( QWidget *parent =
nullptr ) const
SIP_FACTORY;
433 virtual
bool validateInputCrs( const QVariantMap ¶meters,
443 virtual QString asPythonCommand( const QVariantMap ¶meters,
QgsProcessingContext &context ) const;
466 virtual QVariantMap asMap( const QVariantMap ¶meters,
QgsProcessingContext &context ) const;
480 virtual
bool supportInPlaceEdit( const
QgsMapLayer *layer ) const;
509 virtual
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) = 0;
540 void removeParameter( const QString &name )
SIP_HOLDGIL;
658 QString parameterAsString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
663 QString parameterAsExpression( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
668 double parameterAsDouble( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
673 int parameterAsInt( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
679 QList<
int> parameterAsInts( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
684 int parameterAsEnum( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
689 QList<
int> parameterAsEnums( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
695 QString parameterAsEnumString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
701 QStringList parameterAsEnumStrings( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
706 bool parameterAsBool( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
712 bool parameterAsBoolean( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
762 QString parameterAsCompatibleSourceLayerPath( const QVariantMap ¶meters, const QString &name,
794 QString parameterAsCompatibleSourceLayerPathAndLayerName( const QVariantMap ¶meters, const QString &name,
829 QString parameterAsOutputLayer( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
834 QString parameterAsFileOutput( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
920 QString parameterAsFile( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
926 QVariantList parameterAsMatrix( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
939 QStringList parameterAsFileList( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
944 QList<
double> parameterAsRange( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
958 QStringList parameterAsStrings( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
985 QColor parameterAsColor( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
992 QString parameterAsConnectionName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
999 QString parameterAsSchema( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1006 QString parameterAsDatabaseTableName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1013 QDateTime parameterAsDateTime( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1055 static QString invalidSourceError( const QVariantMap ¶meters, const QString &name );
1070 static QString invalidRasterError( const QVariantMap ¶meters, const QString &name );
1085 static QString invalidSinkError( const QVariantMap ¶meters, const QString &name );
1100 static QString invalidPointCloudError( const QVariantMap ¶meters, const QString &name );
1113 static QString writeFeatureError(
QgsFeatureSink *sink, const QVariantMap ¶meters, const QString &name );
1120 bool mHasPrepared = false;
1121 bool mHasExecuted = false;
1122 bool mHasPostProcessed = false;
1129 friend class TestQgsProcessing;
1130 friend class QgsProcessingModelAlgorithm;
1132 friend class DummyRaiseExceptionAlgorithm;