QGIS API Documentation  3.6.0-Noosa (5873452)
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

Since
QGIS 2.6

Definition at line 95 of file qgsgraduatedsymbolrenderer.h.

Constructor & Destructor Documentation

◆ QgsRendererRangeLabelFormat() [1/2]

QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat ( )

Definition at line 178 of file qgsgraduatedsymbolrenderer.cpp.

◆ QgsRendererRangeLabelFormat() [2/2]

QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat ( const QString &  format,
int  precision = 4,
bool  trimTrailingZeroes = false 
)

Definition at line 185 of file qgsgraduatedsymbolrenderer.cpp.

Member Function Documentation

◆ format()

QString QgsRendererRangeLabelFormat::format ( ) const
inline

Definition at line 104 of file qgsgraduatedsymbolrenderer.h.

◆ formatNumber()

QString QgsRendererRangeLabelFormat::formatNumber ( double  value) const

Definition at line 228 of file qgsgraduatedsymbolrenderer.cpp.

◆ labelForRange() [1/2]

QString QgsRendererRangeLabelFormat::labelForRange ( double  lower,
double  upper 
) const
Note
labelForLowerUpper in Python bindings

Definition at line 250 of file qgsgraduatedsymbolrenderer.cpp.

◆ labelForRange() [2/2]

QString QgsRendererRangeLabelFormat::labelForRange ( const QgsRendererRange range) const

Definition at line 223 of file qgsgraduatedsymbolrenderer.cpp.

◆ operator!=()

bool QgsRendererRangeLabelFormat::operator!= ( const QgsRendererRangeLabelFormat other) const

Definition at line 203 of file qgsgraduatedsymbolrenderer.cpp.

◆ operator==()

bool QgsRendererRangeLabelFormat::operator== ( const QgsRendererRangeLabelFormat other) const

Definition at line 195 of file qgsgraduatedsymbolrenderer.cpp.

◆ precision()

int QgsRendererRangeLabelFormat::precision ( ) const
inline

Definition at line 107 of file qgsgraduatedsymbolrenderer.h.

◆ saveToDomElement()

void QgsRendererRangeLabelFormat::saveToDomElement ( QDomElement &  element)

Definition at line 270 of file qgsgraduatedsymbolrenderer.cpp.

◆ setFormat()

void QgsRendererRangeLabelFormat::setFormat ( const QString &  format)
inline

Definition at line 105 of file qgsgraduatedsymbolrenderer.h.

◆ setFromDomElement()

void QgsRendererRangeLabelFormat::setFromDomElement ( QDomElement &  element)

Definition at line 259 of file qgsgraduatedsymbolrenderer.cpp.

◆ setPrecision()

void QgsRendererRangeLabelFormat::setPrecision ( int  precision)

Definition at line 208 of file qgsgraduatedsymbolrenderer.cpp.

◆ setTrimTrailingZeroes()

void QgsRendererRangeLabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)
inline

Definition at line 111 of file qgsgraduatedsymbolrenderer.h.

◆ trimTrailingZeroes()

bool QgsRendererRangeLabelFormat::trimTrailingZeroes ( ) const
inline

Definition at line 110 of file qgsgraduatedsymbolrenderer.h.

Member Data Documentation

◆ MAX_PRECISION

const int QgsRendererRangeLabelFormat::MAX_PRECISION = 15
static

Definition at line 121 of file qgsgraduatedsymbolrenderer.h.

◆ mFormat

QString QgsRendererRangeLabelFormat::mFormat
protected

Definition at line 125 of file qgsgraduatedsymbolrenderer.h.

◆ MIN_PRECISION

const int QgsRendererRangeLabelFormat::MIN_PRECISION = -6
static

Definition at line 122 of file qgsgraduatedsymbolrenderer.h.

◆ mNumberScale

double QgsRendererRangeLabelFormat::mNumberScale = 1.0
protected

Definition at line 129 of file qgsgraduatedsymbolrenderer.h.

◆ mNumberSuffix

QString QgsRendererRangeLabelFormat::mNumberSuffix
protected

Definition at line 130 of file qgsgraduatedsymbolrenderer.h.

◆ mPrecision

int QgsRendererRangeLabelFormat::mPrecision = 4
protected

Definition at line 126 of file qgsgraduatedsymbolrenderer.h.

◆ mReNegativeZero

QRegExp QgsRendererRangeLabelFormat::mReNegativeZero
protected

Definition at line 132 of file qgsgraduatedsymbolrenderer.h.

◆ mReTrailingZeroes

QRegExp QgsRendererRangeLabelFormat::mReTrailingZeroes
protected

Definition at line 131 of file qgsgraduatedsymbolrenderer.h.

◆ mTrimTrailingZeroes

bool QgsRendererRangeLabelFormat::mTrimTrailingZeroes = false
protected

Definition at line 127 of file qgsgraduatedsymbolrenderer.h.


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