20 #ifndef QGSRASTERSHADER_H 21 #define QGSRASTERSHADER_H 23 #include "qgis_core.h" 38 QgsRasterShader(
double minimumValue = 0.0,
double maximumValue = 255.0 );
65 bool shade(
double value,
67 int *returnGreenValue SIP_OUT,
68 int *returnBlueValue SIP_OUT,
69 int *returnAlpha SIP_OUT );
72 bool shade(
double redValue,
76 int *returnRedValue SIP_OUT,
77 int *returnGreenValue SIP_OUT,
78 int *returnBlueValue SIP_OUT,
79 int *returnAlpha SIP_OUT );
87 void setMaximumValue(
double );
90 void setMinimumValue(
double );
95 void writeXml( QDomDocument &doc, QDomElement &parent )
const;
100 void readXml(
const QDomElement &elem );
108 double mMinimumValue;
111 double mMaximumValue;
114 std::unique_ptr< QgsRasterShaderFunction > mRasterShaderFunction;
Interface for all raster shaders.
QgsRasterShaderFunction * rasterShaderFunction()
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
double maximumValue()
Return the maximum value for the raster shader.
const QgsRasterShaderFunction * rasterShaderFunction() const
double minimumValue()
Return the minimum value for the raster shader.