21 #ifndef QGSCOLORRAMPSHADER_H
22 #define QGSCOLORRAMPSHADER_H
47 ColorRampItem(
double val, QColor col, QString lbl = QString() ) : label( lbl ), value( val ), color( col ) {}
65 QList<QgsColorRampShader::ColorRampItem>
colorRampItemList()
const {
return mColorRampItemList;}
71 QString colorRampTypeAsQString();
77 void setColorRampItemList(
const QList<QgsColorRampShader::ColorRampItem>& theList );
83 void setColorRampType( QString );
89 bool shade(
double,
int*,
int*,
int*,
int* );
92 bool shade(
double,
double,
double,
double,
int*,
int*,
int*,
int* );
96 void setClip(
bool clip ) { mClip = clip; }
97 bool clip()
const {
return mClip; }
124 bool discreteColor(
double,
int*,
int*,
int*,
int* );
129 bool exactColor(
double,
int*,
int*,
int*,
int* );
134 bool interpolatedColor(
double,
int*,
int*,
int*,
int* );