| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   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;
 
  
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 mMinimumValue
User defineable minimum value for the shading function.
 
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
double mMaximumValue
User defineable maximum value for the shading function.
 
double minimumValue() const
Returns the maximum value for the raster shader.
 
double minimumMaximumRange() const
 
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
 
double mMinimumMaximumRange
Minimum maximum range for the shading function.