20 #ifndef QGSRASTERSHADERFUNCTION_H 21 #define QGSRASTERSHADERFUNCTION_H 29 #include "qgis_core.h" 43 if ( dynamic_cast<QgsColorRampShader *>( sipCpp ) != NULL )
44 sipType = sipType_QgsColorRampShader;
59 virtual void setMaximumValue(
double value );
66 virtual void setMinimumValue(
double value );
77 virtual bool shade(
double value,
79 int *returnGreenValue SIP_OUT,
80 int *returnBlueValue SIP_OUT,
81 int *returnAlpha SIP_OUT );
96 virtual bool shade(
double redValue,
100 int *returnRedValue SIP_OUT,
101 int *returnGreenValue SIP_OUT,
102 int *returnBlueValue SIP_OUT,
103 int *returnAlpha SIP_OUT );
124 virtual void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems SIP_OUT )
const { Q_UNUSED( symbolItems ); }
double maximumValue() const
Returns the minimum value for the raster shader.
double mMinimumValue
User defineable minimum value for the shading function.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Returns legend symbology items if provided by renderer.
double mMaximumValue
User defineable maximum value for the shading function.
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
double minimumValue() const
Returns the maximum value for the raster shader.
double minimumMaximumRange() const
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
double mMinimumMaximumRange
Minimum maximum range for the shading function.