QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
#include <qgsrendererrange.h>
Public Member Functions | |
QgsRendererRange ()=default | |
Constructor for QgsRendererRange. More... | |
QgsRendererRange (const QgsClassificationRange &range, QgsSymbol *symbol, bool render=true) | |
Creates a renderer symbol range. More... | |
QgsRendererRange (const QgsRendererRange &range) | |
QgsRendererRange (double lowerValue, double upperValue, QgsSymbol *symbol, const QString &label, bool render=true) | |
~QgsRendererRange () | |
QString | dump () const |
QString | label () const |
double | lowerValue () const |
bool | operator< (const QgsRendererRange &other) const |
QgsRendererRange & | operator= (QgsRendererRange range) |
bool | renderState () const |
void | setLabel (const QString &label) |
void | setLowerValue (double lowerValue) |
void | setRenderState (bool render) |
void | setSymbol (QgsSymbol *s) |
void | setUpperValue (double upperValue) |
QgsSymbol * | symbol () const |
void | toSld (QDomDocument &doc, QDomElement &element, QVariantMap props, bool firstRange=false) const |
Creates a DOM element representing the range in SLD format. More... | |
double | upperValue () const |
Protected Member Functions | |
void | swap (QgsRendererRange &other) |
Protected Attributes | |
QString | mLabel |
double | mLowerValue = 0 |
bool | mRender = true |
std::unique_ptr< QgsSymbol > | mSymbol |
double | mUpperValue = 0 |
Definition at line 36 of file qgsrendererrange.h.
|
default |
Constructor for QgsRendererRange.
|
default |
QgsRendererRange::QgsRendererRange | ( | const QgsClassificationRange & | range, |
QgsSymbol * | symbol, | ||
bool | render = true |
||
) |
Creates a renderer symbol range.
range | The classification range |
symbol | The symbol for this renderer range |
render | If true , it will be renderered |
Definition at line 22 of file qgsrendererrange.cpp.
QgsRendererRange::QgsRendererRange | ( | double | lowerValue, |
double | upperValue, | ||
QgsSymbol * | symbol, | ||
const QString & | label, | ||
bool | render = true |
||
) |
Definition at line 31 of file qgsrendererrange.cpp.
QgsRendererRange::QgsRendererRange | ( | const QgsRendererRange & | range | ) |
Definition at line 39 of file qgsrendererrange.cpp.
QString QgsRendererRange::dump | ( | ) | const |
Definition at line 123 of file qgsrendererrange.cpp.
QString QgsRendererRange::label | ( | ) | const |
Definition at line 88 of file qgsrendererrange.cpp.
double QgsRendererRange::lowerValue | ( | ) | const |
Definition at line 73 of file qgsrendererrange.cpp.
bool QgsRendererRange::operator< | ( | const QgsRendererRange & | other | ) | const |
Definition at line 57 of file qgsrendererrange.cpp.
QgsRendererRange & QgsRendererRange::operator= | ( | QgsRendererRange | range | ) |
Definition at line 51 of file qgsrendererrange.cpp.
bool QgsRendererRange::renderState | ( | ) | const |
Definition at line 113 of file qgsrendererrange.cpp.
void QgsRendererRange::setLabel | ( | const QString & | label | ) |
Definition at line 98 of file qgsrendererrange.cpp.
void QgsRendererRange::setLowerValue | ( | double | lowerValue | ) |
Definition at line 108 of file qgsrendererrange.cpp.
void QgsRendererRange::setRenderState | ( | bool | render | ) |
Definition at line 118 of file qgsrendererrange.cpp.
void QgsRendererRange::setSymbol | ( | QgsSymbol * | s | ) |
Definition at line 93 of file qgsrendererrange.cpp.
void QgsRendererRange::setUpperValue | ( | double | upperValue | ) |
Definition at line 103 of file qgsrendererrange.cpp.
|
protected |
Definition at line 65 of file qgsrendererrange.cpp.
QgsSymbol * QgsRendererRange::symbol | ( | ) | const |
Definition at line 83 of file qgsrendererrange.cpp.
void QgsRendererRange::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QVariantMap | props, | ||
bool | firstRange = false |
||
) | const |
Creates a DOM element representing the range in SLD format.
doc | DOM document |
element | destination DOM element |
props | graduated renderer properties |
firstRange | set to true if the range is the first range, where the lower value uses a <= test rather than a < test. |
Definition at line 128 of file qgsrendererrange.cpp.
double QgsRendererRange::upperValue | ( | ) | const |
Definition at line 78 of file qgsrendererrange.cpp.
|
protected |
Definition at line 92 of file qgsrendererrange.h.
|
protected |
Definition at line 90 of file qgsrendererrange.h.
|
protected |
Definition at line 93 of file qgsrendererrange.h.
|
protected |
Definition at line 91 of file qgsrendererrange.h.
|
protected |
Definition at line 90 of file qgsrendererrange.h.