QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSPROCESSINGPARAMETERMESHDATASET_H
17 #define QGSPROCESSINGPARAMETERMESHDATASET_H
47 const QString &description = QString(),
48 const QString &meshLayerParameterName = QString(),
49 QSet<int> supportedDataType = QSet<int>(),
50 bool optional =
false );
53 QString
type()
const override;
62 static QString
typeName() {
return QStringLiteral(
"meshdatasetgroups" ); }
65 QString meshLayerParameterName()
const;
71 static QList<int> valueAsDatasetGroup(
const QVariant &value );
74 QString mMeshLayerParameterName;
75 QSet<int> mSupportedDataType;
77 static bool valueIsAcceptable(
const QVariant &input,
bool allowEmpty );
99 return QCoreApplication::translate(
"Processing",
"An input allowing selection dataset groups from a mesh layer" );
102 QString
name()
const override
104 return QCoreApplication::translate(
"Processing",
"Mesh Dataset Groups" );
107 QString
id()
const override
114 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMeshDatasetGroups" );
119 return QStringLiteral(
"QgsProcessingParameterMeshDatasetGroups" );
124 return QStringList() << QObject::tr(
"list[int]: list of dataset group indexes, see QgsProcessingParameterMeshDatasetGroups docs" );
158 const QString &description = QString(),
159 const QString &meshLayerParameterName = QString(),
160 const QString &datasetGroupParameterName = QString() );
163 QString
type()
const override;
172 static QString
typeName() {
return QStringLiteral(
"meshdatasettime" ); }
175 QString meshLayerParameterName()
const;
178 QString datasetGroupParameterName()
const;
187 static QString valueAsTimeType(
const QVariant &value );
203 static QDateTime timeValueAsDefinedDateTime(
const QVariant &value );
206 QString mMeshLayerParameterName;
207 QString mDatasetGroupParameterName;
209 static bool valueIsAcceptable(
const QVariant &input,
bool allowEmpty );
231 return QCoreApplication::translate(
"Processing",
"An input allowing selection of dataset index from a mesh layer by time setting" );
234 QString
name()
const override
236 return QCoreApplication::translate(
"Processing",
"Mesh Dataset Time" );
239 QString
id()
const override
246 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMeshDatasetTime" );
251 return QStringLiteral(
"QgsProcessingParameterMeshDatasetTime" );
256 return QStringList() << QObject::tr(
"dict{}: dictionary, see QgsProcessingParameterMeshDatasetTime docs" );
264 #endif // QGSPROCESSINGPARAMETERMESHDATASET_H
virtual QgsProcessingParameterDefinition * create(const QString &name) const =0
Creates a new parameter of this type.
A parameter for processing algorithms that need a list of mesh dataset index from time parameter.
virtual QVariantMap toVariantMap() const
Saves this parameter to a QVariantMap.
virtual QString valueAsPythonString(const QVariant &value, QgsProcessingContext &context) const
Returns a string version of the parameter input value, which is suitable for use as an input paramete...
virtual QString description() const =0
A human readable and translatable description for this parameter type.
virtual QString name() const =0
A human readable and translatable short name for this parameter type.
Base class for the definition of processing parameters.
Makes metadata of processing parameters available.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.
virtual bool fromVariantMap(const QVariantMap &map)
Restores this parameter to a QVariantMap.
Contains information about the context in which a processing algorithm is executed.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g. wind speed) and a dataset in thi...
virtual QString id() const =0
A static id for this type which will be used for storing this parameter type.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
A parameter for processing algorithms that need a list of mesh dataset groups.
virtual QString className() const
Returns the corresponding class name for the parameter type.
virtual QString pythonImportString() const
Returns a valid Python import string for importing the corresponding parameter type,...
virtual QString asPythonString(QgsProcessing::PythonOutputType outputType=QgsProcessing::PythonQgsProcessingAlgorithmSubclass) const
Returns the parameter definition as a Python command which can be used within a Python Processing scr...
virtual QgsProcessingParameterDefinition * clone() const =0
Creates a clone of the parameter definition.
virtual QString type() const =0
Unique parameter type name.
PythonOutputType
Available Python output types.
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
virtual QStringList dependsOnOtherParameters() const
Returns a list of other parameter names on which this parameter is dependent (e.g.
virtual bool checkValueIsAcceptable(const QVariant &input, QgsProcessingContext *context=nullptr) const
Checks whether the specified input value is acceptable for the parameter.