82 double lowerValue()
const;
90 double upperValue()
const;
104 QString label()
const;
120 void setLabel(
const QString &label );
128 void setLowerValue(
double lowerValue );
136 void setUpperValue(
double upperValue );
143 bool renderState()
const;
150 void setRenderState(
bool render );
155 QString dump()
const;
166 Q_DECL_DEPRECATED
void toSld( QDomDocument &doc, QDomElement &element, QVariantMap props,
bool firstRange =
false ) const
SIP_DEPRECATED;
178 bool toSld( QDomDocument &doc, QDomElement &element, const QString &classAttribute,
QgsSldExportContext &context,
bool firstRange = false ) const;
181 SIP_PYOBJECT __repr__();
183 const QString str = sipCpp->label().isEmpty()
184 ? QStringLiteral(
"<QgsRendererRange: %1 - %2>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() )
185 : QStringLiteral(
"<QgsRendererRange: %1 - %2 (%3)>" ).arg( sipCpp->lowerValue() ).arg( sipCpp->upperValue() ).arg( sipCpp->label() );
186 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
189 SIP_PYOBJECT __getitem__(
int );
193 sipRes = Py_BuildValue(
"d", sipCpp->lowerValue() );
197 sipRes = Py_BuildValue(
"d", sipCpp->upperValue() );
201 QString msg = QString(
"Bad index: %1" ).arg( a0 );
202 PyErr_SetString( PyExc_IndexError, msg.toLatin1().constData() );
210 double mLowerValue = 0, mUpperValue = 0;
Holds SLD export options and other information related to SLD export of a QGIS layer style.
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.