QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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 452 of file qgsmeshrenderersettings.h.
|
strong |
Wind speed units. Wind barbs use knots so we use this enum for preset conversion values.
Definition at line 456 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 856 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorWindBarbSettings::WindSpeedUnit QgsMeshRendererVectorWindBarbSettings::magnitudeUnits | ( | ) | const |
Returns the units that the data are in.
Definition at line 901 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from the given DOM element.
Definition at line 836 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setMagnitudeMultiplier | ( | double | magnitudeMultiplier | ) |
Sets a multiplier for the magnitude to convert it to knots.
Definition at line 876 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setMagnitudeUnits | ( | WindSpeedUnit | units | ) |
Sets the units that the data are in.
Definition at line 906 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setShaftLength | ( | double | shaftLength | ) |
Sets the shaft length (in millimeters)
Definition at line 886 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setShaftLengthUnits | ( | Qgis::RenderUnit | shaftLengthUnit | ) |
Sets the units for the shaft length.
Definition at line 896 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorWindBarbSettings::shaftLength | ( | ) | const |
Returns the shaft length (in millimeters)
Definition at line 881 of file qgsmeshrenderersettings.cpp.
Qgis::RenderUnit QgsMeshRendererVectorWindBarbSettings::shaftLengthUnits | ( | ) | const |
Returns the units for the shaft length.
Definition at line 891 of file qgsmeshrenderersettings.cpp.
QDomElement QgsMeshRendererVectorWindBarbSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element.
Definition at line 846 of file qgsmeshrenderersettings.cpp.