QgsProcessingContext::LayerDetails class

Details for layers to load into projects.

Constructors, destructors, conversion operators

LayerDetails(const QString& name, QgsProject* project, const QString& outputName = QString(), QgsProcessingUtils::LayerHint layerTypeHint = QgsProcessingUtils::UnknownType)
Constructor for LayerDetails.
LayerDetails() defaulted
Default constructor.

Public functions

auto postProcessor() const -> QgsProcessingLayerPostProcessorInterface*
Layer post-processor.
void setPostProcessor(QgsProcessingLayerPostProcessorInterface* processor)
Sets the layer post-processor.

Public variables

QgsProcessingUtils::LayerHint layerTypeHint
Layer type hint.
QString name
Friendly name for layer, to use when loading layer into project.
QString outputName
Associated output name from algorithm which generated the layer.
QgsProject* project
Destination project.

Function documentation

QgsProcessingLayerPostProcessorInterface* QgsProcessingContext::LayerDetails::postProcessor() const

Layer post-processor.

May be nullptr if no post-processing is required.

void QgsProcessingContext::LayerDetails::setPostProcessor(QgsProcessingLayerPostProcessorInterface* processor)

Sets the layer post-processor.

May be nullptr if no post-processing is required.

Ownership of processor is transferred.

Variable documentation

QgsProcessingUtils::LayerHint QgsProcessingContext::LayerDetails::layerTypeHint

Layer type hint.