|
| QgsColorRampShader (const QgsColorRampShader &other) |
| Copy constructor. More...
|
|
| QgsColorRampShader (double minimumValue=0.0, double maximumValue=255.0, QgsColorRamp *colorRamp=nullptr, Type type=Interpolated, ClassificationMode classificationMode=Continuous) |
| Creates a new color ramp shader. More...
|
|
| ~QgsColorRampShader () override |
|
ClassificationMode | classificationMode () const |
| Returns the classification mode. More...
|
|
void | classifyColorRamp (int band=-1, const QgsRectangle &extent=QgsRectangle(), QgsRasterInterface *input=nullptr) |
| Classify color ramp shader. More...
|
|
void | classifyColorRamp (int classes=0, int band=-1, const QgsRectangle &extent=QgsRectangle(), QgsRasterInterface *input=nullptr) |
| Classify color ramp shader. More...
|
|
bool | clip () const |
| Returns whether the shader will clip values which are out of range. More...
|
|
QList< QgsColorRampShader::ColorRampItem > | colorRampItemList () const |
| Returns the custom colormap. More...
|
|
Type | colorRampType () const |
| Returns the color ramp type. More...
|
|
QString | colorRampTypeAsQString () const |
| Returns the color ramp type as a string. More...
|
|
QgsColorRamp * | createColorRamp () const |
| Creates a gradient color ramp from shader settings. More...
|
|
bool | isEmpty () const |
| Whether the color ramp contains any items. More...
|
|
const QgsColorRampLegendNodeSettings * | legendSettings () const |
| Returns the color ramp shader legend settings. More...
|
|
void | legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const override |
| Returns legend symbology items if provided by renderer. More...
|
|
QgsColorRampShader & | operator= (const QgsColorRampShader &other) |
| Assignment operator. More...
|
|
bool | operator== (const QgsColorRampShader &other) const |
|
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext()) |
| Reads configuration from the given DOM element. More...
|
|
void | setClassificationMode (ClassificationMode classificationMode) |
| Sets classification mode. More...
|
|
void | setClip (bool clip) |
| Sets whether the shader should not render values out of range. More...
|
|
void | setColorRampItemList (const QList< QgsColorRampShader::ColorRampItem > &list) |
| Sets a custom colormap. More...
|
|
void | setColorRampType (const QString &type) |
| Sets the color ramp type. More...
|
|
void | setColorRampType (QgsColorRampShader::Type colorRampType) |
| Sets the color ramp type. More...
|
|
void | setLegendSettings (QgsColorRampLegendNodeSettings *settings) |
| Sets the color ramp shader legend settings. More...
|
|
void | setSourceColorRamp (QgsColorRamp *colorramp) |
| Set the source color ramp. More...
|
|
bool | shade (double redValue, double greenValue, double blueValue, double alphaValue, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlphaValue) const override |
| Generates and new RGB value based on original RGB value. More...
|
|
bool | shade (double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlphaValue) const override |
| Generates and new RGB value based on one input value. More...
|
|
QgsColorRamp * | sourceColorRamp () const |
| Returns the source color ramp. More...
|
|
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const |
| Writes configuration to a new DOM element. More...
|
|
| QgsRasterShaderFunction (double minimumValue=0.0, double maximumValue=255.0) |
|
virtual | ~QgsRasterShaderFunction ()=default |
|
int | labelPrecision () const |
| Returns label precision. More...
|
|
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...
|
|
void | setLabelPrecision (int labelPrecision) |
| Sets label precision to labelPrecision. 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...
|
|