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;
534 void removeParameter( const QString &name )
SIP_HOLDGIL;
646 QString parameterAsString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
651 QString parameterAsExpression( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
656 double parameterAsDouble( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
661 int parameterAsInt( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
667 QList<
int> parameterAsInts( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
672 int parameterAsEnum( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
677 QList<
int> parameterAsEnums( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
683 QString parameterAsEnumString( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
689 QStringList parameterAsEnumStrings( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
694 bool parameterAsBool( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
700 bool parameterAsBoolean( const QVariantMap ¶meters, const QString &name, const
QgsProcessingContext &context ) const;
750 QString parameterAsCompatibleSourceLayerPath( const QVariantMap ¶meters, const QString &name,
782 QString parameterAsCompatibleSourceLayerPathAndLayerName( const QVariantMap ¶meters, const QString &name,
817 QString parameterAsOutputLayer( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
822 QString parameterAsFileOutput( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
908 QString parameterAsFile( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
914 QVariantList parameterAsMatrix( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
927 QStringList parameterAsFileList( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
932 QList<
double> parameterAsRange( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
946 QStringList parameterAsStrings( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
973 QColor parameterAsColor( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
980 QString parameterAsConnectionName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
987 QString parameterAsSchema( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
994 QString parameterAsDatabaseTableName( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1001 QDateTime parameterAsDateTime( const QVariantMap ¶meters, const QString &name,
QgsProcessingContext &context ) const;
1043 static QString invalidSourceError( const QVariantMap ¶meters, const QString &name );
1058 static QString invalidRasterError( const QVariantMap ¶meters, const QString &name );
1073 static QString invalidSinkError( const QVariantMap ¶meters, const QString &name );
1088 static QString invalidPointCloudError( const QVariantMap ¶meters, const QString &name );
1101 static QString writeFeatureError(
QgsFeatureSink *sink, const QVariantMap ¶meters, const QString &name );
1108 bool mHasPrepared = false;
1109 bool mHasExecuted = false;
1110 bool mHasPostProcessed = false;
1117 friend class TestQgsProcessing;
1118 friend class QgsProcessingModelAlgorithm;
1120 friend class DummyRaiseExceptionAlgorithm;