QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | Static Public Member Functions | List of all members
QgsProcessingOutputVectorLayer Class Reference

A vector layer output for processing algorithms. More...

#include <qgsprocessingoutputs.h>

Inheritance diagram for QgsProcessingOutputVectorLayer:
Inheritance graph
[legend]

Public Member Functions

 QgsProcessingOutputVectorLayer (const QString &name, const QString &description=QString(), Qgis::ProcessingSourceType type=Qgis::ProcessingSourceType::VectorAnyGeometry)
 Constructor for QgsProcessingOutputVectorLayer. More...
 
Qgis::ProcessingSourceType dataType () const
 Returns the layer type for the output layer. More...
 
void setDataType (Qgis::ProcessingSourceType type)
 Sets the layer type for the output layer. More...
 
QString type () const override
 Unique output type name. More...
 
- Public Member Functions inherited from QgsProcessingOutputDefinition
 QgsProcessingOutputDefinition (const QString &name, const QString &description=QString())
 Constructor for QgsProcessingOutputDefinition. More...
 
virtual ~QgsProcessingOutputDefinition ()=default
 
bool autoCreated () const
 Returns true if the output was automatically created when adding a parameter. More...
 
QString description () const
 Returns the description for the output. More...
 
QString name () const
 Returns the name of the output. More...
 
void setAutoCreated (bool autoCreated)
 Sets whether an output was automatically created when adding a parameter. More...
 
void setDescription (const QString &description)
 Sets the description for the output. More...
 
void setName (const QString &name)
 Sets the name of the output. More...
 
virtual QString type () const =0
 Unique output type name. More...
 
virtual QString valueAsFormattedString (const QVariant &value, QgsProcessingContext &context, bool &ok) const
 Returns a HTML string version of the parameter output value (if possible). More...
 
virtual QString valueAsString (const QVariant &value, QgsProcessingContext &context, bool &ok) const
 Returns a string version of the parameter output value (if possible). More...
 

Static Public Member Functions

static QString typeName ()
 Returns the type name for the output class. More...
 

Additional Inherited Members

- Protected Attributes inherited from QgsProcessingOutputDefinition
bool mAutoCreated = false
 
QString mDescription
 Output description. More...
 
QString mName
 Output name. More...
 

Detailed Description

A vector layer output for processing algorithms.

Definition at line 212 of file qgsprocessingoutputs.h.

Constructor & Destructor Documentation

◆ QgsProcessingOutputVectorLayer()

QgsProcessingOutputVectorLayer::QgsProcessingOutputVectorLayer ( const QString &  name,
const QString &  description = QString(),
Qgis::ProcessingSourceType  type = Qgis::ProcessingSourceType::VectorAnyGeometry 
)

Constructor for QgsProcessingOutputVectorLayer.

Definition at line 51 of file qgsprocessingoutputs.cpp.

Member Function Documentation

◆ dataType()

Qgis::ProcessingSourceType QgsProcessingOutputVectorLayer::dataType ( ) const

Returns the layer type for the output layer.

See also
setDataType()

Definition at line 56 of file qgsprocessingoutputs.cpp.

◆ setDataType()

void QgsProcessingOutputVectorLayer::setDataType ( Qgis::ProcessingSourceType  type)

Sets the layer type for the output layer.

See also
dataType()

Definition at line 61 of file qgsprocessingoutputs.cpp.

◆ type()

QString QgsProcessingOutputVectorLayer::type ( ) const
inlineoverridevirtual

Unique output type name.

Implements QgsProcessingOutputDefinition.

Definition at line 225 of file qgsprocessingoutputs.h.

◆ typeName()

static QString QgsProcessingOutputVectorLayer::typeName ( )
inlinestatic

Returns the type name for the output class.

Definition at line 224 of file qgsprocessingoutputs.h.


The documentation for this class was generated from the following files: