QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
QgsRendererRangeV2LabelFormat Class Reference

#include <qgsgraduatedsymbolrendererv2.h>

Public Member Functions

 QgsRendererRangeV2LabelFormat ()
 QgsRendererRangeV2LabelFormat (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 (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 176 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 187 of file qgsgraduatedsymbolrendererv2.cpp.

Member Function Documentation

QString QgsRendererRangeV2LabelFormat::format ( ) const
inline

Definition at line 79 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::formatNumber ( double  value) const

Definition at line 230 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 252 of file qgsgraduatedsymbolrendererv2.cpp.

QString QgsRendererRangeV2LabelFormat::labelForRange ( const QgsRendererRangeV2 range) const

Definition at line 225 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 205 of file qgsgraduatedsymbolrendererv2.cpp.

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

Definition at line 197 of file qgsgraduatedsymbolrendererv2.cpp.

int QgsRendererRangeV2LabelFormat::precision ( ) const
inline

Definition at line 82 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::saveToDomElement ( QDomElement &  element)

Definition at line 272 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setFormat ( QString  format)
inline

Definition at line 80 of file qgsgraduatedsymbolrendererv2.h.

void QgsRendererRangeV2LabelFormat::setFromDomElement ( QDomElement &  element)

Definition at line 261 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setPrecision ( int  precision)

Definition at line 210 of file qgsgraduatedsymbolrendererv2.cpp.

void QgsRendererRangeV2LabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)
inline

Definition at line 86 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::trimTrailingZeroes ( ) const
inline

Definition at line 85 of file qgsgraduatedsymbolrendererv2.h.

Member Data Documentation

int QgsRendererRangeV2LabelFormat::MaxPrecision = 15
static

Definition at line 96 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mFormat
protected

Definition at line 100 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::MinPrecision = -6
static

Definition at line 97 of file qgsgraduatedsymbolrendererv2.h.

double QgsRendererRangeV2LabelFormat::mNumberScale
protected

Definition at line 104 of file qgsgraduatedsymbolrendererv2.h.

QString QgsRendererRangeV2LabelFormat::mNumberSuffix
protected

Definition at line 105 of file qgsgraduatedsymbolrendererv2.h.

int QgsRendererRangeV2LabelFormat::mPrecision
protected

Definition at line 101 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReNegativeZero
protected

Definition at line 107 of file qgsgraduatedsymbolrendererv2.h.

QRegExp QgsRendererRangeV2LabelFormat::mReTrailingZeroes
protected

Definition at line 106 of file qgsgraduatedsymbolrendererv2.h.

bool QgsRendererRangeV2LabelFormat::mTrimTrailingZeroes
protected

Definition at line 102 of file qgsgraduatedsymbolrendererv2.h.


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