QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsmeshrenderersettings.h>
Public Types | |
enum | Symbology { Arrows = 0, Streamlines, Traces } |
Defines the symbology of vector rendering. More... | |
Public Member Functions | |
QgsMeshRendererVectorArrowSettings | arrowSettings () const |
Returns settings for vector rendered with arrows. More... | |
QColor | color () const |
Returns color used for drawing arrows. More... | |
QgsInterpolatedLineColor::ColoringMethod | coloringMethod () const |
Returns the coloring method used to render vector datasets. More... | |
QgsColorRampShader | colorRampShader () const |
Sets the color ramp shader used to render vector datasets. More... | |
double | filterMax () const |
Returns filter value for vector magnitudes. More... | |
double | filterMin () const |
Returns filter value for vector magnitudes. More... | |
bool | isOnUserDefinedGrid () const |
Returns whether vectors are drawn on user-defined grid. More... | |
double | lineWidth () const |
Returns line width of the arrow (in millimeters) More... | |
void | readXml (const QDomElement &elem) |
Reads configuration from the given DOM element. More... | |
void | setArrowsSettings (const QgsMeshRendererVectorArrowSettings &arrowSettings) |
Sets settings for vector rendered with arrows. More... | |
void | setColor (const QColor &color) |
Sets color used for drawing arrows. More... | |
void | setColoringMethod (const QgsInterpolatedLineColor::ColoringMethod &coloringMethod) |
Sets the coloring method used to render vector datasets. More... | |
void | setColorRampShader (const QgsColorRampShader &colorRampShader) |
Returns the color ramp shader used to render vector datasets. More... | |
void | setFilterMax (double filterMax) |
Sets filter value for vector magnitudes. More... | |
void | setFilterMin (double filterMin) |
Sets filter value for vector magnitudes. More... | |
void | setLineWidth (double lineWidth) |
Sets line width of the arrow in pixels (in millimeters) More... | |
void | setOnUserDefinedGrid (bool enabled) |
Toggles drawing of vectors on user defined grid. More... | |
void | setStreamLinesSettings (const QgsMeshRendererVectorStreamlineSettings &streamLinesSettings) |
Sets settings for vector rendered with streamlines. More... | |
void | setSymbology (const Symbology &symbology) |
Sets the displaying method used to render vector datasets. More... | |
void | setTracesSettings (const QgsMeshRendererVectorTracesSettings &tracesSettings) |
Sets settings for vector rendered with traces. More... | |
void | setUserGridCellHeight (int height) |
Sets height of user grid cell (in pixels) More... | |
void | setUserGridCellWidth (int width) |
Sets width of user grid cell (in pixels) More... | |
QgsMeshRendererVectorStreamlineSettings | streamLinesSettings () const |
Returns settings for vector rendered with streamlines. More... | |
Symbology | symbology () const |
Returns the displaying method used to render vector datasets. More... | |
QgsMeshRendererVectorTracesSettings | tracesSettings () const |
Returns settings for vector rendered with traces. More... | |
int | userGridCellHeight () const |
Returns height in pixels of user grid cell. More... | |
int | userGridCellWidth () const |
Returns width in pixels of user grid cell. More... | |
QgsInterpolatedLineColor | vectorStrokeColoring () const |
Returns the stroke coloring used to render vector datasets. More... | |
QDomElement | writeXml (QDomDocument &doc) const |
Writes configuration to a new DOM element. More... | |
Represents a renderer settings for vector datasets
Definition at line 410 of file qgsmeshrenderersettings.h.
Defines the symbology of vector rendering.
Enumerator | |
---|---|
Arrows | Displaying vector dataset with arrows. |
Streamlines | Displaying vector dataset with streamlines. |
Traces | Displaying vector dataset with particle traces. |
Definition at line 418 of file qgsmeshrenderersettings.h.
QgsMeshRendererVectorArrowSettings QgsMeshRendererVectorSettings::arrowSettings | ( | ) | const |
Returns settings for vector rendered with arrows.
Definition at line 577 of file qgsmeshrenderersettings.cpp.
QColor QgsMeshRendererVectorSettings::color | ( | ) | const |
Returns color used for drawing arrows.
Definition at line 203 of file qgsmeshrenderersettings.cpp.
QgsInterpolatedLineColor::ColoringMethod QgsMeshRendererVectorSettings::coloringMethod | ( | ) | const |
Returns the coloring method used to render vector datasets.
Definition at line 651 of file qgsmeshrenderersettings.cpp.
QgsColorRampShader QgsMeshRendererVectorSettings::colorRampShader | ( | ) | const |
Sets the color ramp shader used to render vector datasets.
Definition at line 661 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorSettings::filterMax | ( | ) | const |
Returns filter value for vector magnitudes.
If magnitude of the vector is higher than this value, the vector is not drawn. -1 represents that filtering is not active.
Definition at line 223 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorSettings::filterMin | ( | ) | const |
Returns filter value for vector magnitudes.
If magnitude of the vector is lower than this value, the vector is not drawn. -1 represents that filtering is not active.
Definition at line 213 of file qgsmeshrenderersettings.cpp.
bool QgsMeshRendererVectorSettings::isOnUserDefinedGrid | ( | ) | const |
Returns whether vectors are drawn on user-defined grid.
Definition at line 233 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererVectorSettings::lineWidth | ( | ) | const |
Returns line width of the arrow (in millimeters)
Definition at line 193 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from the given DOM element.
Definition at line 621 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setArrowsSettings | ( | const QgsMeshRendererVectorArrowSettings & | arrowSettings | ) |
Sets settings for vector rendered with arrows.
Definition at line 582 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setColor | ( | const QColor & | color | ) |
Sets color used for drawing arrows.
Definition at line 208 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setColoringMethod | ( | const QgsInterpolatedLineColor::ColoringMethod & | coloringMethod | ) |
Sets the coloring method used to render vector datasets.
Definition at line 656 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setColorRampShader | ( | const QgsColorRampShader & | colorRampShader | ) |
Returns the color ramp shader used to render vector datasets.
Definition at line 666 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setFilterMax | ( | double | filterMax | ) |
Sets filter value for vector magnitudes.
Definition at line 228 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setFilterMin | ( | double | filterMin | ) |
Sets filter value for vector magnitudes.
Definition at line 218 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setLineWidth | ( | double | lineWidth | ) |
Sets line width of the arrow in pixels (in millimeters)
Definition at line 198 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setOnUserDefinedGrid | ( | bool | enabled | ) |
Toggles drawing of vectors on user defined grid.
Definition at line 238 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setStreamLinesSettings | ( | const QgsMeshRendererVectorStreamlineSettings & | streamLinesSettings | ) |
Sets settings for vector rendered with streamlines.
Definition at line 592 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setSymbology | ( | const Symbology & | symbology | ) |
Sets the displaying method used to render vector datasets.
Definition at line 572 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setTracesSettings | ( | const QgsMeshRendererVectorTracesSettings & | tracesSettings | ) |
Sets settings for vector rendered with traces.
Definition at line 692 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setUserGridCellHeight | ( | int | height | ) |
Sets height of user grid cell (in pixels)
Definition at line 258 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererVectorSettings::setUserGridCellWidth | ( | int | width | ) |
Sets width of user grid cell (in pixels)
Definition at line 248 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorStreamlineSettings QgsMeshRendererVectorSettings::streamLinesSettings | ( | ) | const |
Returns settings for vector rendered with streamlines.
Definition at line 587 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorSettings::Symbology QgsMeshRendererVectorSettings::symbology | ( | ) | const |
Returns the displaying method used to render vector datasets.
Definition at line 567 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererVectorTracesSettings QgsMeshRendererVectorSettings::tracesSettings | ( | ) | const |
Returns settings for vector rendered with traces.
Definition at line 687 of file qgsmeshrenderersettings.cpp.
int QgsMeshRendererVectorSettings::userGridCellHeight | ( | ) | const |
Returns height in pixels of user grid cell.
Definition at line 253 of file qgsmeshrenderersettings.cpp.
int QgsMeshRendererVectorSettings::userGridCellWidth | ( | ) | const |
Returns width in pixels of user grid cell.
Definition at line 243 of file qgsmeshrenderersettings.cpp.
QgsInterpolatedLineColor QgsMeshRendererVectorSettings::vectorStrokeColoring | ( | ) | const |
Returns the stroke coloring used to render vector datasets.
Definition at line 671 of file qgsmeshrenderersettings.cpp.
QDomElement QgsMeshRendererVectorSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element.
Definition at line 597 of file qgsmeshrenderersettings.cpp.