18#ifndef QGSMESHLAYERINTERPOLATOR_H
19#define QGSMESHLAYERINTERPOLATOR_H
50 QgsMeshLayerInterpolator(
const QgsTriangularMesh &m,
51 const QVector<double> &datasetValues,
52 const QgsMeshDataBlock &activeFaceFlagValues,
54 const QgsRenderContext &context,
56 ~QgsMeshLayerInterpolator()
override;
58 QgsRasterInterface *
clone()
const override;
61 QgsRasterBlock *
block(
int,
const QgsRectangle &extent,
int width,
int height, QgsRasterBlockFeedback *feedback =
nullptr )
override;
63 void setSpatialIndexActive(
bool active );
65 void setElevationMapSettings(
bool renderElevationMap,
double elevationScale,
double elevationOffset );
68 const QgsTriangularMesh &mTriangularMesh;
69 const QVector<double> &mDatasetValues;
70 const QgsMeshDataBlock &mActiveFaceFlagValues;
71 const QgsRenderContext &mContext;
74 bool mSpatialIndexActive =
false;
76 bool mRenderElevation =
false;
77 double mElevationScale = 1.0;
78 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.