QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Interface for mesh data sources. More...
#include <qgsmeshdataprovider.h>
Public Member Functions | |
virtual | ~QgsMeshDataSourceInterface ()=default |
Dtor. More... | |
bool | contains (const QgsMesh::ElementType &type) const |
Returns whether the mesh contains at mesh elements of given type. More... | |
virtual int | edgeCount () const =0 |
Returns number of edges in the native mesh. More... | |
virtual int | faceCount () const =0 |
Returns number of faces in the native mesh. More... | |
virtual int | maximumVerticesCountPerFace () const |
Returns the maximum number of vertices per face supported by the current mesh, if returns 0, the number of vertices is unlimited. More... | |
virtual void | populateMesh (QgsMesh *mesh) const =0 |
Populates the mesh vertices, edges and faces. More... | |
virtual bool | saveMeshFrame (const QgsMesh &mesh)=0 |
Saves the mesh frame to the source. More... | |
virtual int | vertexCount () const =0 |
Returns number of vertices in the native mesh. More... | |
Interface for mesh data sources.
Mesh is a collection of vertices, edges and faces in 2D or 3D space
Base on the underlying data provider/format, whole mesh is either stored in memory or read on demand
Definition at line 135 of file qgsmeshdataprovider.h.
|
virtualdefault |
Dtor.
bool QgsMeshDataSourceInterface::contains | ( | const QgsMesh::ElementType & | type | ) | const |
Returns whether the mesh contains at mesh elements of given type.
Definition at line 215 of file qgsmeshdataprovider.cpp.
|
pure virtual |
Returns number of edges in the native mesh.
|
pure virtual |
Returns number of faces in the native mesh.
|
inlinevirtual |
Returns the maximum number of vertices per face supported by the current mesh, if returns 0, the number of vertices is unlimited.
Definition at line 175 of file qgsmeshdataprovider.h.
|
pure virtual |
Populates the mesh vertices, edges and faces.
|
pure virtual |
Saves the mesh frame to the source.
mesh | the mesh to save |
true
on success
|
pure virtual |
Returns number of vertices in the native mesh.