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¶
Subclasses¶
Represents a mesh renderer settings for vector datasets displayed with arrows. |
Methods
Returns ratio of the head length of the arrow (range 0-1) |
|
Returns ratio of the head width of the arrow (range 0-1) |
|
Returns fixed arrow length (in millimeters) |
|
Returns maximum shaft length (in millimeters) |
|
Returns mininimum shaft length (in millimeters) |
|
Reads configuration from the given DOM element |
|
Returns scale factor |
|
Sets ratio of the head length of the arrow (range 0-1) |
|
Sets ratio of the head width of the arrow (range 0-1) |
|
Sets fixed length (in millimeters) |
|
Sets maximum shaft length (in millimeters) |
|
Sets mininimum shaft length (in millimeters) |
|
Sets scale factor |
|
Sets method used for drawing arrows |
|
Returns method used for drawing arrows |
|
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: