Class: QgsMeshRendererVectorWindBarbSettings¶
Represents a mesh renderer settings for vector datasets displayed with wind barbs
Note
The API is considered EXPERIMENTAL and can be changed without a notice
Added in version 3.38.
Enums
Wind speed units.  | 
Methods
Returns the multiplier for the magnitude to convert it to knots, according to the units set with   | 
|
Returns the units that the data are in  | 
|
Reads configuration from the given DOM element  | 
|
Sets a multiplier for the magnitude to convert it to knots  | 
|
Sets the units that the data are in  | 
|
Sets the shaft length (in millimeters)  | 
|
Sets the units for the shaft length.  | 
|
Returns the shaft length (in millimeters)  | 
|
Returns the units for the shaft length.  | 
|
Writes configuration to a new DOM element  | 
- class qgis.core.QgsMeshRendererVectorWindBarbSettings[source]¶
 Bases:
object- class WindSpeedUnit(*values)¶
 Bases:
IntEnumWind speed units. Wind barbs use knots so we use this enum for preset conversion values
MetersPerSecond: Meters per secondKilometersPerHour: Kilometers per hourKnots: Knots (Nautical miles per hour)MilesPerHour: Miles per hourFeetPerSecond: Feet per secondOtherUnit: Other unit
- FeetPerSecond = 4¶
 
- KilometersPerHour = 1¶
 
- Knots = 2¶
 
- MetersPerSecond = 0¶
 
- MilesPerHour = 3¶
 
- OtherUnit = 5¶
 
- magnitudeMultiplier(self) float[source]¶
 Returns the multiplier for the magnitude to convert it to knots, according to the units set with
setMagnitudeUnits()A custom multiplier can be set withsetMagnitudeMultiplier()for the case when units are set to OtherUnit- Return type:
 float
- magnitudeUnits(self) QgsMeshRendererVectorWindBarbSettings.WindSpeedUnit[source]¶
 Returns the units that the data are in
- Return type:
 
- readXml(self, elem: QDomElement)[source]¶
 Reads configuration from the given DOM element
- Parameters:
 elem (QDomElement)
- setMagnitudeMultiplier(self, magnitudeMultiplier: float)[source]¶
 Sets a multiplier for the magnitude to convert it to knots
- Parameters:
 magnitudeMultiplier (float)
- setMagnitudeUnits(self, units: QgsMeshRendererVectorWindBarbSettings.WindSpeedUnit)[source]¶
 Sets the units that the data are in
- Parameters:
 
- setShaftLength(self, shaftLength: float)[source]¶
 Sets the shaft length (in millimeters)
- Parameters:
 shaftLength (float)
- setShaftLengthUnits(self, shaftLengthUnit: Qgis.RenderUnit)[source]¶
 Sets the units for the shaft length.
See also
- Parameters:
 shaftLengthUnit (Qgis.RenderUnit)
- shaftLengthUnits(self) Qgis.RenderUnit[source]¶
 Returns the units for the shaft length.
See also
- Return type: