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,
86 int *returnGreenValue SIP_OUT,
87 int *returnBlueValue SIP_OUT,
88 int *returnAlpha SIP_OUT );
102 bool shade(
double redValue,
106 int *returnRedValue SIP_OUT,
107 int *returnGreenValue SIP_OUT,
108 int *returnBlueValue SIP_OUT,
109 int *returnAlpha SIP_OUT );
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;
Interface for all raster shaders.
double minimumValue() const
Returns the minimum value for the raster shader.
const QgsRasterShaderFunction * rasterShaderFunction() const
QgsRasterShaderFunction * rasterShaderFunction()
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
double maximumValue() const
Returns the maximum value for the raster shader.