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:
Methods
Calculated 2d block values from 3d stacked mesh values
Clone the instance
Creates the instance from XML by calling readXml of derived classes
Returns whether two methods equal
Returns type of averaging method
Reads configuration from the given DOM element
Writes configuration to a new DOM element
Attributes
- 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
block3d (QgsMesh3dDataBlock) –
feedback (
QgsFeedback
= None) –
- Return type
- clone(self) QgsMesh3dAveragingMethod ¶
Clone the instance
- Return type
- createFromXml(elem: QDomElement) QgsMesh3dAveragingMethod ¶
Creates the instance from XML by calling readXml of derived classes
- Parameters
elem (QDomElement) –
- Return type
- equals(a: QgsMesh3dAveragingMethod, b: QgsMesh3dAveragingMethod) bool ¶
Returns whether two methods equal
equals(self, other:
QgsMesh3dAveragingMethod
) -> bool Returns whether method equals to other- Parameters
a (QgsMesh3dAveragingMethod) –
b (QgsMesh3dAveragingMethod) –
- Return type
bool
- method(self) QgsMesh3dAveragingMethod.Method ¶
Returns type of averaging method
- Return type
- 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