16#ifndef QGSELEVATIONMAP_H
17#define QGSELEVATIONMAP_H
50 explicit QgsElevationMap(
const QSize &size,
float devicePixelRatio = 1.0 );
79 void applyEyeDomeLighting( QImage &image,
int distance,
float strength,
float rendererScale )
const;
99 void applyHillshading( QImage &image,
bool multiDirectional,
double altitude,
double azimuth,
double zFactor,
double cellSizeX,
double cellSizeY )
const;
105 QPainter *painter()
const;
122 void fillWithRasterBlock(
QgsRasterBlock *block,
int top,
int left,
double zScale = 1.0,
double offset = 0.0 )
SIP_SKIP;
129 bool isValid() const;
132 static QRgb encodeElevation(
float z );
134 static
float decodeElevation( QRgb colorRaw );
140 inline
bool isNoData( QRgb colorRaw )
const {
return colorRaw == 0;}
149 mutable QImage mElevationImage;
150 mutable std::unique_ptr<QPainter> mPainter;
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Stores digital elevation model in a raster image which may get updated as a part of map layer renderi...
QgsElevationMap()=default
Default constructor.
float noDataValue() const
Returns the no data value for the elevation map.
QImage rawElevationImage() const
Returns raw elevation image with elevations encoded as color values.