#include <qgsrastershaderfunction.h>
|
| | 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 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...
|
| |
| 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...
|
| |
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::QgsRasterShaderFunction |
( |
double |
minimumValue = 0.0, |
|
|
double |
maximumValue = 255.0 |
|
) |
| |
◆ ~QgsRasterShaderFunction()
| virtual QgsRasterShaderFunction::~QgsRasterShaderFunction |
( |
| ) |
|
|
virtualdefault |
◆ legendSymbologyItems()
| virtual void QgsRasterShaderFunction::legendSymbologyItems |
( |
QList< QPair< QString, QColor > > & |
symbolItems | ) |
const |
|
inlinevirtual |
◆ maximumValue()
| double QgsRasterShaderFunction::maximumValue |
( |
| ) |
const |
|
inline |
◆ minimumMaximumRange()
| double QgsRasterShaderFunction::minimumMaximumRange |
( |
| ) |
const |
|
inline |
◆ minimumValue()
| double QgsRasterShaderFunction::minimumValue |
( |
| ) |
const |
|
inline |
◆ setMaximumValue()
| void QgsRasterShaderFunction::setMaximumValue |
( |
double |
value | ) |
|
|
virtual |
◆ setMinimumValue()
| void QgsRasterShaderFunction::setMinimumValue |
( |
double |
value | ) |
|
|
virtual |
◆ shade() [1/2]
| bool QgsRasterShaderFunction::shade |
( |
double |
redValue, |
|
|
double |
greenValue, |
|
|
double |
blueValue, |
|
|
double |
alphaValue, |
|
|
int * |
returnRedValue, |
|
|
int * |
returnGreenValue, |
|
|
int * |
returnBlueValue, |
|
|
int * |
returnAlpha |
|
) |
| const |
|
virtual |
Generates an new RGBA value based on an original RGBA value.
- Parameters
-
| 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 |
- Returns
true if the return values are valid otherwise false
Reimplemented in QgsColorRampShader.
Definition at line 58 of file qgsrastershaderfunction.cpp.
◆ shade() [2/2]
| bool QgsRasterShaderFunction::shade |
( |
double |
value, |
|
|
int * |
returnRedValue, |
|
|
int * |
returnGreenValue, |
|
|
int * |
returnBlueValue, |
|
|
int * |
returnAlpha |
|
) |
| const |
|
virtual |
Generates an new RGBA value based on one input value.
- Parameters
-
| 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 |
- Returns
true if the return values are valid otherwise false
Reimplemented in QgsColorRampShader.
Definition at line 46 of file qgsrastershaderfunction.cpp.
◆ mMaximumValue
| double QgsRasterShaderFunction::mMaximumValue |
|
protected |
◆ mMinimumMaximumRange
| double QgsRasterShaderFunction::mMinimumMaximumRange |
|
protected |
◆ mMinimumValue
| double QgsRasterShaderFunction::mMinimumValue |
|
protected |
The documentation for this class was generated from the following files: