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;
217 virtual Qgis::ProcessingAlgorithmFlags flags() const
SIP_HOLDGIL;
225 virtual
bool canExecute( QString *errorMessage
SIP_OUT =
nullptr ) const;
234 virtual
bool checkParameterValues( const QVariantMap ¶meters,
244 virtual QVariantMap preprocessParameters( const QVariantMap ¶meters );
335 const QVariantMap ¶meters,
337 const QMap< QString, QgsProcessingAlgorithm::VectorProperties > &sourceProperties )
const;
403 virtual QWidget *createCustomParametersWidget( QWidget *parent =
nullptr ) const
SIP_FACTORY;
420 virtual
bool validateInputCrs( const QVariantMap ¶meters,
430 virtual QString asPythonCommand( const QVariantMap ¶meters,
QgsProcessingContext &context ) const;
453 virtual QVariantMap asMap( const QVariantMap ¶meters,
QgsProcessingContext &context ) const;
487 virtual
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) = 0;
512 void removeParameter( const QString &name )
SIP_HOLDGIL;
624 QString parameterAsString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
629 QString parameterAsExpression( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
634 double parameterAsDouble( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
639 int parameterAsInt( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
645 QList<
int> parameterAsInts( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
650 int parameterAsEnum( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
655 QList<
int> parameterAsEnums( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
661 QString parameterAsEnumString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
667 QStringList parameterAsEnumStrings( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
672 bool parameterAsBool( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
678 bool parameterAsBoolean( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
728 QString parameterAsCompatibleSourceLayerPath( const QVariantMap ¶meters, const QString &name,
760 QString parameterAsCompatibleSourceLayerPathAndLayerName( const QVariantMap ¶meters, const QString &name,
795 QString parameterAsOutputLayer( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
800 QString parameterAsFileOutput( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
886 QString parameterAsFile( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
892 QVariantList parameterAsMatrix( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
905 QStringList parameterAsFileList( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
910 QList<
double> parameterAsRange( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
924 QStringList parameterAsStrings( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
951 QColor parameterAsColor( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
958 QString parameterAsConnectionName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
965 QString parameterAsSchema( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
972 QString parameterAsDatabaseTableName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
979 QDateTime parameterAsDateTime( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1021 static QString invalidSourceError( const QVariantMap ¶meters, const QString &name );
1036 static QString invalidRasterError( const QVariantMap ¶meters, const QString &name );
1051 static QString invalidSinkError( const QVariantMap ¶meters, const QString &name );
1066 static QString invalidPointCloudError( const QVariantMap ¶meters, const QString &name );
1079 static QString writeFeatureError(
QgsFeatureSink *sink, const QVariantMap ¶meters, const QString &name );
1088 virtual
bool supportInPlaceEdit( const
QgsMapLayer *layer ) const;
1095 bool mHasPrepared = false;
1096 bool mHasExecuted = false;
1097 bool mHasPostProcessed = false;
1104 friend class TestQgsProcessing;
1105 friend class QgsProcessingModelAlgorithm;