18#ifndef QGSMESHLAYERINTERPOLATOR_H
19#define QGSMESHLAYERINTERPOLATOR_H
50 QgsMeshLayerInterpolator(
51 const QgsTriangularMesh &m,
52 const QVector<double> &datasetValues,
53 const QgsMeshDataBlock &activeFaceFlagValues,
55 const QgsRenderContext &context,
58 ~QgsMeshLayerInterpolator()
override;
60 QgsRasterInterface *
clone()
const override;
63 QgsRasterBlock *
block(
int,
const QgsRectangle &extent,
int width,
int height, QgsRasterBlockFeedback *feedback =
nullptr )
override;
65 void setSpatialIndexActive(
bool active );
67 void setElevationMapSettings(
bool renderElevationMap,
double elevationScale,
double elevationOffset );
70 const QgsTriangularMesh &mTriangularMesh;
71 const QVector<double> &mDatasetValues;
72 const QgsMeshDataBlock &mActiveFaceFlagValues;
73 const QgsRenderContext &mContext;
76 bool mSpatialIndexActive =
false;
78 bool mRenderElevation =
false;
79 double mElevationScale = 1.0;
80 double mElevationOffset = 0.0;
DataType
Raster data types.
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
An index that identifies the dataset group (e.g.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)=0
Read block of data using given extent and size.
virtual Qgis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
virtual int bandCount() const =0
Gets number of bands.
Contains information about the context of a rendering operation.
Abstract base class for all rendered symbols.