16#ifndef QGSVECTORFIELDWINDBARBSETTINGS_H
17#define QGSVECTORFIELDWINDBARBSETTINGS_H
80 QDomElement
writeXml( QDomDocument &doc )
const;
82 void readXml(
const QDomElement &elem );
85 double mShaftLength = 10;
88 double mMagnitudeMultiplier = 1;
WindSpeedUnit
Wind speed units.
@ MetersPerSecond
Meters per second.
RenderUnit
Rendering size units.
@ Millimeters
Millimeters.
Represents a mesh renderer settings for vector datasets displayed with wind barbs.
Qgis::WindSpeedUnit magnitudeUnits() const
Returns the units that the data are in.
double shaftLength() const
Returns the shaft length (in millimeters).
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
void setMagnitudeMultiplier(double magnitudeMultiplier)
Sets a multiplier for the magnitude to convert it to knots.
void setMagnitudeUnits(Qgis::WindSpeedUnit units)
Sets the units that the data are in.
double magnitudeMultiplier() const
Returns the multiplier for the magnitude to convert it to knots, according to the units set with setM...
void setShaftLength(double shaftLength)
Sets the shaft length (in millimeters).
Qgis::RenderUnit shaftLengthUnits() const
Returns the units for the shaft length.
void setShaftLengthUnits(Qgis::RenderUnit shaftLengthUnit)
Sets the units for the shaft length.