|
QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
#include <qgsrendererrange.h>
Public Member Functions | |
| QgsRendererRange ()=default | |
| QgsRendererRange (const QgsClassificationRange &range, QgsSymbol *symbol, bool render=true, const QString &uuid=QString()) | |
| Creates a renderer symbol range. | |
| QgsRendererRange (const QgsRendererRange &range) | |
| QgsRendererRange (double lowerValue, double upperValue, QgsSymbol *symbol, const QString &label, bool render=true, const QString &uuid=QString()) | |
| Creates a renderer symbol range. | |
| ~QgsRendererRange () | |
| QString | dump () const |
| Dumps a string representation of the range. | |
| QString | label () const |
| Returns the label used for the range. | |
| double | lowerValue () const |
| Returns the lower bound of the range. | |
| bool | operator< (const QgsRendererRange &other) const |
| QgsRendererRange & | operator= (QgsRendererRange range) |
| bool | renderState () const |
Returns true if the range should be rendered. | |
| void | setLabel (const QString &label) |
| Sets the label used for the range. | |
| void | setLowerValue (double lowerValue) |
| Sets the lower bound of the range. | |
| void | setRenderState (bool render) |
| Sets whether the range should be rendered. | |
| void | setSymbol (QgsSymbol *s) |
| Sets the symbol used for the range. | |
| void | setUpperValue (double upperValue) |
| Sets the upper bound of the range. | |
| QgsSymbol * | symbol () const |
| Returns the symbol used for the range. | |
| void | toSld (QDomDocument &doc, QDomElement &element, QVariantMap props, bool firstRange=false) const |
| Creates a DOM element representing the range in SLD format. | |
| double | upperValue () const |
| Returns the upper bound of the range. | |
| QString | uuid () const |
| Returns the unique identifier for this range. | |
Protected Attributes | |
| QString | mLabel |
| double | mLowerValue = 0 |
| bool | mRender = true |
| std::unique_ptr< QgsSymbol > | mSymbol |
| double | mUpperValue = 0 |
| QString | mUuid |
Definition at line 36 of file qgsrendererrange.h.
|
default |
|
default |
| QgsRendererRange::QgsRendererRange | ( | const QgsClassificationRange & | range, |
| QgsSymbol * | symbol, | ||
| bool | render = true, |
||
| const QString & | uuid = QString() |
||
| ) |
Creates a renderer symbol range.
| range | The classification range |
| symbol | The symbol for this renderer range |
| render | If true, it will be renderered |
| uuid | Optional parameter to manually set the UUID key identifier for the this range (since QGIS 3.34). |
Definition at line 24 of file qgsrendererrange.cpp.
| QgsRendererRange::QgsRendererRange | ( | double | lowerValue, |
| double | upperValue, | ||
| QgsSymbol * | symbol, | ||
| const QString & | label, | ||
| bool | render = true, |
||
| const QString & | uuid = QString() |
||
| ) |
Creates a renderer symbol range.
| lowerValue | The lower bound of the range |
| upperValue | The upper bound of the range |
| symbol | The symbol for this renderer range |
| label | The label used for the range |
| render | If true, it will be renderered |
| uuid | Optional parameter to manually set the UUID key identifier for the this range (since QGIS 3.34). |
Definition at line 34 of file qgsrendererrange.cpp.
| QgsRendererRange::QgsRendererRange | ( | const QgsRendererRange & | range | ) |
Definition at line 44 of file qgsrendererrange.cpp.
| QString QgsRendererRange::dump | ( | ) | const |
Dumps a string representation of the range.
Definition at line 128 of file qgsrendererrange.cpp.
| QString QgsRendererRange::label | ( | ) | const |
Returns the label used for the range.
Definition at line 93 of file qgsrendererrange.cpp.
| double QgsRendererRange::lowerValue | ( | ) | const |
Returns the lower bound of the range.
Definition at line 78 of file qgsrendererrange.cpp.
| bool QgsRendererRange::operator< | ( | const QgsRendererRange & | other | ) | const |
Definition at line 66 of file qgsrendererrange.cpp.
| QgsRendererRange & QgsRendererRange::operator= | ( | QgsRendererRange | range | ) |
Definition at line 55 of file qgsrendererrange.cpp.
| bool QgsRendererRange::renderState | ( | ) | const |
Returns true if the range should be rendered.
Definition at line 118 of file qgsrendererrange.cpp.
| void QgsRendererRange::setLabel | ( | const QString & | label | ) |
Sets the label used for the range.
Definition at line 103 of file qgsrendererrange.cpp.
| void QgsRendererRange::setLowerValue | ( | double | lowerValue | ) |
Sets the lower bound of the range.
Definition at line 113 of file qgsrendererrange.cpp.
| void QgsRendererRange::setRenderState | ( | bool | render | ) |
Sets whether the range should be rendered.
Definition at line 123 of file qgsrendererrange.cpp.
| void QgsRendererRange::setSymbol | ( | QgsSymbol * | s | ) |
Sets the symbol used for the range.
Ownership of the symbol is transferred.
Definition at line 98 of file qgsrendererrange.cpp.
| void QgsRendererRange::setUpperValue | ( | double | upperValue | ) |
Sets the upper bound of the range.
Definition at line 108 of file qgsrendererrange.cpp.
| QgsSymbol * QgsRendererRange::symbol | ( | ) | const |
Returns the symbol used for the range.
Definition at line 88 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 133 of file qgsrendererrange.cpp.
| double QgsRendererRange::upperValue | ( | ) | const |
Returns the upper bound of the range.
Definition at line 83 of file qgsrendererrange.cpp.
| QString QgsRendererRange::uuid | ( | ) | const |
Returns the unique identifier for this range.
Definition at line 73 of file qgsrendererrange.cpp.
|
protected |
Definition at line 196 of file qgsrendererrange.h.
|
protected |
Definition at line 194 of file qgsrendererrange.h.
|
protected |
Definition at line 197 of file qgsrendererrange.h.
|
protected |
Definition at line 195 of file qgsrendererrange.h.
|
protected |
Definition at line 194 of file qgsrendererrange.h.
|
protected |
Definition at line 198 of file qgsrendererrange.h.