QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSHILLSHADERENDERER_H
19 #define QGSHILLSHADERENDERER_H
22 #include "qgis_core.h"
59 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
65 void toSld( QDomDocument &doc, QDomElement &element,
const QVariantMap &props = QVariantMap() )
const override;
70 int band()
const {
return mBand; }
76 void setBand(
int bandNo );
82 double azimuth()
const {
return mLightAzimuth; }
88 double altitude()
const {
return mLightAngle; }
94 double zFactor()
const {
return mZFactor; }
107 void setAzimuth(
double azimuth ) { mLightAzimuth = azimuth; }
133 double mLightAngle = 45;
134 double mLightAzimuth = 315;
135 bool mMultiDirectional =
false;
139 #endif // QGSHILLSHADERENDERER_H
void setAzimuth(double azimuth)
Set the azimuth of the light source.
QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr) override=0
Read block of data using given extent and size.
void setAltitude(double altitude)
Set the altitude of the light source.
A renderer for generating live hillshade models.
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
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.
A rectangle specified with double values.
double azimuth() const
Returns the direction of the light over the raster between 0-360.
bool multiDirectional() const
Returns true if the renderer is using multi-directional hillshading.
Raster renderer pipe that applies colors to a raster.
virtual void toSld(QDomDocument &doc, QDomElement &element, const QVariantMap &props=QVariantMap()) const
Used from subclasses to create SLD Rule elements following SLD v1.0 specs.
double altitude() const
Returns the angle of the light source over the raster.
int band() const
Returns the band used by the renderer.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
Base class for processing filters like renderers, reprojector, resampler etc.
Feedback object tailored for raster block reading.
void setZFactor(double zfactor)
Set the Z scaling factor of the result image.
double zFactor() const
Returns the Z scaling factor.