Class: QgsMesh3dAveragingMethod

class qgis.core.QgsMesh3dAveragingMethod(method: QgsMesh3dAveragingMethod.Method)

Bases: sip.wrapper

Ctor

QgsMesh3dAveragingMethod(QgsMesh3dAveragingMethod)

Abstract class to interpolate 3d stacked mesh data to 2d data

New in version 3.12.

Parameters

method

ElevationAveragingMethod = 3
class Method

Bases: int

MultiLevelsAveragingMethod = 0
RelativeHeightAveragingMethod = 2
SigmaAveragingMethod = 1
calculate(self, block3d: QgsMesh3dDataBlock, feedback: QgsFeedback = None) → QgsMeshDataBlock

Calculated 2d block values from 3d stacked mesh values

Parameters
Return type

QgsMeshDataBlock

clone(self) → QgsMesh3dAveragingMethod

Clone the instance

Return type

QgsMesh3dAveragingMethod

createFromXml(elem: QDomElement) → QgsMesh3dAveragingMethod

Creates the instance from XML by calling readXml of derived classes

Parameters

elem (QDomElement) –

Return type

QgsMesh3dAveragingMethod

equals(a: QgsMesh3dAveragingMethod, b: QgsMesh3dAveragingMethod) → bool

Returns whether two methods equal

equals(self, other: QgsMesh3dAveragingMethod) -> bool Returns whether method equals to other

Parameters
Return type

bool

method(self) → QgsMesh3dAveragingMethod.Method

Returns type of averaging method

Return type

QgsMesh3dAveragingMethod.Method

readXml(self, elem: QDomElement)

Reads configuration from the given DOM element

Parameters

elem (QDomElement) –

writeXml(self, doc: QDomDocument) → QDomElement

Writes configuration to a new DOM element

Parameters

doc (QDomDocument) –

Return type

QDomElement