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;
 
Single scope for storing variables and functions for use within a QgsExpressionContext.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Container of fields for a vector layer.
Represents a patch shape for use in map legends.
Struct for storing maximum and minimum scales for measurements in map units.
Contains information about the context of a rendering operation.
void setOpacity(qreal opacity)
Sets the opacity for the symbol.
Q_DECL_DEPRECATED void setMapUnitScale(const QgsMapUnitScale &scale)
QgsFields fields() const
Fields of the layer.
~QgsSymbolRenderContext()
void setSelected(bool selected)
Sets whether symbols should be rendered using the selected symbol coloring and style.
Q_DECL_DEPRECATED QgsUnitTypes::RenderUnit outputUnit() const
Returns the output unit for the context.
int geometryPartNum() const
Part number of current geometry.
bool selected() const
Returns true if symbols should be rendered using the selected symbol coloring and style.
Qgis::SymbolRenderHints renderHints() const
Returns the rendering hint flags for the symbol.
QgsRenderContext & renderContext()
Returns a reference to the context's render context.
Q_DECL_DEPRECATED QgsMapUnitScale mapUnitScale() const
int geometryPartCount() const
Part count of current geometry.
QgsWkbTypes::GeometryType originalGeometryType() const
Returns the geometry type for the original feature geometry being rendered.
const QgsFeature * feature() const
Returns the current feature being rendered.
const QgsRenderContext & renderContext() const
Returns a reference to the context's render context.
void setRenderHints(Qgis::SymbolRenderHints hints)
Sets rendering hint flags for the symbol.
void setGeometryPartCount(int count)
Sets the part count of current geometry.
void setGeometryPartNum(int num)
Sets the part number of current geometry.
void setOriginalGeometryType(QgsWkbTypes::GeometryType type)
Sets the geometry type for the original feature geometry being rendered.
QgsSymbolRenderContext(const QgsSymbolRenderContext &rh)=delete
QgsSymbolRenderContext cannot be copied.
void setFeature(const QgsFeature *f)
qreal opacity() const
Returns the opacity for the symbol.
Q_DECL_DEPRECATED void setOutputUnit(QgsUnitTypes::RenderUnit u)
Sets the output unit for the context.
RenderUnit
Rendering size units.
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