QGIS API Documentation  3.11.0-Master (68611307d7)
Public Types | Public Member Functions | List of all members
QgsMeshRendererVectorSettings Class Reference

Represents a streamline renderer settings for vector datasets. More...

#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...
 
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 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...
 
QDomElement writeXml (QDomDocument &doc) const
 Writes configuration to a new DOM element. More...
 

Detailed Description

Represents a streamline renderer settings for vector datasets.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.2

Definition at line 358 of file qgsmeshrenderersettings.h.

Member Enumeration Documentation

◆ Symbology

Defines the symbology of vector rendering.

Since
QGIS 3.12
Enumerator
Arrows 

Displaying vector dataset with arrows.

Streamlines 

Displaying vector dataset with streamlines.

Traces 

Displaying vector dataset with streamlines.

Definition at line 366 of file qgsmeshrenderersettings.h.

Member Function Documentation

◆ arrowSettings()

QgsMeshRendererVectorArrowSettings QgsMeshRendererVectorSettings::arrowSettings ( ) const

Returns settings for vector rendered with arrows.

Since
QGIS 3.12

Definition at line 513 of file qgsmeshrenderersettings.cpp.

◆ color()

QColor QgsMeshRendererVectorSettings::color ( ) const

Returns color used for drawing arrows.

Definition at line 157 of file qgsmeshrenderersettings.cpp.

◆ filterMax()

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 177 of file qgsmeshrenderersettings.cpp.

◆ filterMin()

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 167 of file qgsmeshrenderersettings.cpp.

◆ isOnUserDefinedGrid()

bool QgsMeshRendererVectorSettings::isOnUserDefinedGrid ( ) const

Returns whether vectors are drawn on user-defined grid.

Definition at line 187 of file qgsmeshrenderersettings.cpp.

◆ lineWidth()

double QgsMeshRendererVectorSettings::lineWidth ( ) const

Returns line width of the arrow (in millimeters)

Definition at line 147 of file qgsmeshrenderersettings.cpp.

◆ readXml()

void QgsMeshRendererVectorSettings::readXml ( const QDomElement &  elem)

Reads configuration from the given DOM element.

Definition at line 554 of file qgsmeshrenderersettings.cpp.

◆ setArrowsSettings()

void QgsMeshRendererVectorSettings::setArrowsSettings ( const QgsMeshRendererVectorArrowSettings arrowSettings)

Sets settings for vector rendered with arrows.

Since
QGIS 3.12

Definition at line 518 of file qgsmeshrenderersettings.cpp.

◆ setColor()

void QgsMeshRendererVectorSettings::setColor ( const QColor &  color)

Sets color used for drawing arrows.

Definition at line 162 of file qgsmeshrenderersettings.cpp.

◆ setFilterMax()

void QgsMeshRendererVectorSettings::setFilterMax ( double  filterMax)

Sets filter value for vector magnitudes.

See also
filterMax()

Definition at line 182 of file qgsmeshrenderersettings.cpp.

◆ setFilterMin()

void QgsMeshRendererVectorSettings::setFilterMin ( double  filterMin)

Sets filter value for vector magnitudes.

See also
filterMin()

Definition at line 172 of file qgsmeshrenderersettings.cpp.

◆ setLineWidth()

void QgsMeshRendererVectorSettings::setLineWidth ( double  lineWidth)

Sets line width of the arrow in pixels (in millimeters)

Definition at line 152 of file qgsmeshrenderersettings.cpp.

◆ setOnUserDefinedGrid()

void QgsMeshRendererVectorSettings::setOnUserDefinedGrid ( bool  enabled)

Toggles drawing of vectors on user defined grid.

Definition at line 192 of file qgsmeshrenderersettings.cpp.

◆ setStreamLinesSettings()

void QgsMeshRendererVectorSettings::setStreamLinesSettings ( const QgsMeshRendererVectorStreamlineSettings streamLinesSettings)

Sets settings for vector rendered with streamlines.

Since
QGIS 3.12

Definition at line 528 of file qgsmeshrenderersettings.cpp.

◆ setSymbology()

void QgsMeshRendererVectorSettings::setSymbology ( const Symbology symbology)

Sets the displaying method used to render vector datasets.

Since
QGIS 3.12

Definition at line 508 of file qgsmeshrenderersettings.cpp.

◆ setTracesSettings()

void QgsMeshRendererVectorSettings::setTracesSettings ( const QgsMeshRendererVectorTracesSettings tracesSettings)

Sets settings for vector rendered with traces.

Since
QGIS 3.12

Definition at line 586 of file qgsmeshrenderersettings.cpp.

◆ setUserGridCellHeight()

void QgsMeshRendererVectorSettings::setUserGridCellHeight ( int  height)

Sets height of user grid cell (in pixels)

Definition at line 212 of file qgsmeshrenderersettings.cpp.

◆ setUserGridCellWidth()

void QgsMeshRendererVectorSettings::setUserGridCellWidth ( int  width)

Sets width of user grid cell (in pixels)

Definition at line 202 of file qgsmeshrenderersettings.cpp.

◆ streamLinesSettings()

QgsMeshRendererVectorStreamlineSettings QgsMeshRendererVectorSettings::streamLinesSettings ( ) const

Returns settings for vector rendered with streamlines.

Since
QGIS 3.12

Definition at line 523 of file qgsmeshrenderersettings.cpp.

◆ symbology()

QgsMeshRendererVectorSettings::Symbology QgsMeshRendererVectorSettings::symbology ( ) const

Returns the displaying method used to render vector datasets.

Since
QGIS 3.12

Definition at line 503 of file qgsmeshrenderersettings.cpp.

◆ tracesSettings()

QgsMeshRendererVectorTracesSettings QgsMeshRendererVectorSettings::tracesSettings ( ) const

Returns settings for vector rendered with traces.

Since
QGIS 3.12

Definition at line 581 of file qgsmeshrenderersettings.cpp.

◆ userGridCellHeight()

int QgsMeshRendererVectorSettings::userGridCellHeight ( ) const

Returns height in pixels of user grid cell.

Definition at line 207 of file qgsmeshrenderersettings.cpp.

◆ userGridCellWidth()

int QgsMeshRendererVectorSettings::userGridCellWidth ( ) const

Returns width in pixels of user grid cell.

Definition at line 197 of file qgsmeshrenderersettings.cpp.

◆ writeXml()

QDomElement QgsMeshRendererVectorSettings::writeXml ( QDomDocument &  doc) const

Writes configuration to a new DOM element.

Definition at line 533 of file qgsmeshrenderersettings.cpp.


The documentation for this class was generated from the following files: