QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Abstract class to interpolate 3d stacked mesh data to 2d data. More...
#include <qgsmesh3daveraging.h>
Public Types | |
enum | Method { MultiLevelsAveragingMethod = 0 , SigmaAveragingMethod , RelativeHeightAveragingMethod , ElevationAveragingMethod } |
Type of averaging method. More... | |
Public Member Functions | |
QgsMesh3DAveragingMethod (Method method) | |
Ctor. | |
virtual | ~QgsMesh3DAveragingMethod ()=default |
QgsMeshDataBlock | calculate (const QgsMesh3DDataBlock &block3d, QgsFeedback *feedback=nullptr) const |
Calculated 2d block values from 3d stacked mesh values. | |
virtual QgsMesh3DAveragingMethod * | clone () const =0 |
Clone the instance. | |
virtual bool | equals (const QgsMesh3DAveragingMethod *other) const =0 |
Returns whether method equals to other. | |
Method | method () const |
Returns type of averaging method. | |
virtual void | readXml (const QDomElement &elem)=0 |
Reads configuration from the given DOM element. | |
virtual QDomElement | writeXml (QDomDocument &doc) const =0 |
Writes configuration to a new DOM element. | |
Static Public Member Functions | |
static QgsMesh3DAveragingMethod * | createFromXml (const QDomElement &elem) |
Creates the instance from XML by calling readXml of derived classes. | |
static bool | equals (const QgsMesh3DAveragingMethod *a, const QgsMesh3DAveragingMethod *b) |
Returns whether two methods equal. | |
Abstract class to interpolate 3d stacked mesh data to 2d data.
Definition at line 41 of file qgsmesh3daveraging.h.
Type of averaging method.
Definition at line 76 of file qgsmesh3daveraging.h.
QgsMesh3DAveragingMethod::QgsMesh3DAveragingMethod | ( | Method | method | ) |
Ctor.
Definition at line 28 of file qgsmesh3daveraging.cpp.
|
virtualdefault |
QgsMeshDataBlock QgsMesh3DAveragingMethod::calculate | ( | const QgsMesh3DDataBlock & | block3d, |
QgsFeedback * | feedback = nullptr |
||
) | const |
Calculated 2d block values from 3d stacked mesh values.
Definition at line 58 of file qgsmesh3daveraging.cpp.
|
pure virtual |
Clone the instance.
Implemented in QgsMeshMultiLevelsAveragingMethod, QgsMeshSigmaAveragingMethod, QgsMeshRelativeHeightAveragingMethod, and QgsMeshElevationAveragingMethod.
|
static |
Creates the instance from XML by calling readXml of derived classes.
Definition at line 33 of file qgsmesh3daveraging.cpp.
|
static |
Returns whether two methods equal.
Definition at line 230 of file qgsmesh3daveraging.cpp.
|
pure virtual |
Returns whether method equals to other.
Implemented in QgsMeshMultiLevelsAveragingMethod, QgsMeshSigmaAveragingMethod, QgsMeshRelativeHeightAveragingMethod, and QgsMeshElevationAveragingMethod.
QgsMesh3DAveragingMethod::Method QgsMesh3DAveragingMethod::method | ( | ) | const |
Returns type of averaging method.
Definition at line 152 of file qgsmesh3daveraging.cpp.
|
pure virtual |
Reads configuration from the given DOM element.
Implemented in QgsMeshMultiLevelsAveragingMethod, QgsMeshSigmaAveragingMethod, QgsMeshRelativeHeightAveragingMethod, and QgsMeshElevationAveragingMethod.
|
pure virtual |
Writes configuration to a new DOM element.
Implemented in QgsMeshMultiLevelsAveragingMethod, QgsMeshSigmaAveragingMethod, QgsMeshRelativeHeightAveragingMethod, and QgsMeshElevationAveragingMethod.