QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 407 of file qgsmeshrenderersettings.h.
|
strong |
Wind speed units. Wind barbs use knots so we use this enum for preset conversion values.
Definition at line 411 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 783 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorWindBarbSettings::WindSpeedUnit QgsMeshRendererVectorWindBarbSettings::magnitudeUnits | ( | ) | const |
Returns the units that the data are in.
Definition at line 828 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from the given DOM element.
Definition at line 763 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setMagnitudeMultiplier | ( | double | magnitudeMultiplier | ) |
Sets a multiplier for the magnitude to convert it to knots.
Definition at line 803 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setMagnitudeUnits | ( | WindSpeedUnit | units | ) |
Sets the units that the data are in.
Definition at line 833 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setShaftLength | ( | double | shaftLength | ) |
Sets the shaft length (in millimeters)
Definition at line 813 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorWindBarbSettings::setShaftLengthUnits | ( | Qgis::RenderUnit | shaftLengthUnit | ) |
Sets the units for the shaft length.
Definition at line 823 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorWindBarbSettings::shaftLength | ( | ) | const |
Returns the shaft length (in millimeters)
Definition at line 808 of file qgsmeshrenderersettings.cpp.
Qgis::RenderUnit QgsMeshRendererVectorWindBarbSettings::shaftLengthUnits | ( | ) | const |
Returns the units for the shaft length.
Definition at line 818 of file qgsmeshrenderersettings.cpp.
QDomElement QgsMeshRendererVectorWindBarbSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element.
Definition at line 773 of file qgsmeshrenderersettings.cpp.