Class: QgsVectorFieldArrowSettings

Represents a mesh renderer settings for vector datasets displayed with arrows.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorFieldArrowSettings

Subclasses

QgsMeshRendererVectorArrowSettings

Represents a mesh renderer settings for vector datasets displayed with arrows.

Methods

arrowHeadLengthRatio

Returns ratio of the head length of the arrow (range 0-1)

arrowHeadWidthRatio

Returns ratio of the head width of the arrow (range 0-1)

fixedShaftLength

Returns fixed arrow length (in millimeters)

maxShaftLength

Returns maximum shaft length (in millimeters)

minShaftLength

Returns mininimum shaft length (in millimeters)

readXml

Reads configuration from the given DOM element

scaleFactor

Returns scale factor

setArrowHeadLengthRatio

Sets ratio of the head length of the arrow (range 0-1)

setArrowHeadWidthRatio

Sets ratio of the head width of the arrow (range 0-1)

setFixedShaftLength

Sets fixed length (in millimeters)

setMaxShaftLength

Sets maximum shaft length (in millimeters)

setMinShaftLength

Sets mininimum shaft length (in millimeters)

setScaleFactor

Sets scale factor

setShaftLengthMethod

Sets method used for drawing arrows

shaftLengthMethod

Returns method used for drawing arrows

writeXml

Writes configuration to a new DOM element

class qgis.core.QgsVectorFieldArrowSettings[source]

Bases: object

arrowHeadLengthRatio(self) → float[source]

Returns ratio of the head length of the arrow (range 0-1)

Return type:

float

arrowHeadWidthRatio(self) → float[source]

Returns ratio of the head width of the arrow (range 0-1)

Return type:

float

fixedShaftLength(self) → float[source]

Returns fixed arrow length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.Fixed

Return type:

float

maxShaftLength(self) → float[source]

Returns maximum shaft length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.MinMax

Return type:

float

minShaftLength(self) → float[source]

Returns mininimum shaft length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.MinMax

Return type:

float

readXml(self, elem: QDomElement)[source]

Reads configuration from the given DOM element

Parameters:

elem (QDomElement)

scaleFactor(self) → float[source]

Returns scale factor

Only for Qgis.VectorFieldArrowScalingMethod.Scaled

Return type:

float

setArrowHeadLengthRatio(self, arrowHeadLengthRatio: float)[source]

Sets ratio of the head length of the arrow (range 0-1)

Parameters:

arrowHeadLengthRatio (float)

setArrowHeadWidthRatio(self, arrowHeadWidthRatio: float)[source]

Sets ratio of the head width of the arrow (range 0-1)

Parameters:

arrowHeadWidthRatio (float)

setFixedShaftLength(self, fixedShaftLength: float)[source]

Sets fixed length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.Fixed

Parameters:

fixedShaftLength (float)

setMaxShaftLength(self, maxShaftLength: float)[source]

Sets maximum shaft length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.MinMax

Parameters:

maxShaftLength (float)

setMinShaftLength(self, minShaftLength: float)[source]

Sets mininimum shaft length (in millimeters)

Only for Qgis.VectorFieldArrowScalingMethod.MinMax

Parameters:

minShaftLength (float)

setScaleFactor(self, scaleFactor: float)[source]

Sets scale factor

Only for Qgis.VectorFieldArrowScalingMethod.Scaled

Parameters:

scaleFactor (float)

setShaftLengthMethod(self, shaftLengthMethod: Qgis.VectorFieldArrowScalingMethod)[source]

Sets method used for drawing arrows

Parameters:

shaftLengthMethod (Qgis.VectorFieldArrowScalingMethod)

shaftLengthMethod(self) → Qgis.VectorFieldArrowScalingMethod[source]

Returns method used for drawing arrows

Return type:

Qgis.VectorFieldArrowScalingMethod

writeXml(self, doc: QDomDocument) → QDomElement[source]

Writes configuration to a new DOM element

Parameters:

doc (QDomDocument)

Return type:

QDomElement