QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
20 #ifndef QGSRASTERSHADER_H
21 #define QGSRASTERSHADER_H
23 #include "qgis_core.h"
38 QgsRasterShader(
double minimumValue = 0.0,
double maximumValue = 255.0 );
84 bool shade(
double value,
102 bool shade(
double redValue,
122 void setMaximumValue(
double value );
129 void setMinimumValue(
double value );
134 void writeXml( QDomDocument &doc, QDomElement &parent )
const;
139 void readXml(
const QDomElement &elem );
147 double mMinimumValue;
150 double mMaximumValue;
153 std::unique_ptr< QgsRasterShaderFunction > mRasterShaderFunction;
double maximumValue() const
Returns the maximum value for the raster shader.
double minimumValue() const
Returns the minimum value for the raster shader.
QgsRasterShaderFunction * rasterShaderFunction()
QgsRasterShader(const QgsRasterShader &rh)=delete
QgsRasterShader cannot be copied.
const QgsRasterShaderFunction * rasterShaderFunction() const
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
Interface for all raster shaders.
QgsRasterShader & operator=(const QgsRasterShader &rh)=delete
QgsRasterShader cannot be copied.