QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
QgsRendererRangeV2LabelFormat Class Reference

#include <qgsgraduatedsymbolrendererv2.h>

Public Member Functions

 QgsRendererRangeV2LabelFormat ()
 
 QgsRendererRangeV2LabelFormat (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 QgsRendererRangeV2 &range) const
 
bool operator!= (const QgsRendererRangeV2LabelFormat &other) const
 
bool operator== (const QgsRendererRangeV2LabelFormat &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 int MaxPrecision = 15
 
static int MinPrecision = -6
 

Protected Attributes

QString mFormat
 
double mNumberScale
 
QString mNumberSuffix
 
int mPrecision
 
QRegExp mReNegativeZero
 
QRegExp mReTrailingZeroes
 
bool mTrimTrailingZeroes
 

Detailed Description

Note
added in QGIS 2.6

Definition at line 85 of file qgsgraduatedsymbolrendererv2.h.

Constructor & Destructor Documentation

QgsRendererRangeV2LabelFormat::QgsRendererRangeV2LabelFormat ( )

Definition at line 181 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 192 of file qgsgraduatedsymbolrendererv2.cpp.

Member Function Documentation

QString QgsRendererRangeV2LabelFormat::format ( ) const
inline

Definition at line 94 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::formatNumber ( double  value) const

Definition at line 235 of file qgsgraduatedsymbolrendererv2.cpp.

QString QgsRendererRangeV2LabelFormat::labelForRange ( double  lower,
double  upper 
) const
Note
labelForLowerUpper in python bindings

Definition at line 257 of file qgsgraduatedsymbolrendererv2.cpp.

QString QgsRendererRangeV2LabelFormat::labelForRange ( const QgsRendererRangeV2 range) const

Definition at line 230 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 210 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 202 of file qgsgraduatedsymbolrendererv2.cpp.

int QgsRendererRangeV2LabelFormat::precision ( ) const
inline

Definition at line 97 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::saveToDomElement ( QDomElement element)

Definition at line 277 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setFormat ( const QString format)
inline

Definition at line 95 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::setFromDomElement ( QDomElement element)

Definition at line 266 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setPrecision ( int  precision)

Definition at line 215 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)
inline

Definition at line 101 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::trimTrailingZeroes ( ) const
inline

Definition at line 100 of file qgsgraduatedsymbolrendererv2.h.

Member Data Documentation

int QgsRendererRangeV2LabelFormat::MaxPrecision = 15
static

Definition at line 111 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mFormat
protected

Definition at line 115 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::MinPrecision = -6
static

Definition at line 112 of file qgsgraduatedsymbolrendererv2.h.

double QgsRendererRangeV2LabelFormat::mNumberScale
protected

Definition at line 119 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mNumberSuffix
protected

Definition at line 120 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::mPrecision
protected

Definition at line 116 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReNegativeZero
protected

Definition at line 122 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReTrailingZeroes
protected

Definition at line 121 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::mTrimTrailingZeroes
protected

Definition at line 117 of file qgsgraduatedsymbolrendererv2.h.


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