Class: QgsRasterVectorFieldRenderer¶
Raster renderer which draws a vector field stored in raster bands.
The way that the raster data is interpreted as vectors (eg. Cartesian
component per band, single band with cardinal direction) can be set
using setSourceMode()
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Raster renderer pipe that applies colors to a raster. |
|
Base class for processing filters like renderers, reprojector, resampler etc. |
Constructor
Abstract Methods
Methods
Returns the band which holds the coded compass directions, used when the |
|
Returns the scheme the |
|
Returns the magnitude the symbology treats as the largest one of the raster. |
|
Returns the magnitude the symbology treats as the smallest one of the raster. |
|
Attempts to set the band which holds the coded compass directions. |
|
Sets the scheme the |
|
Sets the magnitude the symbology treats as the largest one of the raster. |
|
Sets the magnitude the symbology treats as the smallest one of the raster. |
|
Sets the settings used to render the vector field. |
|
Sets the way the vectors are stored in the raster bands. |
|
Attempts to set the band which holds the x component of the vectors. |
|
Attempts to set the band which holds the y component of the vectors. |
|
Returns the settings used to render the vector field. |
|
Returns the way the vectors are stored in the raster bands. |
|
Returns the band which holds the x component of the vectors. |
|
Returns the band which holds the y component of the vectors. |
Static Methods
Creates an instance of the renderer based on definition from XML (used by renderer registry) |
- class qgis.core.QgsRasterVectorFieldRenderer[source]¶
Bases:
QgsRasterRenderer- __init__(input: QgsRasterInterface | None)¶
Creates a vector field renderer
- Parameters:
input (QgsRasterInterface|None)
- abstract clone(self) QgsRasterVectorFieldRenderer | None[source]¶
- Return type:
- static create(elem: QDomElement, input: QgsRasterInterface | None) QgsRasterRenderer | None¶
Creates an instance of the renderer based on definition from XML (used by renderer registry)
- Parameters:
elem (QDomElement)
input (QgsRasterInterface|None)
- Return type:
QgsRasterRenderer|None
- directionBand(self) int[source]¶
Returns the band which holds the coded compass directions, used when the
sourceMode()isQgis.RasterVectorFieldSourceMode.EncodedDirection.See also
- Return type:
int
- directionEncoding(self) Qgis.RasterDirectionEncoding[source]¶
Returns the scheme the
directionBand()is coded with.See also
- Return type:
- maximumMagnitude(self) float[source]¶
Returns the magnitude the symbology treats as the largest one of the raster.
Note
Ignored when the
sourceMode()isQgis.RasterVectorFieldSourceMode.EncodedDirectionSee also
- Return type:
float
- minimumMagnitude(self) float[source]¶
Returns the magnitude the symbology treats as the smallest one of the raster.
Note
Ignored when the
sourceMode()isQgis.RasterVectorFieldSourceMode.EncodedDirectionSee also
- Return type:
float
- setDirectionBand(self, band: int) bool[source]¶
Attempts to set the
bandwhich holds the coded compass directions.Returns
Trueif the band was successfully set.See also
- Parameters:
band (int)
- Return type:
bool
- setDirectionEncoding(self, encoding: Qgis.RasterDirectionEncoding)[source]¶
Sets the scheme the
directionBand()is coded with.See also
- Parameters:
encoding (Qgis.RasterDirectionEncoding)
- setMaximumMagnitude(self, magnitude: float)[source]¶
Sets the
magnitudethe symbology treats as the largest one of the raster.See also
- Parameters:
magnitude (float)
- setMinimumMagnitude(self, magnitude: float)[source]¶
Sets the
magnitudethe symbology treats as the smallest one of the raster.See also
- Parameters:
magnitude (float)
- setSettings(self, settings: QgsVectorFieldSettings)[source]¶
Sets the
settingsused to render the vector field.See also
- Parameters:
settings (QgsVectorFieldSettings)
- setSourceMode(self, mode: Qgis.RasterVectorFieldSourceMode)[source]¶
Sets the way the vectors are stored in the raster bands.
See also
- Parameters:
- setXBand(self, band: int) bool[source]¶
Attempts to set the
bandwhich holds the x component of the vectors.Returns
Trueif the band was successfully set.See also
- Parameters:
band (int)
- Return type:
bool
- setYBand(self, band: int) bool[source]¶
Attempts to set the
bandwhich holds the y component of the vectors.Returns
Trueif the band was successfully set.See also
- Parameters:
band (int)
- Return type:
bool
- settings(self) QgsVectorFieldSettings[source]¶
Returns the settings used to render the vector field.
See also
- Return type:
- sourceMode(self) Qgis.RasterVectorFieldSourceMode[source]¶
Returns the way the vectors are stored in the raster bands.
See also
- Return type:
- xBand(self) int[source]¶
Returns the band which holds the x component of the vectors.
See also
- Return type:
int