|
virtual | ~QgsMeshDataSourceInterface ()=default |
| Dtor.
|
|
bool | contains (const QgsMesh::ElementType &type) const |
| Returns whether the mesh contains at mesh elements of given type.
|
|
virtual int | edgeCount () const =0 |
| Returns number of edges in the native mesh.
|
|
virtual int | faceCount () const =0 |
| Returns number of faces in the native mesh.
|
|
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.
|
|
virtual void | populateMesh (QgsMesh *mesh) const =0 |
| Populates the mesh vertices, edges and faces.
|
|
virtual bool | saveMeshFrame (const QgsMesh &mesh)=0 |
| Saves the mesh frame to the source.
|
|
virtual int | vertexCount () const =0 |
| Returns number of vertices in the native mesh.
|
|
Interface for mesh data sources.
Mesh is a collection of vertices, edges and faces in 2D or 3D space
- vertex - XY(Z) point (in the mesh's coordinate reference system)
- edge - two XY(Z) points (in the mesh's coordinate reference system) representing straight seqment
- 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
- Note
- The API is considered EXPERIMENTAL and can be changed without a notice
- Since
- QGIS 3.2
Definition at line 135 of file qgsmeshdataprovider.h.