20#ifndef QGSRASTERSHADERFUNCTION_H
21#define QGSRASTERSHADERFUNCTION_H
42 sipType = sipType_QgsColorRampShader;
57 virtual void setMaximumValue(
double value );
64 virtual void setMinimumValue(
double value );
75 virtual bool shade(
double value,
79 int *returnAlpha
SIP_OUT )
const;
94 virtual bool shade(
double redValue,
101 int *returnAlpha
SIP_OUT )
const;
128 int labelPrecision()
const;
134 void setLabelPrecision(
int labelPrecision );
147 int mLabelPrecision = 6;
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
double mMinimumValue
User defineable minimum value for the shading function.
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 ~QgsRasterShaderFunction()=default
double minimumValue() const
Returns the maximum value for the raster shader.
double minimumMaximumRange() const
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)