QgsMeshDataSourceInterface class

Interface for mesh data sources.

Mesh is a collection of vertices and faces in 2D or 3D space

  • vertex - XY(Z) point (in the mesh's coordinate reference system)
  • faces - sets of vertices forming a closed shape - typically triangles or quadrilaterals

Base on the underlying data provider/format, whole mesh is either stored in memory or read on demand

Derived classes

class QgsMeshDataProvider
Base class for providing data for QgsMeshLayer.

Constructors, destructors, conversion operators

~QgsMeshDataSourceInterface() defaulted virtual
Dtor.

Public functions

auto faceCount() const -> int pure virtual
Returns number of faces in the native mesh.
void populateMesh(QgsMesh* mesh) const pure virtual
Populates the mesh vertices and faces.
auto vertexCount() const -> int pure virtual
Returns number of vertices in the native mesh.

Function documentation

int QgsMeshDataSourceInterface::faceCount() const pure virtual

Returns number of faces in the native mesh.

Returns Number of faces in the mesh

void QgsMeshDataSourceInterface::populateMesh(QgsMesh* mesh) const pure virtual

Populates the mesh vertices and faces.

int QgsMeshDataSourceInterface::vertexCount() const pure virtual

Returns number of vertices in the native mesh.

Returns Number of vertices in the mesh