|
| QgsTriangularMesh () |
| Ctor. More...
|
|
| ~QgsTriangularMesh () |
| Dtor. More...
|
|
void | applyChanges (const Changes &changes) |
| Applies the changes on the triangular mesh (see Changes) More...
|
|
double | averageTriangleSize () const |
| Returns the average size of triangles in map unit. More...
|
|
Q_DECL_DEPRECATED const QVector< QgsMeshVertex > & | centroids () const |
| Returns centroids of the native faces in map CRS. More...
|
|
bool | contains (const QgsMesh::ElementType &type) const |
| Returns whether the mesh contains mesh elements of given type. More...
|
|
const QVector< QgsMeshVertex > & | edgeCentroids () const |
| Returns centroids of the native edges in map CRS. More...
|
|
QList< int > | edgeIndexesForRectangle (const QgsRectangle &rectangle) const |
| Finds indexes of edges intersecting given bounding box It uses spatial indexing. More...
|
|
const QVector< QgsMeshEdge > & | edges () const |
| Returns edges. More...
|
|
const QVector< int > & | edgesToNativeEdges () const |
| Returns mapping between edges and original edges. More...
|
|
QgsRectangle | extent () const |
| Returns the extent of the triangular mesh in map coordinates. More...
|
|
const QVector< QgsMeshVertex > & | faceCentroids () const |
| Returns centroids of the native faces in map CRS. More...
|
|
QList< int > | faceIndexesForRectangle (const QgsRectangle &rectangle) const |
| Finds indexes of triangles intersecting given bounding box It uses spatial indexing. More...
|
|
int | faceIndexForPoint (const QgsPointXY &point) const |
| Finds index of triangle at given point It uses spatial indexing. More...
|
|
int | faceIndexForPoint_v2 (const QgsPointXY &point) const |
| Finds index of triangle at given point It uses spatial indexing and don't use geos to be faster. More...
|
|
int | levelOfDetail () const |
| Returns the corresponding index of level of detail on which this mesh is associated. More...
|
|
QgsRectangle | nativeExtent () |
| Returns the extent of the mesh in the native mesh coordinates system, returns empty extent if the transformation fails. More...
|
|
int | nativeFaceIndexForPoint (const QgsPointXY &point) const |
| Finds index of native face at given point It uses spatial indexing. More...
|
|
QList< int > | nativeFaceIndexForRectangle (const QgsRectangle &rectangle) const |
| Finds indexes of native faces which bounding boxes intersect given bounding box It uses spatial indexing. More...
|
|
QgsMeshVertex | nativeToTriangularCoordinates (const QgsMeshVertex &vertex) const |
| Transforms the vertex from native coordinates system to triangular mesh coordinates system. More...
|
|
void | reverseChanges (const Changes &changes, const QgsMesh &nativeMesh) |
| Reverses the changes on the triangular mesh (see Changes) More...
|
|
QVector< QgsTriangularMesh * > | simplifyMesh (double reductionFactor, int minimumTrianglesCount=10) const |
| Returns simplified meshes. More...
|
|
QgsPointXY | transformFromLayerToTrianglesCoordinates (const QgsPointXY &point) const |
| Transforms a point from layer coordinates system to triangular Mesh coordinates system. More...
|
|
const QVector< QgsMeshFace > & | triangles () const |
| Returns triangles. More...
|
|
const QVector< int > & | trianglesToNativeFaces () const |
| Returns mapping between triangles and original faces. More...
|
|
QgsMeshVertex | triangularToNativeCoordinates (const QgsMeshVertex &vertex) const |
| Transforms the vertex from triangular mesh coordinates system to native coordinates system. More...
|
|
bool | update (QgsMesh *nativeMesh) |
| Constructs triangular mesh from layer's native mesh using the coordinate transform already set. More...
|
|
bool | update (QgsMesh *nativeMesh, const QgsCoordinateTransform &transform) |
| Constructs triangular mesh from layer's native mesh and transform to destination CRS. More...
|
|
QVector< QVector3D > | vertexNormals (float vertScale) const |
| Calculates and returns normale vector on each vertex that is part of any face. More...
|
|
const QVector< QgsMeshVertex > & | vertices () const |
| Returns vertices in map coordinate system. More...
|
|