QGIS API Documentation
2.2.0-Valmiera
|
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 theMinimumValue=0.0, double theMaximumValue=255.0) | |
virtual | ~QgsRasterShaderFunction () |
virtual void | setMaximumValue (double) |
Set the maximum value. | |
virtual void | setMinimumValue (double) |
Return the minimum value. | |
virtual bool | shade (double, int *, int *, int *, int *) |
generates and new RGBA value based on one input value | |
virtual bool | shade (double, double, double, double, int *, int *, int *, int *) |
generates and new RGBA value based on original RGBA value | |
double | minimumMaximumRange () const |
double | minimumValue () const |
double | maximumValue () const |
virtual void | legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const |
Protected Attributes | |
double | mMaximumValue |
User defineable maximum value for the shading function. | |
double | mMinimumValue |
User defineable minimum value for the shading function. | |
double | mMinimumMaximumRange |
Minimum maximum range for the shading function. |
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 30 of file qgsrastershaderfunction.h.
QgsRasterShaderFunction::QgsRasterShaderFunction | ( | double | theMinimumValue = 0.0 , |
double | theMaximumValue = 255.0 |
||
) |
Definition at line 22 of file qgsrastershaderfunction.cpp.
References mMaximumValue, mMinimumMaximumRange, mMinimumValue, and QgsDebugMsg.
|
inlinevirtual |
Definition at line 35 of file qgsrastershaderfunction.h.
|
inlinevirtual |
Reimplemented in QgsColorRampShader.
Definition at line 54 of file qgsrastershaderfunction.h.
Referenced by QgsSingleBandPseudoColorRenderer::legendSymbologyItems().
|
inline |
Definition at line 52 of file qgsrastershaderfunction.h.
|
inline |
Definition at line 49 of file qgsrastershaderfunction.h.
|
inline |
Definition at line 51 of file qgsrastershaderfunction.h.
|
virtual |
Set the maximum value.
Set the maximum value for the raster shader.
theValue | The new maximum value |
Reimplemented in QgsPseudoColorShader.
Definition at line 36 of file qgsrastershaderfunction.cpp.
References mMaximumValue, mMinimumMaximumRange, mMinimumValue, and QgsDebugMsg.
Referenced by QgsRasterShader::setMaximumValue().
|
virtual |
Return the minimum value.
Set the maximum value for the raster shader.
theValue | The new minimum value |
Reimplemented in QgsPseudoColorShader.
Definition at line 49 of file qgsrastershaderfunction.cpp.
References mMaximumValue, mMinimumMaximumRange, mMinimumValue, and QgsDebugMsg.
Referenced by QgsRasterShader::setMinimumValue().
|
virtual |
generates and new RGBA value based on one input value
Generates and new RGBA value based on one input value.
theValue | The original value to base a new RGBA value on |
theReturnRedValue | The red component of the new RGBA value |
theReturnGreenValue | The green component of the new RGBA value |
theReturnBlueValue | The blue component of the new RGBA value |
theReturnAlphaValue | The blue component of the new RGBA value |
Reimplemented in QgsColorRampShader.
Definition at line 67 of file qgsrastershaderfunction.cpp.
Referenced by QgsRasterShader::shade().
|
virtual |
generates and new RGBA value based on original RGBA value
Generates and new RGBA value based on an original RGBA value.
theRedValue | The red component of the original value to base a new RGBA value on |
theGreenValue | The green component of the original value to base a new RGBA value on |
theBlueValue | The blue component of the original value to base a new RGBA value on |
theAlphaValue | The alpha component of the original value to base a new RGBA value on |
theReturnRedValue | The red component of the new RGBA value |
theReturnGreenValue | The green component of the new RGBA value |
theReturnBlueValue | The blue component of the new RGBA value |
theReturnAlphaValue | The alpha component of the new RGBA value |
Reimplemented in QgsColorRampShader.
Definition at line 93 of file qgsrastershaderfunction.cpp.
|
protected |
User defineable maximum value for the shading function.
Definition at line 58 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), and QgsPseudoColorShader::shade().
|
protected |
Minimum maximum range for the shading function.
Definition at line 64 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), QgsPseudoColorShader::setClassBreaks(), setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), and QgsPseudoColorShader::shade().
|
protected |
User defineable minimum value for the shading function.
Definition at line 61 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), QgsPseudoColorShader::setClassBreaks(), setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), and QgsPseudoColorShader::shade().