20 #ifndef QGSRASTERSHADERFUNCTION_H
21 #define QGSRASTERSHADERFUNCTION_H
29 #include "qgis_core.h"
44 sipType = sipType_QgsColorRampShader;
59 virtual void setMaximumValue(
double value );
66 virtual void setMinimumValue(
double value );
77 virtual bool shade(
double value,
81 int *returnAlpha
SIP_OUT )
const;
96 virtual bool shade(
double redValue,
103 int *returnAlpha
SIP_OUT )
const;
130 int labelPrecision()
const;
136 void setLabelPrecision(
int labelPrecision );
149 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)