QGIS API Documentation  2.12.0-Lyon
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

Definition at line 70 of file qgsgraduatedsymbolrendererv2.h.

Constructor & Destructor Documentation

QgsRendererRangeV2LabelFormat::QgsRendererRangeV2LabelFormat ( )

Definition at line 179 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 190 of file qgsgraduatedsymbolrendererv2.cpp.

Member Function Documentation

QString QgsRendererRangeV2LabelFormat::format ( ) const

Definition at line 79 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::formatNumber ( double  value) const

Definition at line 233 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 255 of file qgsgraduatedsymbolrendererv2.cpp.

QString QgsRendererRangeV2LabelFormat::labelForRange ( const QgsRendererRangeV2 range) const

Definition at line 228 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 208 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 200 of file qgsgraduatedsymbolrendererv2.cpp.

int QgsRendererRangeV2LabelFormat::precision ( ) const

Definition at line 82 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::saveToDomElement ( QDomElement element)

Definition at line 275 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setFormat ( const QString format)

Definition at line 80 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::setFromDomElement ( QDomElement element)

Definition at line 264 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setPrecision ( int  precision)

Definition at line 213 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)

Definition at line 86 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::trimTrailingZeroes ( ) const

Definition at line 85 of file qgsgraduatedsymbolrendererv2.h.

Member Data Documentation

int QgsRendererRangeV2LabelFormat::MaxPrecision = 15

Definition at line 96 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mFormat

Definition at line 100 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::MinPrecision = -6

Definition at line 97 of file qgsgraduatedsymbolrendererv2.h.

double QgsRendererRangeV2LabelFormat::mNumberScale

Definition at line 104 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mNumberSuffix

Definition at line 105 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::mPrecision

Definition at line 101 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReNegativeZero

Definition at line 107 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReTrailingZeroes

Definition at line 106 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::mTrimTrailingZeroes

Definition at line 102 of file qgsgraduatedsymbolrendererv2.h.

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