Class: QgsVectorFieldSymbolLayer

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

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorFieldSymbolLayer

Base classes

QgsMarkerSymbolLayer

Abstract base class for marker symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Enums

AngleOrientation

AngleUnits

VectorFieldType

Methods

angleOrientation

angleUnits

distanceMapUnitScale

distanceUnit

Returns the units for the distance.

scale

setAngleOrientation

setAngleUnits

setDistanceMapUnitScale

setDistanceUnit

Sets the units for the distance.

setScale

setVectorFieldType

setXAttribute

setYAttribute

vectorFieldType

xAttribute

yAttribute

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsVectorFieldSymbolLayer. See the FAQ for more details.

clone

subSymbol

Static Methods

create

Creates the symbol layer

createFromSld

class qgis.core.QgsVectorFieldSymbolLayer[source]

Bases: QgsMarkerSymbolLayer

class AngleOrientation(*values)

Bases: IntEnum

ClockwiseFromNorth = 0
CounterclockwiseFromEast = 1
class AngleUnits(*values)

Bases: IntEnum

Degrees = 0
Radians = 1
Cartesian = 0
ClockwiseFromNorth = 0
CounterclockwiseFromEast = 1
Degrees = 0
Height = 2
Polar = 1
Radians = 1
class VectorFieldType(*values)

Bases: IntEnum

Cartesian = 0
Height = 2
Polar = 1
angleOrientation(self) → QgsVectorFieldSymbolLayer.AngleOrientation[source]
Return type:

QgsVectorFieldSymbolLayer.AngleOrientation

angleUnits(self) → QgsVectorFieldSymbolLayer.AngleUnits[source]
Return type:

QgsVectorFieldSymbolLayer.AngleUnits

virtual clone(self) → QgsVectorFieldSymbolLayer | None[source]
Return type:

QgsVectorFieldSymbolLayer|None

static create(properties: dict[str | None, Any] = {}) → QgsSymbolLayer | None

Creates the symbol layer

Parameters:

properties (dict[str|None, Any] = {})

Return type:

QgsSymbolLayer|None

static createFromSld(element: QDomElement) → QgsSymbolLayer | None
Parameters:

element (QDomElement)

Return type:

QgsSymbolLayer|None

distanceMapUnitScale(self) → QgsMapUnitScale
Return type:

QgsMapUnitScale

distanceUnit(self) → Qgis.RenderUnit[source]

Returns the units for the distance.

Return type:

Qgis.RenderUnit

scale(self) → float[source]
Return type:

float

setAngleOrientation(self, orientation: QgsVectorFieldSymbolLayer.AngleOrientation)[source]
Parameters:

orientation (QgsVectorFieldSymbolLayer.AngleOrientation)

setAngleUnits(self, units: QgsVectorFieldSymbolLayer.AngleUnits)[source]
Parameters:

units (QgsVectorFieldSymbolLayer.AngleUnits)

setDistanceMapUnitScale(self, scale: QgsMapUnitScale)[source]
Parameters:

scale (QgsMapUnitScale)

setDistanceUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the distance.

Parameters:

unit (Qgis.RenderUnit) – distance units

See also

distanceUnit()

setScale(self, s: float)[source]
Parameters:

s (float)

setVectorFieldType(self, type: QgsVectorFieldSymbolLayer.VectorFieldType)[source]
Parameters:

type (QgsVectorFieldSymbolLayer.VectorFieldType)

setXAttribute(self, attribute: str | None)[source]
Parameters:

attribute (str|None)

setYAttribute(self, attribute: str | None)[source]
Parameters:

attribute (str|None)

virtual subSymbol(self) → QgsSymbol | None[source]
Return type:

QgsSymbol|None

vectorFieldType(self) → QgsVectorFieldSymbolLayer.VectorFieldType[source]
Return type:

QgsVectorFieldSymbolLayer.VectorFieldType

xAttribute(self) → str[source]
Return type:

str

yAttribute(self) → str[source]
Return type:

str