QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsmeshdataprovider.h>
Public Types | |
enum | ElementType { Vertex = 1, Edge = 2, Face = 4 } |
Defines type of mesh elements. More... | |
Public Member Functions | |
void | clear () |
Remove all vertices, edges and faces. More... | |
bool | contains (const ElementType &type) const |
Returns whether the mesh contains at mesh elements of given type. More... | |
QgsMeshEdge | edge (int index) const |
Returns an edge at the index. More... | |
int | edgeCount () const |
Returns number of edge. More... | |
QgsMeshFace | face (int index) const |
Returns a face at the index. More... | |
int | faceCount () const |
Returns number of faces. More... | |
QgsMeshVertex | vertex (int index) const |
Returns a vertex at the index. More... | |
int | vertexCount () const |
Returns number of vertices. More... | |
Public Attributes | |
QVector< QgsMeshEdge > | edges |
QVector< QgsMeshFace > | faces |
QVector< QgsMeshVertex > | vertices |
enum QgsMesh::ElementType |
Defines type of mesh elements.
Enumerator | |
---|---|
Vertex | |
Edge | |
Face |
Definition at line 64 of file qgsmeshdataprovider.h.
void QgsMesh::clear | ( | ) |
Remove all vertices, edges and faces.
Definition at line 98 of file qgsmeshdataprovider.cpp.
bool QgsMesh::contains | ( | const ElementType & | type | ) | const |
Returns whether the mesh contains at mesh elements of given type.
Definition at line 105 of file qgsmeshdataprovider.cpp.
QgsMeshEdge QgsMesh::edge | ( | int | index | ) | const |
int QgsMesh::edgeCount | ( | ) | const |
QgsMeshFace QgsMesh::face | ( | int | index | ) | const |
Returns a face at the index.
Definition at line 84 of file qgsmeshdataprovider.cpp.
int QgsMesh::faceCount | ( | ) | const |
Returns number of faces.
Definition at line 124 of file qgsmeshdataprovider.cpp.
QgsMeshVertex QgsMesh::vertex | ( | int | index | ) | const |
Returns a vertex at the index.
Definition at line 77 of file qgsmeshdataprovider.cpp.
int QgsMesh::vertexCount | ( | ) | const |
Returns number of vertices.
Definition at line 119 of file qgsmeshdataprovider.cpp.
QVector<QgsMeshEdge> QgsMesh::edges |
Definition at line 106 of file qgsmeshdataprovider.h.
QVector<QgsMeshFace> QgsMesh::faces |
Definition at line 107 of file qgsmeshdataprovider.h.
QVector<QgsMeshVertex> QgsMesh::vertices |
Definition at line 105 of file qgsmeshdataprovider.h.