16#ifndef QGSVECTORFIELDARROWSETTINGS_H
17#define QGSVECTORFIELDARROWSETTINGS_H
106 QDomElement
writeXml( QDomDocument &doc )
const;
108 void readXml(
const QDomElement &elem );
112 double mMinShaftLength = 0.8;
113 double mMaxShaftLength = 10;
114 double mScaleFactor = 10;
115 double mFixedShaftLength = 20;
116 double mArrowHeadWidthRatio = 0.15;
117 double mArrowHeadLengthRatio = 0.40;
VectorFieldArrowScalingMethod
Algorithm to transform vector magnitude to length of arrow on the device in pixels.
@ MinMax
Scale vector magnitude linearly to fit in range of vectorFilterMin() and vectorFilterMax().
Represents a mesh renderer settings for vector datasets displayed with arrows.
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
void setFixedShaftLength(double fixedShaftLength)
Sets fixed length (in millimeters).
double minShaftLength() const
Returns mininimum shaft length (in millimeters).
Qgis::VectorFieldArrowScalingMethod shaftLengthMethod() const
Returns method used for drawing arrows.
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
void setMinShaftLength(double minShaftLength)
Sets mininimum shaft length (in millimeters).
double arrowHeadLengthRatio() const
Returns ratio of the head length of the arrow (range 0-1).
void setShaftLengthMethod(Qgis::VectorFieldArrowScalingMethod shaftLengthMethod)
Sets method used for drawing arrows.
void setScaleFactor(double scaleFactor)
Sets scale factor.
double fixedShaftLength() const
Returns fixed arrow length (in millimeters).
void setArrowHeadWidthRatio(double arrowHeadWidthRatio)
Sets ratio of the head width of the arrow (range 0-1).
void setMaxShaftLength(double maxShaftLength)
Sets maximum shaft length (in millimeters).
double arrowHeadWidthRatio() const
Returns ratio of the head width of the arrow (range 0-1).
double maxShaftLength() const
Returns maximum shaft length (in millimeters).
double scaleFactor() const
Returns scale factor.
void setArrowHeadLengthRatio(double arrowHeadLengthRatio)
Sets ratio of the head length of the arrow (range 0-1).