Class: QgsMesh3DAveragingMethod¶
Abstract class to interpolate 3d stacked mesh data to 2d data
Note
In QGIS 3.34 this class was renamed from QgsMesh3dAveragingMethod
to QgsMesh3DAveragingMethod
. The old QgsMesh3dAveragingMethod
name
remains available in PyQGIS for compatibility.
Added in version 3.12.
Class Hierarchy¶
Subclasses¶
Elevation averaging method averages the values based on range defined absolute value to the model’s datum |
|
Multi level averaging method specifies limits of vertical layers from the top layer down or reversed. |
|
Relative height averaging method averages the values based on range defined relative to bed elevation or surface (when |
|
Sigma averages over the values between 0 (bed level) and 1 (surface). |
Methods
Calculated 2d block values from 3d stacked mesh values |
|
Clone the instance |
|
Returns whether two methods equal |
|
Returns type of averaging method |
|
Reads configuration from the given DOM element |
|
Writes configuration to a new DOM element |
Static Methods
Creates the instance from XML by calling readXml of derived classes |
Attributes
- class qgis.core.QgsMesh3DAveragingMethod[source]¶
Bases:
object
- __init__(method: QgsMesh3DAveragingMethod.Method)
Ctor
- Parameters:
method (QgsMesh3DAveragingMethod.Method)
- __init__(a0: QgsMesh3DAveragingMethod)
- Parameters:
- ElevationAveragingMethod = 3¶
- class Method¶
Bases:
int
- MultiLevelsAveragingMethod = 0¶
- RelativeHeightAveragingMethod = 2¶
- SigmaAveragingMethod = 1¶
- calculate(self, block3d: QgsMesh3DDataBlock, feedback: QgsFeedback | None = None) QgsMeshDataBlock [source]¶
Calculated 2d block values from 3d stacked mesh values
- Parameters:
block3d (QgsMesh3DDataBlock)
feedback (Optional[QgsFeedback] = None)
- Return type:
- clone(self) QgsMesh3DAveragingMethod | None [source]¶
Clone the instance
- Return type:
Optional[QgsMesh3DAveragingMethod]
- static createFromXml(elem: QDomElement) QgsMesh3DAveragingMethod | None [source]¶
Creates the instance from XML by calling readXml of derived classes
- Parameters:
elem (QDomElement)
- Return type:
Optional[QgsMesh3DAveragingMethod]
- equals(a: QgsMesh3DAveragingMethod | None, b: QgsMesh3DAveragingMethod | None) bool [source]¶
Returns whether two methods equal
- Parameters:
a (Optional[QgsMesh3DAveragingMethod])
b (Optional[QgsMesh3DAveragingMethod])
- Return type:
bool
- equals(self, other: QgsMesh3DAveragingMethod | None) bool [source]
Returns whether method equals to other
- Parameters:
other (Optional[QgsMesh3DAveragingMethod])
- Return type:
bool
- method(self) QgsMesh3DAveragingMethod.Method [source]¶
Returns type of averaging method
- Return type: