16#ifndef QGSMESHSPATIALINDEX_H
17#define QGSMESHSPATIALINDEX_H
28#include <QSharedDataPointer>
31class QgsMeshSpatialIndexData;
116 QSharedDataPointer<QgsMeshSpatialIndexData> d;
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QList< int > intersects(const QgsRectangle &rectangle) const
Returns a list of face ids with a bounding box which intersects the specified rectangle.
QgsMesh::ElementType elementType() const
Returns the type of mesh elements that are indexed.
QgsMeshSpatialIndex()
Constructor for QgsSpatialIndex.
void addFace(int faceIndex, const QgsMesh &mesh)
Adds a face with faceIndex from the mesh in the spatial index.
void removeFace(int faceIndex, const QgsMesh &mesh)
Removes a face with faceIndex from the mesh in the spatial index.
QgsMeshSpatialIndex & operator=(const QgsMeshSpatialIndex &other)
QList< int > nearestNeighbor(const QgsPointXY &point, int neighbors) const
Returns nearest neighbors to a point.
~QgsMeshSpatialIndex()
Destructor finalizes work with spatial index.
A rectangle specified with double values.
Mesh - vertices, edges and faces.
ElementType
Defines type of mesh elements.