QGIS API Documentation
2.8.2-Wien
|
Interface for all raster shaders. More...
#include <qgsrastershader.h>
Public Member Functions | |
QgsRasterShader (double theMinimumValue=0.0, double theMaximumValue=255.0) | |
~QgsRasterShader () | |
double | maximumValue () |
Return the maximum value for the raster shader. | |
double | minimumValue () |
Return the minimum value for the raster shader. | |
QgsRasterShaderFunction * | rasterShaderFunction () |
const QgsRasterShaderFunction * | rasterShaderFunction () const |
void | readXML (const QDomElement &elem) |
void | setMaximumValue (double) |
Set the maximum value. | |
void | setMinimumValue (double) |
Return the minimum value. | |
void | setRasterShaderFunction (QgsRasterShaderFunction *) |
A public method that allows the user to set their own shader function. | |
bool | shade (double, int *, int *, int *, int *) |
generates and new RGBA value based on one input value | |
bool | shade (double, double, double, double, int *, int *, int *, int *) |
generates and new RGBA value based on original RGBA value | |
void | writeXML (QDomDocument &doc, QDomElement &parent) const |
Interface for all raster shaders.
Definition at line 31 of file qgsrastershader.h.
QgsRasterShader::QgsRasterShader | ( | double | theMinimumValue = 0.0 , |
double | theMaximumValue = 255.0 |
||
) |
Definition at line 25 of file qgsrastershader.cpp.
QgsRasterShader::~QgsRasterShader | ( | ) |
Definition at line 34 of file qgsrastershader.cpp.
|
inline |
Return the maximum value for the raster shader.
Definition at line 44 of file qgsrastershader.h.
|
inline |
Return the minimum value for the raster shader.
Definition at line 47 of file qgsrastershader.h.
|
inline |
Definition at line 49 of file qgsrastershader.h.
|
inline |
Definition at line 50 of file qgsrastershader.h.
void QgsRasterShader::readXML | ( | const QDomElement & | elem | ) |
Definition at line 164 of file qgsrastershader.cpp.
void QgsRasterShader::setMaximumValue | ( | double | theValue | ) |
Set the maximum value.
Set the maximum value for the raster shader.
theValue | The new maximum value |
Definition at line 106 of file qgsrastershader.cpp.
void QgsRasterShader::setMinimumValue | ( | double | theValue | ) |
Return the minimum value.
Set the maximum value for the raster shader.
theValue | The new minimum value |
Definition at line 122 of file qgsrastershader.cpp.
void QgsRasterShader::setRasterShaderFunction | ( | QgsRasterShaderFunction * | theFunction | ) |
A public method that allows the user to set their own shader function.
A public function that allows the user to set their own custom shader function.
theFunction | A pointer to the new raster shader function |
Definition at line 87 of file qgsrastershader.cpp.
bool QgsRasterShader::shade | ( | double | theValue, |
int * | theReturnRedValue, | ||
int * | theReturnGreenValue, | ||
int * | theReturnBlueValue, | ||
int * | theReturnAlpha | ||
) |
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 |
theReturnAlpha | The alpha component of the new RGBA value |
Definition at line 49 of file qgsrastershader.cpp.
bool QgsRasterShader::shade | ( | double | theRedValue, |
double | theGreenValue, | ||
double | theBlueValue, | ||
double | theAlphaValue, | ||
int * | theReturnRedValue, | ||
int * | theReturnGreenValue, | ||
int * | theReturnBlueValue, | ||
int * | theReturnAlphaValue | ||
) |
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 |
Definition at line 72 of file qgsrastershader.cpp.
void QgsRasterShader::writeXML | ( | QDomDocument & | doc, |
QDomElement & | parent | ||
) | const |
Definition at line 133 of file qgsrastershader.cpp.