QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsMesh3DAveragingMethod Class Referenceabstract

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

#include <qgsmesh3daveraging.h>

Inheritance diagram for QgsMesh3DAveragingMethod:
Inheritance graph
[legend]

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 QgsMesh3DAveragingMethodclone () 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 QgsMesh3DAveragingMethodcreateFromXml (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.
 

Detailed Description

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.
Since
QGIS 3.12

Definition at line 41 of file qgsmesh3daveraging.h.

Member Enumeration Documentation

◆ Method

Type of averaging method.

Enumerator
MultiLevelsAveragingMethod 

Method to average values from selected vertical layers.

SigmaAveragingMethod 

Method to average values between 0 (bed level) and 1 (surface)

RelativeHeightAveragingMethod 

Method to average values defined by range of relative length units to the surface or bed level.

ElevationAveragingMethod 

Method to average values defined by range of absolute length units to the model's datum.

Definition at line 76 of file qgsmesh3daveraging.h.

Constructor & Destructor Documentation

◆ QgsMesh3DAveragingMethod()

QgsMesh3DAveragingMethod::QgsMesh3DAveragingMethod ( Method  method)

Ctor.

Definition at line 28 of file qgsmesh3daveraging.cpp.

◆ ~QgsMesh3DAveragingMethod()

virtual QgsMesh3DAveragingMethod::~QgsMesh3DAveragingMethod ( )
virtualdefault

Member Function Documentation

◆ calculate()

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.

◆ clone()

virtual QgsMesh3DAveragingMethod * QgsMesh3DAveragingMethod::clone ( ) const
pure virtual

◆ createFromXml()

QgsMesh3DAveragingMethod * QgsMesh3DAveragingMethod::createFromXml ( const QDomElement &  elem)
static

Creates the instance from XML by calling readXml of derived classes.

Definition at line 33 of file qgsmesh3daveraging.cpp.

◆ equals() [1/2]

bool QgsMesh3DAveragingMethod::equals ( const QgsMesh3DAveragingMethod a,
const QgsMesh3DAveragingMethod b 
)
static

Returns whether two methods equal.

Definition at line 230 of file qgsmesh3daveraging.cpp.

◆ equals() [2/2]

virtual bool QgsMesh3DAveragingMethod::equals ( const QgsMesh3DAveragingMethod other) const
pure virtual

◆ method()

QgsMesh3DAveragingMethod::Method QgsMesh3DAveragingMethod::method ( ) const

Returns type of averaging method.

Definition at line 152 of file qgsmesh3daveraging.cpp.

◆ readXml()

virtual void QgsMesh3DAveragingMethod::readXml ( const QDomElement &  elem)
pure virtual

◆ writeXml()

virtual QDomElement QgsMesh3DAveragingMethod::writeXml ( QDomDocument &  doc) const
pure virtual

The documentation for this class was generated from the following files: