|
Quantum GIS API Documentation
1.8
|
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 *) |
| generates and new RGB value based on one input value | |
| virtual bool | shade (double, double, double, int *, int *, int *) |
| generates and new RGB value based on original RGB value | |
| double | minimumMaximumRange () const |
| double | minimumValue () const |
| double | maximumValue () 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 27 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.
| virtual QgsRasterShaderFunction::~QgsRasterShaderFunction | ( | ) | [inline, virtual] |
Definition at line 32 of file qgsrastershaderfunction.h.
| double QgsRasterShaderFunction::maximumValue | ( | ) | const [inline] |
Definition at line 49 of file qgsrastershaderfunction.h.
Referenced by QgsRasterLayer::legendSymbologyItems().
| double QgsRasterShaderFunction::minimumMaximumRange | ( | ) | const [inline] |
Definition at line 46 of file qgsrastershaderfunction.h.
| double QgsRasterShaderFunction::minimumValue | ( | ) | const [inline] |
Definition at line 48 of file qgsrastershaderfunction.h.
| void QgsRasterShaderFunction::setMaximumValue | ( | double | theValue | ) | [virtual] |
Set the maximum value.
Set the maximum value for the raster shader.
| theValue | The new maximum value |
Reimplemented in QgsFreakOutShader, and QgsPseudoColorShader.
Definition at line 36 of file qgsrastershaderfunction.cpp.
References mMaximumValue, mMinimumMaximumRange, mMinimumValue, and QgsDebugMsg.
Referenced by QgsRasterShader::setMaximumValue().
| void QgsRasterShaderFunction::setMinimumValue | ( | double | theValue | ) | [virtual] |
Return the minimum value.
Set the maximum value for the raster shader.
| theValue | The new minimum value |
Reimplemented in QgsFreakOutShader, and QgsPseudoColorShader.
Definition at line 49 of file qgsrastershaderfunction.cpp.
References mMaximumValue, mMinimumMaximumRange, mMinimumValue, and QgsDebugMsg.
Referenced by QgsRasterShader::setMinimumValue().
| bool QgsRasterShaderFunction::shade | ( | double | theValue, |
| int * | theReturnRedValue, | ||
| int * | theReturnGreenValue, | ||
| int * | theReturnBlueValue | ||
| ) | [virtual] |
generates and new RGB value based on one input value
Generates and new RGB value based on one input value.
| theValue | The original value to base a new RGB value on |
| theReturnRedValue | The red component of the new RGB value |
| theReturnGreenValue | The green component of the new RGB value |
| theReturnBlueValue | The blue component of the new RGB value |
Reimplemented in QgsColorRampShader, QgsFreakOutShader, and QgsPseudoColorShader.
Definition at line 66 of file qgsrastershaderfunction.cpp.
Referenced by QgsRasterShader::shade().
| bool QgsRasterShaderFunction::shade | ( | double | theRedValue, |
| double | theGreenValue, | ||
| double | theBlueValue, | ||
| int * | theReturnRedValue, | ||
| int * | theReturnGreenValue, | ||
| int * | theReturnBlueValue | ||
| ) | [virtual] |
generates and new RGB value based on original RGB value
Generates and new RGB value based on an original RGB value.
| theRedValue | The red component of the original value to base a new RGB value on |
| theGreenValue | The green component of the original value to base a new RGB value on |
| theBlueValue | The blue component of the original value to base a new RGB value on |
| theReturnRedValue | The red component of the new RGB value |
| theReturnGreenValue | The green component of the new RGB value |
| theReturnBlueValue | The blue component of the new RGB value |
Reimplemented in QgsColorRampShader, QgsFreakOutShader, and QgsPseudoColorShader.
Definition at line 89 of file qgsrastershaderfunction.cpp.
double QgsRasterShaderFunction::mMaximumValue [protected] |
User defineable maximum value for the shading function.
Definition at line 53 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), QgsFreakOutShader::setMaximumValue(), setMinimumValue(), QgsFreakOutShader::setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), QgsPseudoColorShader::shade(), and QgsFreakOutShader::shade().
double QgsRasterShaderFunction::mMinimumMaximumRange [protected] |
Minimum maximum range for the shading function.
Definition at line 59 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), QgsFreakOutShader::setClassBreaks(), QgsPseudoColorShader::setClassBreaks(), setMaximumValue(), QgsFreakOutShader::setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), QgsFreakOutShader::setMinimumValue(), QgsPseudoColorShader::shade(), and QgsFreakOutShader::shade().
double QgsRasterShaderFunction::mMinimumValue [protected] |
User defineable minimum value for the shading function.
Definition at line 56 of file qgsrastershaderfunction.h.
Referenced by QgsRasterShaderFunction(), QgsFreakOutShader::setClassBreaks(), QgsPseudoColorShader::setClassBreaks(), setMaximumValue(), QgsFreakOutShader::setMaximumValue(), QgsPseudoColorShader::setMaximumValue(), setMinimumValue(), QgsPseudoColorShader::setMinimumValue(), QgsFreakOutShader::setMinimumValue(), QgsPseudoColorShader::shade(), and QgsFreakOutShader::shade().
1.7.6.1