QGIS API Documentation
3.8.0-Zanzibar (11aff65)
|
#include <qgsgraduatedsymbolrenderer.h>
Public Member Functions | |
QgsRendererRange ()=default | |
Constructor for QgsRendererRange. More... | |
QgsRendererRange (double lowerValue, double upperValue, QgsSymbol *symbol, const QString &label, bool render=true) | |
QgsRendererRange (const QgsRendererRange &range) | |
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, QgsStringMap 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 33 of file qgsgraduatedsymbolrenderer.h.
|
default |
Constructor for QgsRendererRange.
QgsRendererRange::QgsRendererRange | ( | double | lowerValue, |
double | upperValue, | ||
QgsSymbol * | symbol, | ||
const QString & | label, | ||
bool | render = true |
||
) |
Definition at line 45 of file qgsgraduatedsymbolrenderer.cpp.
QgsRendererRange::QgsRendererRange | ( | const QgsRendererRange & | range | ) |
Definition at line 54 of file qgsgraduatedsymbolrenderer.cpp.
QString QgsRendererRange::dump | ( | ) | const |
Definition at line 136 of file qgsgraduatedsymbolrenderer.cpp.
QString QgsRendererRange::label | ( | ) | const |
Definition at line 101 of file qgsgraduatedsymbolrenderer.cpp.
double QgsRendererRange::lowerValue | ( | ) | const |
Definition at line 86 of file qgsgraduatedsymbolrenderer.cpp.
bool QgsRendererRange::operator< | ( | const QgsRendererRange & | other | ) | const |
Definition at line 70 of file qgsgraduatedsymbolrenderer.cpp.
QgsRendererRange & QgsRendererRange::operator= | ( | QgsRendererRange | range | ) |
Definition at line 64 of file qgsgraduatedsymbolrenderer.cpp.
bool QgsRendererRange::renderState | ( | ) | const |
Definition at line 126 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::setLabel | ( | const QString & | label | ) |
Definition at line 111 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::setLowerValue | ( | double | lowerValue | ) |
Definition at line 121 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::setRenderState | ( | bool | render | ) |
Definition at line 131 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::setSymbol | ( | QgsSymbol * | s | ) |
Definition at line 106 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::setUpperValue | ( | double | upperValue | ) |
Definition at line 116 of file qgsgraduatedsymbolrenderer.cpp.
|
protected |
Definition at line 78 of file qgsgraduatedsymbolrenderer.cpp.
QgsSymbol * QgsRendererRange::symbol | ( | ) | const |
Definition at line 96 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRange::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | 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 141 of file qgsgraduatedsymbolrenderer.cpp.
double QgsRendererRange::upperValue | ( | ) | const |
Definition at line 91 of file qgsgraduatedsymbolrenderer.cpp.
|
protected |
Definition at line 80 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 78 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 81 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 79 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 78 of file qgsgraduatedsymbolrenderer.h.