QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Represents a mesh renderer settings for vector datasets displayed with arrows. More...
#include <qgsmeshrenderersettings.h>
Public Types | |
enum | ArrowScalingMethod { MinMax = 0 , Scaled , Fixed } |
Algorithm how to transform vector magnitude to length of arrow on the device in pixels. More... | |
Public Member Functions | |
double | arrowHeadLengthRatio () const |
Returns ratio of the head length of the arrow (range 0-1) | |
double | arrowHeadWidthRatio () const |
Returns ratio of the head width of the arrow (range 0-1) | |
double | fixedShaftLength () const |
Returns fixed arrow length (in millimeters) | |
double | maxShaftLength () const |
Returns maximum shaft length (in millimeters) | |
double | minShaftLength () const |
Returns mininimum shaft length (in millimeters) | |
void | readXml (const QDomElement &elem) |
Reads configuration from the given DOM element. | |
double | scaleFactor () const |
Returns scale factor. | |
void | setArrowHeadLengthRatio (double arrowHeadLengthRatio) |
Sets ratio of the head length of the arrow (range 0-1) | |
void | setArrowHeadWidthRatio (double arrowHeadWidthRatio) |
Sets ratio of the head width of the arrow (range 0-1) | |
void | setFixedShaftLength (double fixedShaftLength) |
Sets fixed length (in millimeters) | |
void | setMaxShaftLength (double maxShaftLength) |
Sets maximum shaft length (in millimeters) | |
void | setMinShaftLength (double minShaftLength) |
Sets mininimum shaft length (in millimeters) | |
void | setScaleFactor (double scaleFactor) |
Sets scale factor. | |
void | setShaftLengthMethod (ArrowScalingMethod shaftLengthMethod) |
Sets method used for drawing arrows. | |
QgsMeshRendererVectorArrowSettings::ArrowScalingMethod | shaftLengthMethod () const |
Returns method used for drawing arrows. | |
QDomElement | writeXml (QDomDocument &doc) const |
Writes configuration to a new DOM element. | |
Represents a mesh renderer settings for vector datasets displayed with arrows.
Definition at line 249 of file qgsmeshrenderersettings.h.
Algorithm how to transform vector magnitude to length of arrow on the device in pixels.
Enumerator | |
---|---|
MinMax | Scale vector magnitude linearly to fit in range of vectorFilterMin() and vectorFilterMax() |
Scaled | Scale vector magnitude by factor scaleFactor() |
Fixed | Use fixed length fixedShaftLength() regardless of vector's magnitude. |
Definition at line 254 of file qgsmeshrenderersettings.h.
double QgsMeshRendererVectorArrowSettings::arrowHeadLengthRatio | ( | ) | const |
Returns ratio of the head length of the arrow (range 0-1)
Definition at line 394 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorArrowSettings::arrowHeadWidthRatio | ( | ) | const |
Returns ratio of the head width of the arrow (range 0-1)
Definition at line 384 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorArrowSettings::fixedShaftLength | ( | ) | const |
Returns fixed arrow length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::Fixed
Definition at line 374 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorArrowSettings::maxShaftLength | ( | ) | const |
Returns maximum shaft length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::MinMax
Definition at line 354 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorArrowSettings::minShaftLength | ( | ) | const |
Returns mininimum shaft length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::MinMax
Definition at line 344 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from the given DOM element.
Definition at line 433 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorArrowSettings::scaleFactor | ( | ) | const |
Returns scale factor.
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::Scaled
Definition at line 364 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setArrowHeadLengthRatio | ( | double | arrowHeadLengthRatio | ) |
Sets ratio of the head length of the arrow (range 0-1)
Definition at line 399 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setArrowHeadWidthRatio | ( | double | arrowHeadWidthRatio | ) |
Sets ratio of the head width of the arrow (range 0-1)
Definition at line 389 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setFixedShaftLength | ( | double | fixedShaftLength | ) |
Sets fixed length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::Fixed
Definition at line 379 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setMaxShaftLength | ( | double | maxShaftLength | ) |
Sets maximum shaft length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::MinMax
Definition at line 359 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setMinShaftLength | ( | double | minShaftLength | ) |
Sets mininimum shaft length (in millimeters)
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::MinMax
Definition at line 349 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setScaleFactor | ( | double | scaleFactor | ) |
Sets scale factor.
Only for QgsMeshRendererVectorSettings::ArrowScalingMethod::Scaled
Definition at line 369 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorArrowSettings::setShaftLengthMethod | ( | QgsMeshRendererVectorArrowSettings::ArrowScalingMethod | shaftLengthMethod | ) |
Sets method used for drawing arrows.
Definition at line 339 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorArrowSettings::ArrowScalingMethod QgsMeshRendererVectorArrowSettings::shaftLengthMethod | ( | ) | const |
Returns method used for drawing arrows.
Definition at line 334 of file qgsmeshrenderersettings.cpp.
QDomElement QgsMeshRendererVectorArrowSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element.
Definition at line 404 of file qgsmeshrenderersettings.cpp.