16#ifndef QGSPROCESSINGPARAMETERHEATMAPPIXELSIZE_H
17#define QGSPROCESSINGPARAMETERHEATMAPPIXELSIZE_H
25using namespace Qt::StringLiterals;
48 QString
type()
const override;
50 static QString
typeName() {
return u
"heatmappixelsize"_s; }
71 QString mRadiusFieldParam;
87 QgsProcessingParameterDefinition *create(
const QString &name )
const override SIP_FACTORY {
return new QgsProcessingParameterHeatmapPixelSize( name ); }
89 QString
description()
const override {
return QCoreApplication::translate(
"Processing",
"An input allowing setting the pixel size for heatmap algorithms." ); }
91 QString
name()
const override {
return QCoreApplication::translate(
"Processing",
"Heatmap Pixel Size" ); }
95 QString pythonImportString()
const override {
return u
"from qgis.core import QgsProcessingParameterHeatmapPixelSize"_s; }
97 QString className()
const override {
return u
"QgsProcessingParameterHeatmapPixelSize"_s; }
99 QStringList acceptedPythonTypes()
const override {
return QStringList() << u
"int"_s << u
"float"_s; }
101 QStringList acceptedStringValues()
const override {
return QStringList() << QObject::tr(
"A numeric value" ); }
103 QStringList acceptedParameterTypes()
const override
115 QStringList acceptedOutputTypes()
const override
120 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.
QgsProcessingParameterHeatmapPixelSize(const QString &name, const QString &description=QString(), const QString &parentLayerParameter=QString(), const QString &radiusParameter=QString(), const QString &radiusFieldParameter=QString(), const QVariant &defaultValue=QVariant())
Constructor for QgsProcessingParameterHeatmapPixelSize.
QString radiusFieldParameter() const
Returns the radius field parameter name.
QString parentLayerParameter() const
Returns the linked parent layer parameter name.
static QString typeName()
Returns the type name for the parameter class.
QString radiusParameter() const
Returns the linked radius 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.