| QGIS API Documentation 3.99.0-Master (f78f5286a64)
    | 
Represents a mesh renderer settings for vector datasets displayed with wind barbs. More...
#include <qgsmeshrenderersettings.h>
| Public Types | |
| enum class | WindSpeedUnit { MetersPerSecond = 0 , KilometersPerHour , Knots , MilesPerHour , FeetPerSecond , OtherUnit } | 
| Wind speed units. Wind barbs use knots so we use this enum for preset conversion values.  More... | |
| Public Member Functions | |
| double | magnitudeMultiplier () const | 
| Returns the multiplier for the magnitude to convert it to knots, according to the units set with setMagnitudeUnits() A custom multiplier can be set with setMagnitudeMultiplier() for the case when units are set to OtherUnit. | |
| WindSpeedUnit | magnitudeUnits () const | 
| Returns the units that the data are in. | |
| void | readXml (const QDomElement &elem) | 
| Reads configuration from the given DOM element. | |
| void | setMagnitudeMultiplier (double magnitudeMultiplier) | 
| Sets a multiplier for the magnitude to convert it to knots. | |
| void | setMagnitudeUnits (WindSpeedUnit units) | 
| Sets the units that the data are in. | |
| void | setShaftLength (double shaftLength) | 
| Sets the shaft length (in millimeters) | |
| void | setShaftLengthUnits (Qgis::RenderUnit shaftLengthUnit) | 
| Sets the units for the shaft length. | |
| double | shaftLength () const | 
| Returns the shaft length (in millimeters) | |
| Qgis::RenderUnit | shaftLengthUnits () const | 
| Returns the units for the shaft length. | |
| QDomElement | writeXml (QDomDocument &doc) const | 
| Writes configuration to a new DOM element. | |
Represents a mesh renderer settings for vector datasets displayed with wind barbs.
Definition at line 439 of file qgsmeshrenderersettings.h.
| 
 | strong | 
Wind speed units. Wind barbs use knots so we use this enum for preset conversion values.
Definition at line 443 of file qgsmeshrenderersettings.h.
| double QgsMeshRendererVectorWindBarbSettings::magnitudeMultiplier | ( | ) | const | 
Returns the multiplier for the magnitude to convert it to knots, according to the units set with setMagnitudeUnits() A custom multiplier can be set with setMagnitudeMultiplier() for the case when units are set to OtherUnit.
Definition at line 806 of file qgsmeshrenderersettings.cpp.
| QgsMeshRendererVectorWindBarbSettings::WindSpeedUnit QgsMeshRendererVectorWindBarbSettings::magnitudeUnits | ( | ) | const | 
Returns the units that the data are in.
Definition at line 851 of file qgsmeshrenderersettings.cpp.
| void QgsMeshRendererVectorWindBarbSettings::readXml | ( | const QDomElement & | elem | ) | 
Reads configuration from the given DOM element.
Definition at line 786 of file qgsmeshrenderersettings.cpp.
| void QgsMeshRendererVectorWindBarbSettings::setMagnitudeMultiplier | ( | double | magnitudeMultiplier | ) | 
Sets a multiplier for the magnitude to convert it to knots.
Definition at line 826 of file qgsmeshrenderersettings.cpp.
| void QgsMeshRendererVectorWindBarbSettings::setMagnitudeUnits | ( | WindSpeedUnit | units | ) | 
Sets the units that the data are in.
Definition at line 856 of file qgsmeshrenderersettings.cpp.
| void QgsMeshRendererVectorWindBarbSettings::setShaftLength | ( | double | shaftLength | ) | 
Sets the shaft length (in millimeters)
Definition at line 836 of file qgsmeshrenderersettings.cpp.
| void QgsMeshRendererVectorWindBarbSettings::setShaftLengthUnits | ( | Qgis::RenderUnit | shaftLengthUnit | ) | 
Sets the units for the shaft length.
Definition at line 846 of file qgsmeshrenderersettings.cpp.
| double QgsMeshRendererVectorWindBarbSettings::shaftLength | ( | ) | const | 
Returns the shaft length (in millimeters)
Definition at line 831 of file qgsmeshrenderersettings.cpp.
| Qgis::RenderUnit QgsMeshRendererVectorWindBarbSettings::shaftLengthUnits | ( | ) | const | 
Returns the units for the shaft length.
Definition at line 841 of file qgsmeshrenderersettings.cpp.
| QDomElement QgsMeshRendererVectorWindBarbSettings::writeXml | ( | QDomDocument & | doc | ) | const | 
Writes configuration to a new DOM element.
Definition at line 796 of file qgsmeshrenderersettings.cpp.