Contains settings which reflect the context in which a Processing parameter widget is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior.
More...
#include <qgsprocessingwidgetwrapper.h>
Contains settings which reflect the context in which a Processing parameter widget is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior.
- Since
- QGIS 3.4
Definition at line 115 of file qgsprocessingwidgetwrapper.h.
◆ QgsProcessingParameterWidgetContext()
QgsProcessingParameterWidgetContext::QgsProcessingParameterWidgetContext |
( |
| ) |
|
|
default |
◆ activeLayer()
QgsMapLayer * QgsProcessingParameterWidgetContext::activeLayer |
( |
| ) |
const |
◆ browserModel()
◆ mapCanvas()
QgsMapCanvas * QgsProcessingParameterWidgetContext::mapCanvas |
( |
| ) |
const |
◆ messageBar()
QgsMessageBar * QgsProcessingParameterWidgetContext::messageBar |
( |
| ) |
const |
◆ model()
QgsProcessingModelAlgorithm * QgsProcessingParameterWidgetContext::model |
( |
| ) |
const |
◆ modelChildAlgorithmId()
QString QgsProcessingParameterWidgetContext::modelChildAlgorithmId |
( |
| ) |
const |
◆ project()
QgsProject * QgsProcessingParameterWidgetContext::project |
( |
| ) |
const |
◆ setActiveLayer()
void QgsProcessingParameterWidgetContext::setActiveLayer |
( |
QgsMapLayer * |
layer | ) |
|
◆ setBrowserModel()
◆ setMapCanvas()
void QgsProcessingParameterWidgetContext::setMapCanvas |
( |
QgsMapCanvas * |
canvas | ) |
|
Sets the map canvas associated with the widget.
This allows the widget to retrieve the current map scale and other properties from the canvas.
- See also
- mapCanvas()
Definition at line 34 of file qgsprocessingwidgetwrapper.cpp.
◆ setMessageBar()
void QgsProcessingParameterWidgetContext::setMessageBar |
( |
QgsMessageBar * |
bar | ) |
|
◆ setModel()
void QgsProcessingParameterWidgetContext::setModel |
( |
QgsProcessingModelAlgorithm * |
model | ) |
|
◆ setModelChildAlgorithmId()
void QgsProcessingParameterWidgetContext::setModelChildAlgorithmId |
( |
const QString & |
id | ) |
|
◆ setProject()
void QgsProcessingParameterWidgetContext::setProject |
( |
QgsProject * |
project | ) |
|
Sets the project associated with the widget.
This allows the widget to retrieve the map layers and other properties from the correct project.
- See also
- project()
- Since
- QGIS 3.8
Definition at line 64 of file qgsprocessingwidgetwrapper.cpp.
The documentation for this class was generated from the following files: