18 #ifndef QGSHILLSHADERENDERER_H 19 #define QGSHILLSHADERENDERER_H 65 int band()
const {
return mBand; }
70 void setBand(
int bandNo );
76 double azimuth()
const {
return mLightAzimuth; }
81 double altitude()
const {
return mLightAngle; }
86 double zFactor()
const {
return mZFactor; }
98 void setAzimuth(
double azimuth ) { mLightAzimuth = azimuth; }
124 double mLightAzimuth;
125 bool mMultiDirectional;
128 double calcFirstDerX(
double x11,
double x21,
double x31,
double x12,
double x22,
double x32,
double x13,
double x23,
double x33 ,
double cellsize );
131 double calcFirstDerY(
double x11,
double x21,
double x31,
double x12,
double x22,
double x32,
double x13,
double x23,
double x33 ,
double cellsize );
134 #endif // QGSHILLSHADERENDERER_H A rectangle specified with double values.
void setAltitude(double altitude)
Set the altitude of the light source.
void setMultiDirectional(bool isMultiDirectional)
Sets whether to render using a multi-directional hillshade algorithm.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size.
void setZFactor(double zfactor)
Set the Z scaling factor of the result image.
int band() const
Returns the band used by the renderer.
bool multiDirectional() const
Returns true if the renderer is using multi-directional hillshading.
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
A renderer for generating live hillshade models.
void setAzimuth(double azimuth)
Set the azimuth of the light source.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
double altitude() const
Returns the angle of the light source over the raster.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
double zFactor() const
Returns the Z scaling factor.
double azimuth() const
Returns the direction of the light over the raster between 0-360.
Feedback object tailored for raster block reading.
Raster renderer pipe that applies colors to a raster.