16 #ifndef QGSARROWSYMBOLLAYERV2_H 17 #define QGSARROWSYMBOLLAYERV2_H 176 double mArrowStartWidth;
183 double mHeadThickness;
192 double mScaledArrowWidth;
193 double mScaledArrowStartWidth;
194 double mScaledHeadLength;
195 double mScaledHeadThickness;
196 double mScaledOffset;
void setHeadThicknessUnitScale(const QgsMapUnitScale &scale)
Set the scale for the head height.
OutputUnit
The unit of the output.
virtual QgsSymbolLayerV2 * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
double arrowStartWidth() const
Get current arrow start width.
double arrowWidth() const
Get current arrow width.
QgsSymbolV2::OutputUnit headThicknessUnit() const
Get the unit for the head height.
virtual QSet< QString > usedAttributes() const
Returns the set of attributes referenced by the layer.
QgsMapUnitScale arrowStartWidthUnitScale() const
Get the scale for the arrow start width.
QgsMapUnitScale headLengthUnitScale() const
Get the scale for the head length.
void setArrowWidthUnit(QgsSymbolV2::OutputUnit unit)
Set the unit for the arrow width.
ArrowType arrowType() const
Get the current arrow type.
QMap< QString, QString > QgsStringMap
virtual void startRender(QgsSymbolV2RenderContext &context)=0
bool isRepeated() const
Return whether the arrow is repeated along the line or not.
virtual double width() const
void setHeadLength(double length)
Set the arrow head length.
void setHeadThickness(double thickness)
Set the arrow head height.
virtual QgsSymbolV2 * subSymbol() override
Get the sub symbol used for filling.
void setHeadThicknessUnit(QgsSymbolV2::OutputUnit unit)
Set the unit for the head height.
void setArrowWidth(double width)
Set the arrow width.
ArrowType
Possible arrow types.
bool isCurved() const
Return whether it is a curved arrow or a straight one.
double headLength() const
Get the current arrow head length.
void setIsRepeated(bool isRepeated)
Set whether the arrow is repeated along the line.
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
QgsMapUnitScale arrowWidthUnitScale() const
Get the scale for the arrow width.
virtual QColor color() const
The fill color.
virtual void renderPolyline(const QPolygonF &points, QgsSymbolV2RenderContext &context)=0
virtual QString layerType() const =0
Returns a string that represents this layer type.
void setIsCurved(bool isCurved)
Set whether it is a curved arrow or a straight one.
void setHeadLengthUnitScale(const QgsMapUnitScale &scale)
Set the scale for the head length.
void setArrowType(ArrowType type)
Set the arrow type.
Struct for storing maximum and minimum scales for measurements in map units.
QgsSymbolV2::OutputUnit headLengthUnit() const
Get the unit for the head length.
void setArrowWidthUnitScale(const QgsMapUnitScale &scale)
Set the scale for the arrow width.
void setArrowStartWidthUnit(QgsSymbolV2::OutputUnit unit)
Set the unit for the arrow start width.
void setHeadType(HeadType type)
Set the head type.
virtual void setColor(const QColor &color)
The fill color.
QgsSymbolV2::OutputUnit arrowStartWidthUnit() const
Get the unit for the arrow start width.
void setHeadLengthUnit(QgsSymbolV2::OutputUnit unit)
Set the unit for the head length.
QgsMapUnitScale headThicknessUnitScale() const
Get the scale for the head height.
Line symbol layer used for representing lines as arrows.
HeadType
Possible head types.
QgsSymbolV2::OutputUnit arrowWidthUnit() const
Get the unit for the arrow width.
QgsSymbolV2::SymbolType type() const
HeadType headType() const
Get the current head type.
virtual bool setSubSymbol(QgsSymbolV2 *symbol)
set layer's subsymbol. takes ownership of the passed symbol
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
void setArrowStartWidth(double width)
Set the arrow start width.
void setArrowStartWidthUnitScale(const QgsMapUnitScale &scale)
Set the scale for the arrow start width.
double headThickness() const
Get the current arrow head height.