21 #ifndef QGSCOLORRAMPSHADER_H
22 #define QGSCOLORRAMPSHADER_H
24 #include "qgis_core.h"
90 ColorRampItem(
double val,
const QColor &col,
const QString &lbl = QString() )
105 QList<QgsColorRampShader::ColorRampItem>
colorRampItemList()
const {
return mColorRampItemList.toList(); }
111 QString colorRampTypeAsQString()
const;
114 void setColorRampItemList(
const QList<QgsColorRampShader::ColorRampItem> &list );
123 bool isEmpty()
const;
141 void setColorRampType(
const QString &type );
161 bool shade(
double value,
int *returnRedValue
SIP_OUT,
int *returnGreenValue
SIP_OUT,
int *returnBlueValue
SIP_OUT,
int *returnAlphaValue
SIP_OUT ) const override;
164 bool shade(
double redValue,
double greenValue,
165 double blueValue,
double alphaValue,
167 int *returnBlueValue
SIP_OUT,
int *returnAlphaValue
SIP_OUT ) const override;
169 void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems
SIP_OUT ) const override;
175 QDomElement writeXml( QDomDocument &doc ) const;
181 void readXml( const QDomElement &elem );
184 void setClassificationMode(
ClassificationMode classificationMode ) { mClassificationMode = classificationMode; }
200 bool clip()
const {
return mClip; }
215 QVector<QgsColorRampShader::ColorRampItem> mColorRampItemList;
223 mutable QVector<int> mLUT;
224 mutable double mLUTOffset = 0.0;
225 mutable double mLUTFactor = 1.0;
226 mutable bool mLUTInitialized =
false;