84 double lowerValue()
const;
92 double upperValue()
const;
106 QString label()
const;
122 void setLabel(
const QString &label );
130 void setLowerValue(
double lowerValue );
138 void setUpperValue(
double upperValue );
145 bool renderState()
const;
152 void setRenderState(
bool render );
157 QString dump()
const;
167 void toSld( QDomDocument &doc, QDomElement &element, QVariantMap props,
bool firstRange =
false )
const;
170 SIP_PYOBJECT __repr__();
172 const QString
str = sipCpp->label().isEmpty()
173 ? QStringLiteral(
"<QgsRendererRange: %1 - %2>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() )
174 : QStringLiteral(
"<QgsRendererRange: %1 - %2 (%3)>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() ).arg( sipCpp->label() );
175 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
178 SIP_PYOBJECT __getitem__(
int );
182 sipRes = Py_BuildValue(
"d", sipCpp->lowerValue() );
186 sipRes = Py_BuildValue(
"d", sipCpp->upperValue() );
190 QString msg = QString(
"Bad index: %1" ).arg( a0 );
191 PyErr_SetString( PyExc_IndexError, msg.toLatin1().constData() );
197 double mLowerValue = 0, mUpperValue = 0;
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.