QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
QgsRendererRangeLabelFormat Class Reference

#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

Detailed Description

QGIS 2.6

Definition at line 95 of file qgsgraduatedsymbolrenderer.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

QString QgsRendererRangeLabelFormat::format ( ) const

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
labelForLowerUpper in Python bindings

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.

int QgsRendererRangeLabelFormat::precision ( ) const

Definition at line 107 of file qgsgraduatedsymbolrenderer.h.

void QgsRendererRangeLabelFormat::saveToDomElement ( QDomElement &  element)

Definition at line 269 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRangeLabelFormat::setFormat ( const QString &  format)

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.

void QgsRendererRangeLabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)

Definition at line 111 of file qgsgraduatedsymbolrenderer.h.

bool QgsRendererRangeLabelFormat::trimTrailingZeroes ( ) const

Definition at line 110 of file qgsgraduatedsymbolrenderer.h.

Member Data Documentation

const int QgsRendererRangeLabelFormat::MAX_PRECISION = 15

Definition at line 121 of file qgsgraduatedsymbolrenderer.h.

QString QgsRendererRangeLabelFormat::mFormat

Definition at line 125 of file qgsgraduatedsymbolrenderer.h.

const int QgsRendererRangeLabelFormat::MIN_PRECISION = -6

Definition at line 122 of file qgsgraduatedsymbolrenderer.h.

double QgsRendererRangeLabelFormat::mNumberScale = 1.0

Definition at line 129 of file qgsgraduatedsymbolrenderer.h.

QString QgsRendererRangeLabelFormat::mNumberSuffix

Definition at line 130 of file qgsgraduatedsymbolrenderer.h.

int QgsRendererRangeLabelFormat::mPrecision = 4

Definition at line 126 of file qgsgraduatedsymbolrenderer.h.

QRegExp QgsRendererRangeLabelFormat::mReNegativeZero

Definition at line 132 of file qgsgraduatedsymbolrenderer.h.

QRegExp QgsRendererRangeLabelFormat::mReTrailingZeroes

Definition at line 131 of file qgsgraduatedsymbolrenderer.h.

bool QgsRendererRangeLabelFormat::mTrimTrailingZeroes = false

Definition at line 127 of file qgsgraduatedsymbolrenderer.h.

The documentation for this class was generated from the following files: