QGIS API Documentation 4.3.0-Master (729d6602d19)
Loading...
Searching...
No Matches
qgsprocessingparameterinterpolationsource.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingparameterinterpolationsource.h
3 ---------------------
4 Date : August 2026
5 Copyright : (C) 2026 by Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSPROCESSINGPARAMETERINTERPOLATIONSOURCE_H
17#define QGSPROCESSINGPARAMETERINTERPOLATIONSOURCE_H
18
22
23#include <QString>
24
25using namespace Qt::StringLiterals;
26
27
35{
36 public:
38 QgsProcessingParameterInterpolationSource( const QString &name, const QString &description = QString() );
39
41 QString type() const override;
43 static QString typeName() { return u"interpolationdata"_s; } // cppcheck-suppress duplInheritedMember
45 bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = nullptr ) const override;
46};
47
48#ifndef SIP_RUN
50
58class CORE_EXPORT QgsProcessingParameterTypeInterpolationSource : public QgsProcessingParameterType
59{
60 public:
61 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY { return new QgsProcessingParameterInterpolationSource( name ); }
62
63 QString description() const override { return QCoreApplication::translate( "Processing", "An input for specifying interpolation source layers and their properties." ); }
64
65 QString name() const override { return QCoreApplication::translate( "Processing", "Interpolation Sources" ); }
66
67 QString id() const override { return QgsProcessingParameterInterpolationSource::typeName(); }
68
69 QString pythonImportString() const override { return u"from qgis.core import QgsProcessingParameterInterpolationSource"_s; }
70
71 QString className() const override { return u"QgsProcessingParameterInterpolationSource"_s; }
72
73 QStringList acceptedPythonTypes() const override { return QStringList() << u"str"_s; }
74
75 QStringList acceptedStringValues() const override { return QStringList() << QObject::tr( "A string value representing encoded interpolation parameter format" ); }
76
77 QStringList acceptedParameterTypes() const override { return QStringList() << QgsProcessingParameterInterpolationSource::typeName() << QgsProcessingParameterString::typeName(); }
78
79 QStringList acceptedOutputTypes() const override { return QStringList() << QgsProcessingOutputVariant::typeName() << QgsProcessingOutputString::typeName(); }
80};
81
83#endif
84
85#endif // QGSPROCESSINGPARAMETERINTERPOLATIONSOURCE_H
Contains information about the context in which a processing algorithm is executed.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
virtual QString asPythonString(QgsProcessing::PythonOutputType outputType=QgsProcessing::PythonOutputType::PythonQgsProcessingAlgorithmSubclass) const
Returns the parameter definition as a Python command which can be used within a Python Processing scr...
QString description() const
Returns the description for the parameter.
QgsProcessingParameterDefinition(const QString &name, const QString &description=QString(), const QVariant &defaultValue=QVariant(), bool optional=false, const QString &help=QString())
Constructor for QgsProcessingParameterDefinition.
virtual QgsProcessingParameterDefinition * clone() const =0
Creates a clone of the parameter definition.
virtual QString type() const =0
Unique parameter type name.
QString name() const
Returns the name of the parameter.
virtual bool checkValueIsAcceptable(const QVariant &input, QgsProcessingContext *context=nullptr) const
Checks whether the specified input value is acceptable for the parameter.
static QString typeName()
Returns the type name for the parameter class.
QgsProcessingParameterInterpolationSource(const QString &name, const QString &description=QString())
Constructor for QgsProcessingParameterInterpolationSource.
static QString typeName()
Returns the type name for the parameter class.
Makes metadata of processing parameters available.
PythonOutputType
Available Python output types.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.
#define SIP_FACTORY
Definition qgis_sip.h:83