QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Elevation averaging method averages the values based on range defined absolute value to the model's datum The range is defined in the same length units as defined by model (e.g. More...
#include <qgsmesh3daveraging.h>
Public Member Functions | |
QgsMeshElevationAveragingMethod () | |
Ctor. More... | |
QgsMeshElevationAveragingMethod (double startElevation, double endElevation) | |
Constructs elevation averaging method. More... | |
~QgsMeshElevationAveragingMethod () override | |
QgsMesh3dAveragingMethod * | clone () const override |
Clone the instance. More... | |
double | endElevation () const |
Returns end elevation. More... | |
bool | equals (const QgsMesh3dAveragingMethod *other) const override |
Returns whether method equals to other. More... | |
void | readXml (const QDomElement &elem) override |
Reads configuration from the given DOM element. More... | |
double | startElevation () const |
Returns start elevation. More... | |
QDomElement | writeXml (QDomDocument &doc) const override |
Writes configuration to a new DOM element. More... | |
Public Member Functions inherited from QgsMesh3dAveragingMethod | |
QgsMesh3dAveragingMethod (Method method) | |
Ctor. More... | |
virtual | ~QgsMesh3dAveragingMethod ()=default |
Dtor. More... | |
QgsMeshDataBlock | calculate (const QgsMesh3dDataBlock &block3d, QgsFeedback *feedback=nullptr) const |
Calculated 2d block values from 3d stacked mesh values. More... | |
Method | method () const |
Returns type of averaging method. More... | |
Additional Inherited Members | |
Public Types inherited from QgsMesh3dAveragingMethod | |
enum | Method { MultiLevelsAveragingMethod = 0 , SigmaAveragingMethod , RelativeHeightAveragingMethod , ElevationAveragingMethod } |
Type of averaging method. More... | |
Static Public Member Functions inherited from QgsMesh3dAveragingMethod | |
static QgsMesh3dAveragingMethod * | createFromXml (const QDomElement &elem) |
Creates the instance from XML by calling readXml of derived classes. More... | |
static bool | equals (const QgsMesh3dAveragingMethod *a, const QgsMesh3dAveragingMethod *b) |
Returns whether two methods equal. More... | |
Elevation averaging method averages the values based on range defined absolute value to the model's datum The range is defined in the same length units as defined by model (e.g.
meters)
For example one can pull out results irrespective of water level change such as between -16m and -10m. The elevation will be truncated at the surface and bed levels.
Definition at line 361 of file qgsmesh3daveraging.h.
QgsMeshElevationAveragingMethod::QgsMeshElevationAveragingMethod | ( | ) |
Ctor.
Definition at line 550 of file qgsmesh3daveraging.cpp.
QgsMeshElevationAveragingMethod::QgsMeshElevationAveragingMethod | ( | double | startElevation, |
double | endElevation | ||
) |
Constructs elevation averaging method.
startElevation | start elevation (absolute to model's datum) |
endElevation | end elevation (absolute to model's datum) |
Definition at line 555 of file qgsmesh3daveraging.cpp.
|
overridedefault |
|
overridevirtual |
Clone the instance.
Implements QgsMesh3dAveragingMethod.
Definition at line 600 of file qgsmesh3daveraging.cpp.
double QgsMeshElevationAveragingMethod::endElevation | ( | ) | const |
Returns end elevation.
Definition at line 610 of file qgsmesh3daveraging.cpp.
|
overridevirtual |
Returns whether method equals to other.
Implements QgsMesh3dAveragingMethod.
Definition at line 590 of file qgsmesh3daveraging.cpp.
|
overridevirtual |
Reads configuration from the given DOM element.
Implements QgsMesh3dAveragingMethod.
Definition at line 576 of file qgsmesh3daveraging.cpp.
double QgsMeshElevationAveragingMethod::startElevation | ( | ) | const |
Returns start elevation.
Definition at line 605 of file qgsmesh3daveraging.cpp.
|
overridevirtual |
Writes configuration to a new DOM element.
Implements QgsMesh3dAveragingMethod.
Definition at line 568 of file qgsmesh3daveraging.cpp.