16#ifndef QGSARROWSYMBOLLAYER_H 
   17#define QGSARROWSYMBOLLAYER_H 
   51    QSet<QString> usedAttributes( const 
QgsRenderContext &context ) const override;
 
   52    bool hasDataDefinedProperties() const override;
 
   53    bool usesMapUnits() const override;
 
   54    void setOutputUnit( 
Qgis::RenderUnit unit ) override;
 
   57    double arrowWidth()
 const { 
return mArrowWidth; }
 
  151    void setColor( 
const QColor &
c ) 
override;
 
  152    QColor 
color() 
const override;
 
  161    std::unique_ptr<QgsFillSymbol> mSymbol;
 
  163    double mArrowWidth = 1.0;
 
  167    double mArrowStartWidth = 1.0;
 
  171    double mHeadLength = 1.5;
 
  174    double mHeadThickness = 1.5;
 
  178    HeadType mHeadType = HeadSingle;
 
  179    ArrowType mArrowType = ArrowPlain;
 
  180    bool mIsCurved = 
true;
 
  181    bool mIsRepeated = 
true;
 
  183    double mScaledArrowWidth = 1.0;
 
  184    double mScaledArrowStartWidth = 1.0;
 
  185    double mScaledHeadLength = 1.5;
 
  186    double mScaledHeadThickness = 1.5;
 
  187    double mScaledOffset = 0.0;
 
  188    HeadType mComputedHeadType = HeadSingle;
 
  189    ArrowType mComputedArrowType = ArrowPlain;
 
  191    std::unique_ptr<QgsExpressionContextScope> mExpressionScope;
 
 
Provides global constants and enumerations for use throughout the application.
 
RenderUnit
Rendering size units.
 
@ Millimeters
Millimeters.
 
Line symbol layer used for representing lines as arrows.
 
bool isCurved() const
Returns whether it is a curved arrow or a straight one.
 
ArrowType arrowType() const
Gets the current arrow type.
 
HeadType
Possible head types.
 
HeadType headType() const
Gets the current head type.
 
void setArrowStartWidth(double width)
Sets the arrow start width.
 
bool isRepeated() const
Returns whether the arrow is repeated along the line or not.
 
void setArrowWidth(double width)
Sets the arrow width.
 
void setArrowType(ArrowType type)
Sets the arrow type.
 
void setHeadLengthUnitScale(const QgsMapUnitScale &scale)
Sets the scale for the head length.
 
~QgsArrowSymbolLayer() override
 
QgsMapUnitScale headThicknessUnitScale() const
Gets the scale for the head height.
 
Qgis::RenderUnit arrowWidthUnit() const
Gets the unit for the arrow width.
 
Qgis::RenderUnit headLengthUnit() const
Gets the unit for the head length.
 
Qgis::RenderUnit headThicknessUnit() const
Gets the unit for the head height.
 
void setArrowWidthUnit(Qgis::RenderUnit unit)
Sets the unit for the arrow width.
 
void setIsCurved(bool isCurved)
Sets whether it is a curved arrow or a straight one.
 
void setHeadThickness(double thickness)
Sets the arrow head height.
 
void setHeadLengthUnit(Qgis::RenderUnit unit)
Sets the unit for the head length.
 
void setIsRepeated(bool isRepeated)
Sets whether the arrow is repeated along the line.
 
double arrowStartWidth() const
Gets current arrow start width. Only meaningful for single headed arrows.
 
void setArrowStartWidthUnitScale(const QgsMapUnitScale &scale)
Sets the scale for the arrow start width.
 
void setHeadThicknessUnitScale(const QgsMapUnitScale &scale)
Sets the scale for the head height.
 
void setHeadType(HeadType type)
Sets the head type.
 
QgsMapUnitScale arrowStartWidthUnitScale() const
Gets the scale for the arrow start width.
 
double headThickness() const
Gets the current arrow head height.
 
void setArrowWidthUnitScale(const QgsMapUnitScale &scale)
Sets the scale for the arrow width.
 
ArrowType
Possible arrow types.
 
QgsMapUnitScale arrowWidthUnitScale() const
Gets the scale for the arrow width.
 
void setArrowStartWidthUnit(Qgis::RenderUnit unit)
Sets the unit for the arrow start width.
 
Qgis::RenderUnit arrowStartWidthUnit() const
Gets the unit for the arrow start width.
 
QgsMapUnitScale headLengthUnitScale() const
Gets the scale for the head length.
 
void setHeadLength(double length)
Sets the arrow head length.
 
double headLength() const
Gets the current arrow head length.
 
void setHeadThicknessUnit(Qgis::RenderUnit unit)
Sets the unit for the head height.
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
 
Abstract base class for line symbol layers.
 
virtual void renderPolyline(const QPolygonF &points, QgsSymbolRenderContext &context)=0
Renders the line symbol layer along the line joining points, using the given render context.
 
virtual double width() const
Returns the estimated width for the line symbol layer.
 
Struct for storing maximum and minimum scales for measurements in map units.
 
Contains information about the context of a rendering operation.
 
Abstract base class for symbol layers.
 
Qgis::SymbolType type() const
 
virtual void startFeatureRender(const QgsFeature &feature, QgsRenderContext &context)
Called before the layer will be rendered for a particular feature.
 
virtual void startRender(QgsSymbolRenderContext &context)=0
Called before a set of rendering operations commences on the supplied render context.
 
virtual QVariantMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
 
virtual QString layerType() const =0
Returns a string that represents this layer type.
 
virtual void stopRender(QgsSymbolRenderContext &context)=0
Called after a set of rendering operations has finished on the supplied render context.
 
virtual void setColor(const QColor &color)
Sets the "representative" color for the symbol layer.
 
virtual QColor color() const
Returns the "representative" color of the symbol layer.
 
virtual void stopFeatureRender(const QgsFeature &feature, QgsRenderContext &context)
Called after the layer has been rendered for a particular feature.
 
virtual bool canCauseArtifactsBetweenAdjacentTiles() const
Returns true if the symbol layer rendering can cause visible artifacts across a single feature when t...
 
Encapsulates the context in which a symbol is being rendered.
 
Abstract base class for all rendered symbols.
 
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