QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSSYMBOLRENDERCONTEXT_H
17 #define QGSSYMBOLRENDERCONTEXT_H
19 #include "qgis_core.h"
76 void setOriginalValueVariable(
const QVariant &value );
130 Qgis::SymbolRenderHints
renderHints()
const {
return mRenderHints; }
197 Q_DECL_DEPRECATED
double outputLineWidth(
double width )
const SIP_DEPRECATED;
202 Q_DECL_DEPRECATED
double outputPixelSize(
double size )
const SIP_DEPRECATED;
246 std::unique_ptr< QgsExpressionContextScope > mExpressionContextScope;
249 qreal mOpacity = 1.0;
251 Qgis::SymbolRenderHints mRenderHints;
254 int mGeometryPartCount;
255 int mGeometryPartNum;
257 std::unique_ptr< QgsLegendPatchShape > mPatchShape;
261 #endif // QGSSYMBOLRENDERCONTEXT_H
void setOpacity(qreal opacity)
Sets the opacity for the symbol.
RenderUnit
Rendering size units.
Q_DECL_DEPRECATED QgsUnitTypes::RenderUnit outputUnit() const
Returns the output unit for the context.
const QgsFeature * feature() const
Returns the current feature being rendered.
Container of fields for a vector layer.
void setSelected(bool selected)
Sets whether symbols should be rendered using the selected symbol coloring and style.
void setGeometryPartNum(int num)
Sets the part number of current geometry.
qreal opacity() const
Returns the opacity for the symbol.
int geometryPartCount() const
Part count of current geometry.
Contains information about the context of a rendering operation.
Q_DECL_DEPRECATED void setOutputUnit(QgsUnitTypes::RenderUnit u)
Sets the output unit for the context.
void setFeature(const QgsFeature *f)
Represents a patch shape for use in map legends.
bool selected() const
Returns true if symbols should be rendered using the selected symbol coloring and style.
QgsWkbTypes::GeometryType originalGeometryType() const
Returns the geometry type for the original feature geometry being rendered.
const QgsRenderContext & renderContext() const
Returns a reference to the context's render context.
QgsFields fields() const
Fields of the layer.
void setRenderHints(Qgis::SymbolRenderHints hints)
Sets rendering hint flags for the symbol.
void setGeometryPartCount(int count)
Sets the part count of current geometry.
Struct for storing maximum and minimum scales for measurements in map units.
Single scope for storing variables and functions for use within a QgsExpressionContext....
void setOriginalGeometryType(QgsWkbTypes::GeometryType type)
Sets the geometry type for the original feature geometry being rendered.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
Q_DECL_DEPRECATED void setMapUnitScale(const QgsMapUnitScale &scale)
Qgis::SymbolRenderHints renderHints() const
Returns the rendering hint flags for the symbol.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
QgsRenderContext & renderContext()
Returns a reference to the context's render context.
int geometryPartNum() const
Part number of current geometry.
Q_DECL_DEPRECATED QgsMapUnitScale mapUnitScale() const