QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
23 : mMapCanvas( other.mMapCanvas )
24 , mMessageBar( other.mMessageBar )
25 , mAdditionalScopes( other.mAdditionalScopes )
27 if ( other.mExpressionContext )
35 mMapCanvas = other.mMapCanvas;
36 mMessageBar = other.mMessageBar;
37 mAdditionalScopes = other.mAdditionalScopes;
38 if ( other.mExpressionContext )
44 mExpressionContext.reset();
74 mExpressionContext.reset();
79 return mExpressionContext.get();
84 mAdditionalScopes = scopes;
89 return mAdditionalScopes;
94 QList<QgsExpressionContextScope *> scopes;
106 scopes << generator->createExpressionContextScope();
QList< QgsExpressionContextScope * > globalProjectAtlasMapLayerScopes(const QgsMapLayer *layer) const
Returns list of scopes: global, project, atlas, map, layer.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
QgsMapCanvas * mapCanvas() const
Returns the map canvas associated with the widget.
static QgsExpressionContextScope * globalScope()
Creates a new scope which contains variables and functions relating to the global QGIS context.
const QgsMapSettings & mapSettings() const
Gets access to properties used for map rendering.
static QgsExpressionContextScope * layerScope(const QgsMapLayer *layer)
Creates a new scope which contains variables and functions relating to a QgsMapLayer.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Map canvas is a class for displaying all GIS data types on a canvas.
static QgsExpressionContextScope * mapSettingsScope(const QgsMapSettings &mapSettings)
Creates a new scope which contains variables and functions relating to a QgsMapSettings object.
static QgsProject * instance()
Returns the QgsProject singleton instance.
Abstract interface for generating an expression context scope.
void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget.
QgsSymbolWidgetContext()=default
Constructor for QgsSymbolWidgetContext.
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget.
static QgsExpressionContextScope * projectScope(const QgsProject *project)
Creates a new scope which contains variables and functions relating to a QGIS project.
void setAdditionalExpressionContextScopes(const QList< QgsExpressionContextScope > &scopes)
Sets a list of additional expression context scopes to show as available within the layer.
QgsExpressionContextScope & expressionContextScope()
Returns a reference to the expression context scope for the map canvas.
A bar for displaying non-blocking messages to the user.
QgsExpressionContext * expressionContext() const
Returns the expression context used for the widget, if set.
Single scope for storing variables and functions for use within a QgsExpressionContext.
Base class for all map layer types.
QgsExpressionContextScope * defaultExpressionContextScope()
Creates a new scope which contains default variables and functions relating to the map canvas.
static QgsExpressionContextScope * atlasScope(const QgsLayoutAtlas *atlas)
Creates a new scope which contains variables and functions relating to a QgsLayoutAtlas.
QgsMessageBar * messageBar() const
Returns the message bar associated with the widget.
QgsSymbolWidgetContext & operator=(const QgsSymbolWidgetContext &other)
void setExpressionContext(QgsExpressionContext *context)
Sets the optional expression context used for the widget.
The QgsMapSettings class contains configuration for rendering of the map.
QList< QgsExpressionContextScope > additionalExpressionContextScopes() const
Returns the list of additional expression context scopes to show as available within the layer.
const QgsTemporalController * temporalController() const
Gets access to the temporal controller that will be used to update the canvas temporal range.