20#ifndef QGSRASTERSHADERFUNCTION_H
21#define QGSRASTERSHADERFUNCTION_H
43 sipType = sipType_QgsColorRampShader;
92 double redValue,
double greenValue,
double blueValue,
double alphaValue,
int *returnRedValue
SIP_OUT,
int *returnGreenValue
SIP_OUT,
int *returnBlueValue
SIP_OUT,
int *returnAlpha
SIP_OUT
120 int labelPrecision()
const;
126 void setLabelPrecision(
int labelPrecision );
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
double mMinimumValue
User defineable minimum value for the shading function.
QgsRasterShaderFunction(double minimumValue=0.0, double maximumValue=255.0)
double mMinimumMaximumRange
Minimum maximum range for the shading function.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Returns legend symbology items if provided by renderer.
double maximumValue() const
Returns the minimum value for the raster shader.
double mMaximumValue
User defineable maximum value for the shading function.
virtual bool shade(double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha) const
Generates an new RGBA value based on one input value.
virtual void setMaximumValue(double value)
Sets the maximum value for the raster shader.
virtual ~QgsRasterShaderFunction()=default
virtual void setMinimumValue(double value)
Sets the minimum value for the raster shader.
int mLabelPrecision
Label precision.
double minimumValue() const
Returns the maximum value for the raster shader.
double minimumMaximumRange() const
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)