16#ifndef QGSPROCESSINGPARAMETERINTERPOLATIONPIXELSIZE_H
17#define QGSPROCESSINGPARAMETERINTERPOLATIONPIXELSIZE_H
25using namespace Qt::StringLiterals;
47 QString
type()
const override;
49 static QString
typeName() {
return u
"interpolationpixelsize"_s; }
63 QString mInterpolationSourceParam;
80 QgsProcessingParameterDefinition *create(
const QString &name )
const override SIP_FACTORY {
return new QgsProcessingParameterInterpolationPixelSize( name ); }
82 QString
description()
const override {
return QCoreApplication::translate(
"Processing",
"An input allowing setting the pixel size for interpolation algorithms." ); }
84 QString
name()
const override {
return QCoreApplication::translate(
"Processing",
"Interpolation Pixel Size" ); }
88 QString pythonImportString()
const override {
return u
"from qgis.core import QgsProcessingParameterInterpolationPixelSize"_s; }
90 QString className()
const override {
return u
"QgsProcessingParameterInterpolationPixelSize"_s; }
92 QStringList acceptedPythonTypes()
const override {
return QStringList() << u
"int"_s << u
"float"_s; }
94 QStringList acceptedStringValues()
const override {
return QStringList() << QObject::tr(
"A numeric value" ); }
96 QStringList acceptedParameterTypes()
const override
108 QStringList acceptedOutputTypes()
const override
113 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
QVariant defaultValue() const
Returns the default value for the parameter.
QString description() const
Returns the description for the parameter.
QString name() const
Returns the name of the parameter.
virtual QColor modelColor() const
Returns the color to use for the parameter in model designer windows.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
QgsProcessingParameterInterpolationPixelSize(const QString &name, const QString &description=QString(), const QString &interpolationSourceParameter=QString(), const QString &extentParameter=QString(), const QVariant &defaultValue=QVariant())
Constructor for QgsProcessingParameterInterpolationPixelSize.
QString extentParameter() const
Returns the linked extent parameter name.
QString interpolationSourceParameter() const
Returns the linked interpolation source parameter name.
QString asPythonString(QgsProcessing::PythonOutputType outputType=QgsProcessing::PythonOutputType::PythonQgsProcessingAlgorithmSubclass) const override
Returns the parameter definition as a Python command which can be used within a Python Processing scr...
QString type() const override
Unique parameter type name.
QgsProcessingParameterDefinition * clone() const override
Creates a clone of the parameter definition.
static QString typeName()
Returns the type name for the parameter class.
QgsProcessingParameterNumber(const QString &name, const QString &description=QString(), Qgis::ProcessingNumberParameterType type=Qgis::ProcessingNumberParameterType::Integer, const QVariant &defaultValue=QVariant(), bool optional=false, double minValue=std::numeric_limits< double >::lowest()+1, double maxValue=std::numeric_limits< double >::max())
Constructor for QgsProcessingParameterNumber.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
Makes metadata of processing parameters available.
static QString typeName()
Returns the type name for the parameter class.
PythonOutputType
Available Python output types.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.