81 double lowerValue()
const;
89 double upperValue()
const;
103 QString label()
const;
119 void setLabel(
const QString &label );
127 void setLowerValue(
double lowerValue );
135 void setUpperValue(
double upperValue );
142 bool renderState()
const;
149 void setRenderState(
bool render );
154 QString dump()
const;
164 void toSld( QDomDocument &doc, QDomElement &element, QVariantMap props,
bool firstRange =
false )
const;
167 SIP_PYOBJECT __repr__();
169 const QString str = sipCpp->label().isEmpty()
170 ? QStringLiteral(
"<QgsRendererRange: %1 - %2>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() )
171 : QStringLiteral(
"<QgsRendererRange: %1 - %2 (%3)>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() ).arg( sipCpp->label() );
172 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
175 SIP_PYOBJECT __getitem__(
int );
179 sipRes = Py_BuildValue(
"d", sipCpp->lowerValue() );
183 sipRes = Py_BuildValue(
"d", sipCpp->upperValue() );
187 QString msg = QString(
"Bad index: %1" ).arg( a0 );
188 PyErr_SetString( PyExc_IndexError, msg.toLatin1().constData() );
194 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.