Class: QgsArrowSymbolLayer¶
Line symbol layer used for representing lines as arrows.
Class Hierarchy¶
Base classes¶
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Gets current arrow start width. |
|
Gets the unit for the arrow start width |
|
Gets the scale for the arrow start width |
|
Gets the current arrow type |
|
Gets current arrow width |
|
Gets the unit for the arrow width |
|
Gets the scale for the arrow width |
|
Gets the current arrow head length |
|
Gets the unit for the head length |
|
Gets the scale for the head length |
|
Gets the current arrow head height |
|
Gets the unit for the head height |
|
Gets the scale for the head height |
|
Gets the current head type |
|
Returns whether it is a curved arrow or a straight one |
|
Returns whether the arrow is repeated along the line or not |
|
Sets the arrow start width |
|
Sets the unit for the arrow start width |
|
Sets the scale for the arrow start width |
|
Sets the arrow type |
|
Sets the arrow width |
|
Sets the unit for the arrow width |
|
Sets the scale for the arrow width |
|
Sets the arrow head length |
|
Sets the unit for the head length |
|
Sets the scale for the head length |
|
Sets the arrow head height |
|
Sets the unit for the head height |
|
Sets the scale for the head height |
|
Sets the head type |
|
Sets whether it is a curved arrow or a straight one |
|
Sets whether the arrow is repeated along the line |
Static Methods
Create a new QgsArrowSymbolLayer |
Attributes
- class qgis.core.QgsArrowSymbolLayer[source]¶
Bases:
QgsLineSymbolLayer
- __init__()
Simple constructor
- ArrowLeftHalf = 1¶
- ArrowPlain = 0¶
- ArrowRightHalf = 2¶
- class ArrowType¶
Bases:
int
- HeadDouble = 2¶
- HeadReversed = 1¶
- HeadSingle = 0¶
- class HeadType¶
Bases:
int
- arrowStartWidth(self) float [source]¶
Gets current arrow start width. Only meaningful for single headed arrows
- Return type:
float
- arrowStartWidthUnit(self) Qgis.RenderUnit [source]¶
Gets the unit for the arrow start width
- Return type:
- arrowStartWidthUnitScale(self) QgsMapUnitScale [source]¶
Gets the scale for the arrow start width
- Return type:
- arrowType(self) QgsArrowSymbolLayer.ArrowType [source]¶
Gets the current arrow type
- Return type:
- arrowWidthUnit(self) Qgis.RenderUnit [source]¶
Gets the unit for the arrow width
- Return type:
- arrowWidthUnitScale(self) QgsMapUnitScale [source]¶
Gets the scale for the arrow width
- Return type:
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None [source]¶
Create a new QgsArrowSymbolLayer
- Parameters:
properties (Dict[str, Any] = {}) – A property map to deserialize saved information from
properties()
- Return type:
Optional[QgsSymbolLayer]
- Returns:
A new QgsArrowSymbolLayer
- headLengthUnit(self) Qgis.RenderUnit [source]¶
Gets the unit for the head length
- Return type:
- headLengthUnitScale(self) QgsMapUnitScale [source]¶
Gets the scale for the head length
- Return type:
- headThicknessUnit(self) Qgis.RenderUnit [source]¶
Gets the unit for the head height
- Return type:
- headThicknessUnitScale(self) QgsMapUnitScale [source]¶
Gets the scale for the head height
- Return type:
- headType(self) QgsArrowSymbolLayer.HeadType [source]¶
Gets the current head type
- Return type:
- isCurved(self) bool [source]¶
Returns whether it is a curved arrow or a straight one
- Return type:
bool
- isRepeated(self) bool [source]¶
Returns whether the arrow is repeated along the line or not
- Return type:
bool
- setArrowStartWidth(self, width: float)[source]¶
Sets the arrow start width
- Parameters:
width (float)
- setArrowStartWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the unit for the arrow start width
- Parameters:
unit (Qgis.RenderUnit)
- setArrowStartWidthUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the scale for the arrow start width
- Parameters:
scale (QgsMapUnitScale)
- setArrowType(self, type: QgsArrowSymbolLayer.ArrowType)[source]¶
Sets the arrow type
- Parameters:
- setArrowWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the unit for the arrow width
- Parameters:
unit (Qgis.RenderUnit)
- setArrowWidthUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the scale for the arrow width
- Parameters:
scale (QgsMapUnitScale)
- setHeadLengthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the unit for the head length
- Parameters:
unit (Qgis.RenderUnit)
- setHeadLengthUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the scale for the head length
- Parameters:
scale (QgsMapUnitScale)
- setHeadThickness(self, thickness: float)[source]¶
Sets the arrow head height
- Parameters:
thickness (float)
- setHeadThicknessUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the unit for the head height
- Parameters:
unit (Qgis.RenderUnit)
- setHeadThicknessUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the scale for the head height
- Parameters:
scale (QgsMapUnitScale)
- setHeadType(self, type: QgsArrowSymbolLayer.HeadType)[source]¶
Sets the head type
- Parameters:
type (QgsArrowSymbolLayer.HeadType)