Class: QgsVectorFieldSymbolLayer

class qgis.core.QgsVectorFieldSymbolLayer

Bases: qgis._core.QgsMarkerSymbolLayer

A symbol layer class for displaying displacement arrows based on point layer attributes*

class AngleOrientation

Bases: int

class AngleUnits

Bases: int

Cartesian = 0
ClockwiseFromNorth = 0
CounterclockwiseFromEast = 1
Degrees = 0
Height = 2
Polar = 1
Radians = 1
class VectorFieldType

Bases: int

angleOrientation(self) → QgsVectorFieldSymbolLayer.AngleOrientation
angleUnits(self) → QgsVectorFieldSymbolLayer.AngleUnits
bounds(self, Union[QPointF, QPoint], QgsSymbolRenderContext) → QRectF
clone(self) → QgsVectorFieldSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
distanceMapUnitScale(self) → QgsMapUnitScale
distanceUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the distance.

drawPreviewIcon(self, context: QgsSymbolRenderContext, size: QSize)
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
outputUnit(self) → QgsUnitTypes.RenderUnit
properties(self) → Dict[str, str]
renderPoint(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
scale(self) → float
setAngleOrientation(self, orientation: QgsVectorFieldSymbolLayer.AngleOrientation)
setAngleUnits(self, units: QgsVectorFieldSymbolLayer.AngleUnits)
setColor(self, color: Union[QColor, Qt.GlobalColor])
setDistanceMapUnitScale(self, scale: QgsMapUnitScale)
setDistanceUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the distance.

Parameters:unit – distance units

See also

distanceUnit()

setMapUnitScale(self, scale: QgsMapUnitScale)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setScale(self, s: float)
setSubSymbol(self, symbol: QgsSymbol) → bool
setVectorFieldType(self, type: QgsVectorFieldSymbolLayer.VectorFieldType)
setXAttribute(self, attribute: str)
setYAttribute(self, attribute: str)
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
subSymbol(self) → QgsSymbol
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
usedAttributes(self, context: QgsRenderContext) → Set[str]
vectorFieldType(self) → QgsVectorFieldSymbolLayer.VectorFieldType
xAttribute(self) → str
yAttribute(self) → str