21 #ifndef QGSCOLORRAMPSHADER_H 22 #define QGSCOLORRAMPSHADER_H 76 QString colorRampTypeAsQString();
90 void setColorRampType(
const QString& theType );
98 bool shade(
double,
int*,
int*,
int*,
int* )
override;
101 bool shade(
double,
double,
double,
double,
int*,
int*,
int*,
int* )
override;
114 bool clip()
const {
return mClip; }
132 bool mLUTInitialized;
QgsColorRampShader::ColorRamp_TYPE colorRampType() const
Get the color ramp type.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
QList< QgsColorRampShader::ColorRampItem > colorRampItemList() const
Get the custom colormap.
void setClip(bool clip)
Sets whether the shader should not render values out of range.
ColorRampItem()
default constructor
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
ColorRampItem(double val, const QColor &col, const QString &lbl=QString())
convenience constructor
bool operator<(const ColorRampItem &other) const
Interpolates the color between two class breaks linearly.
Assigns the color of the higher class for every pixel between two class breaks.
bool clip() const
Returns whether the shader will clip values which are out of range.
Q_DECL_DEPRECATED void setMaximumColorCacheSize(int theSize)
Set the maximum size the color cache can be.
Q_DECL_DEPRECATED int maximumColorCacheSize()
Get the maximum size the color cache can be.
ColorRamp_TYPE
Supported methods for color interpolation.