QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
#include <qgsgraduatedsymbolrenderer.h>
Public Member Functions | |
QgsRendererRangeLabelFormat () | |
QgsRendererRangeLabelFormat (const QString &format, int precision=4, bool trimTrailingZeroes=false) | |
QString | format () const |
QString | formatNumber (double value) const |
QString | labelForRange (double lower, double upper) const |
QString | labelForRange (const QgsRendererRange &range) const |
bool | operator!= (const QgsRendererRangeLabelFormat &other) const |
bool | operator== (const QgsRendererRangeLabelFormat &other) const |
int | precision () const |
void | saveToDomElement (QDomElement &element) |
void | setFormat (const QString &format) |
void | setFromDomElement (QDomElement &element) |
void | setPrecision (int precision) |
void | setTrimTrailingZeroes (bool trimTrailingZeroes) |
bool | trimTrailingZeroes () const |
Static Public Attributes | |
static const int | MAX_PRECISION = 15 |
static const int | MIN_PRECISION = -6 |
Protected Attributes | |
QString | mFormat |
double | mNumberScale = 1.0 |
QString | mNumberSuffix |
int | mPrecision = 4 |
QRegExp | mReNegativeZero |
QRegExp | mReTrailingZeroes |
bool | mTrimTrailingZeroes = false |
Definition at line 95 of file qgsgraduatedsymbolrenderer.h.
QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat | ( | ) |
Definition at line 177 of file qgsgraduatedsymbolrenderer.cpp.
QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat | ( | const QString & | format, |
int | precision = 4 , |
||
bool | trimTrailingZeroes = false |
||
) |
Definition at line 184 of file qgsgraduatedsymbolrenderer.cpp.
|
inline |
Definition at line 104 of file qgsgraduatedsymbolrenderer.h.
QString QgsRendererRangeLabelFormat::formatNumber | ( | double | value | ) | const |
Definition at line 227 of file qgsgraduatedsymbolrenderer.cpp.
QString QgsRendererRangeLabelFormat::labelForRange | ( | double | lower, |
double | upper | ||
) | const |
Definition at line 249 of file qgsgraduatedsymbolrenderer.cpp.
QString QgsRendererRangeLabelFormat::labelForRange | ( | const QgsRendererRange & | range | ) | const |
Definition at line 222 of file qgsgraduatedsymbolrenderer.cpp.
bool QgsRendererRangeLabelFormat::operator!= | ( | const QgsRendererRangeLabelFormat & | other | ) | const |
Definition at line 202 of file qgsgraduatedsymbolrenderer.cpp.
bool QgsRendererRangeLabelFormat::operator== | ( | const QgsRendererRangeLabelFormat & | other | ) | const |
Definition at line 194 of file qgsgraduatedsymbolrenderer.cpp.
|
inline |
Definition at line 107 of file qgsgraduatedsymbolrenderer.h.
void QgsRendererRangeLabelFormat::saveToDomElement | ( | QDomElement & | element | ) |
Definition at line 269 of file qgsgraduatedsymbolrenderer.cpp.
|
inline |
Definition at line 105 of file qgsgraduatedsymbolrenderer.h.
void QgsRendererRangeLabelFormat::setFromDomElement | ( | QDomElement & | element | ) |
Definition at line 258 of file qgsgraduatedsymbolrenderer.cpp.
void QgsRendererRangeLabelFormat::setPrecision | ( | int | precision | ) |
Definition at line 207 of file qgsgraduatedsymbolrenderer.cpp.
|
inline |
Definition at line 111 of file qgsgraduatedsymbolrenderer.h.
|
inline |
Definition at line 110 of file qgsgraduatedsymbolrenderer.h.
|
static |
Definition at line 121 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 125 of file qgsgraduatedsymbolrenderer.h.
|
static |
Definition at line 122 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 129 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 130 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 126 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 132 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 131 of file qgsgraduatedsymbolrenderer.h.
|
protected |
Definition at line 127 of file qgsgraduatedsymbolrenderer.h.