QGIS API Documentation
2.6.0-Brighton
|
A ramp shader will color a raster pixel based on a list of values ranges in a ramp. More...
#include <qgscolorrampshader.h>
Classes | |
struct | ColorRampItem |
Public Types | |
enum | ColorRamp_TYPE { INTERPOLATED, DISCRETE, EXACT } |
Public Member Functions | |
QgsColorRampShader (double theMinimumValue=0.0, double theMaximumValue=255.0) | |
QList < QgsColorRampShader::ColorRampItem > | colorRampItemList () const |
Get the custom colormap. | |
QgsColorRampShader::ColorRamp_TYPE | colorRampType () const |
Get the color ramp type. | |
QString | colorRampTypeAsQString () |
Get the color ramp type as a string. | |
int | maximumColorCacheSize () |
Get the maximum size the color cache can be. | |
void | setColorRampItemList (const QList< QgsColorRampShader::ColorRampItem > &theList) |
Set custom colormap. | |
void | setColorRampType (QgsColorRampShader::ColorRamp_TYPE theColorRampType) |
Set the color ramp type. | |
void | setColorRampType (QString) |
Set the color ramp type. | |
void | setMaximumColorCacheSize (int theSize) |
Set the maximum size the color cache can be. | |
bool | shade (double, int *, int *, int *, int *) |
Generates and new RGB value based on one input value. | |
bool | shade (double, double, double, double, int *, int *, int *, int *) |
Generates and new RGB value based on original RGB value. | |
void | legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const |
void | setClip (bool clip) |
bool | clip () const |
Public Member Functions inherited from QgsRasterShaderFunction | |
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. | |
double | minimumMaximumRange () const |
double | minimumValue () const |
double | maximumValue () const |
Additional Inherited Members | |
Protected Attributes inherited from QgsRasterShaderFunction | |
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. |
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
QgsColorRampShader::QgsColorRampShader | ( | double | theMinimumValue = 0.0 , |
double | theMaximumValue = 255.0 |
||
) |
|
inline |
|
inline |
Get the custom colormap.
|
inline |
Get the color ramp type.
QString QgsColorRampShader::colorRampTypeAsQString | ( | ) |
Get the color ramp type as a string.
|
virtual |
Reimplemented from QgsRasterShaderFunction.
|
inline |
Get the maximum size the color cache can be.
|
inline |
void QgsColorRampShader::setColorRampItemList | ( | const QList< QgsColorRampShader::ColorRampItem > & | theList | ) |
Set custom colormap.
void QgsColorRampShader::setColorRampType | ( | QgsColorRampShader::ColorRamp_TYPE | theColorRampType | ) |
Set the color ramp type.
void QgsColorRampShader::setColorRampType | ( | QString | theType | ) |
Set the color ramp type.
|
inline |
Set the maximum size the color cache can be.
|
virtual |
Generates and new RGB value based on one input value.
Reimplemented from QgsRasterShaderFunction.
|
virtual |
Generates and new RGB value based on original RGB value.
Reimplemented from QgsRasterShaderFunction.