23 : mMaximumValue( maximumValue )
24 , mMinimumValue( minimumValue )
25 , mMinimumMaximumRange( mMaximumValue - mMinimumValue )
51 *returnGreenValue = 0;
53 *returnAlphaValue = 0;
58 bool QgsRasterShaderFunction::shade(
double redValue,
double greenValue,
double blueValue,
double alphaValue,
int *returnRedValue,
int *returnGreenValue,
int *returnBlueValue,
int *returnAlphaValue )
61 Q_UNUSED( greenValue );
62 Q_UNUSED( blueValue );
63 Q_UNUSED( alphaValue );
66 *returnGreenValue = 0;
68 *returnAlphaValue = 0;
virtual void setMinimumValue(double value)
Sets the minimum value for the raster shader.
QgsRasterShaderFunction(double minimumValue=0.0, double maximumValue=255.0)
double mMinimumValue
User defineable minimum value for the shading function.
virtual void setMaximumValue(double value)
Sets the maximum value for the raster shader.
#define QgsDebugMsgLevel(str, level)
double mMaximumValue
User defineable maximum value for the shading function.
double mMinimumMaximumRange
Minimum maximum range for the shading function.
virtual bool shade(double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha)
Generates an new RGBA value based on one input value.