QGIS API Documentation
3.6.0-Noosa (5873452)
|
The raster shade function applies a shader to a pixel at render time - typically used to render grayscale images as false color. More...
#include <qgsrastershaderfunction.h>
Public Member Functions | |
QgsRasterShaderFunction (double minimumValue=0.0, double maximumValue=255.0) | |
virtual | ~QgsRasterShaderFunction ()=default |
virtual void | legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const |
Returns legend symbology items if provided by renderer. More... | |
double | maximumValue () const |
Returns the minimum value for the raster shader. More... | |
double | minimumMaximumRange () const |
double | minimumValue () const |
Returns the maximum value for the raster shader. More... | |
virtual void | setMaximumValue (double value) |
Sets the maximum value for the raster shader. More... | |
virtual void | setMinimumValue (double value) |
Sets the minimum value for the raster shader. More... | |
virtual bool | shade (double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha) const |
Generates an new RGBA value based on one input value. More... | |
virtual bool | shade (double redValue, double greenValue, double blueValue, double alphaValue, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha) const |
Generates an new RGBA value based on an original RGBA value. More... | |
Protected Attributes | |
double | mMaximumValue |
User defineable maximum value for the shading function. More... | |
double | mMinimumMaximumRange |
Minimum maximum range for the shading function. More... | |
double | mMinimumValue |
User defineable minimum value for the shading function. More... | |
The raster shade function applies a shader to a pixel at render time - typically used to render grayscale images as false color.
Definition at line 34 of file qgsrastershaderfunction.h.
QgsRasterShaderFunction::QgsRasterShaderFunction | ( | double | minimumValue = 0.0 , |
double | maximumValue = 255.0 |
||
) |
Definition at line 22 of file qgsrastershaderfunction.cpp.
|
virtualdefault |
|
inlinevirtual |
Returns legend symbology items if provided by renderer.
Reimplemented in QgsColorRampShader.
Definition at line 124 of file qgsrastershaderfunction.h.
|
inline |
Returns the minimum value for the raster shader.
Definition at line 119 of file qgsrastershaderfunction.h.
|
inline |
Definition at line 105 of file qgsrastershaderfunction.h.
|
inline |
Returns the maximum value for the raster shader.
Definition at line 112 of file qgsrastershaderfunction.h.
|
virtual |
Sets the maximum value for the raster shader.
Definition at line 30 of file qgsrastershaderfunction.cpp.
|
virtual |
Sets the minimum value for the raster shader.
Definition at line 38 of file qgsrastershaderfunction.cpp.
|
virtual |
Generates an new RGBA value based on one input value.
value | The original value to base a new RGBA value on |
returnRedValue | The red component of the new RGBA value |
returnGreenValue | The green component of the new RGBA value |
returnBlueValue | The blue component of the new RGBA value |
returnAlpha | The alpha component of the new RGBA value |
Reimplemented in QgsColorRampShader.
Definition at line 46 of file qgsrastershaderfunction.cpp.
|
virtual |
Generates an new RGBA value based on an original RGBA value.
redValue | The red component of the original value to base a new RGBA value on |
greenValue | The green component of the original value to base a new RGBA value on |
blueValue | The blue component of the original value to base a new RGBA value on |
alphaValue | The alpha component of the original value to base a new RGBA value on |
returnRedValue | The red component of the new RGBA value |
returnGreenValue | The green component of the new RGBA value |
returnBlueValue | The blue component of the new RGBA value |
returnAlpha | The alpha component of the new RGBA value |
Reimplemented in QgsColorRampShader.
Definition at line 58 of file qgsrastershaderfunction.cpp.
|
protected |
User defineable maximum value for the shading function.
Definition at line 128 of file qgsrastershaderfunction.h.
|
protected |
Minimum maximum range for the shading function.
Definition at line 134 of file qgsrastershaderfunction.h.
|
protected |
User defineable minimum value for the shading function.
Definition at line 131 of file qgsrastershaderfunction.h.