QgsProcessingParameterLimitedDataTypes class

Can be inherited by parameters which require limits to their acceptable data types.

Derived classes

class QgsProcessingParameterFeatureSource
An input feature source (such as vector layers) parameter for processing algorithms.
class QgsProcessingParameterVectorLayer
A vector layer (with or without geometry) parameter for processing algorithms.

Constructors, destructors, conversion operators

QgsProcessingParameterLimitedDataTypes(const QList<int>& types = QList<int>())
Constructor for QgsProcessingParameterLimitedDataTypes, with a list of acceptable data types.

Public functions

auto dataTypes() const -> QList<int>
Returns the geometry types for sources acceptable by the parameter.
void setDataTypes(const QList<int>& types)
Sets the geometry types for sources acceptable by the parameter.

Protected variables

QList<int> mDataTypes
List of acceptable data types for the parameter.

Function documentation

QList<int> QgsProcessingParameterLimitedDataTypes::dataTypes() const

Returns the geometry types for sources acceptable by the parameter.

void QgsProcessingParameterLimitedDataTypes::setDataTypes(const QList<int>& types)

Sets the geometry types for sources acceptable by the parameter.