QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsRendererRangeV2 Class Reference

#include <qgsgraduatedsymbolrendererv2.h>

Public Member Functions

 QgsRendererRangeV2 ()
 
 QgsRendererRangeV2 (double lowerValue, double upperValue, QgsSymbolV2 *symbol, const QString &label, bool render=true)
 
 QgsRendererRangeV2 (const QgsRendererRangeV2 &range)
 
 ~QgsRendererRangeV2 ()
 
QString dump () const
 
QString label () const
 
double lowerValue () const
 
bool operator< (const QgsRendererRangeV2 &other) const
 
QgsRendererRangeV2operator= (QgsRendererRangeV2 range)
 
bool renderState () const
 
void setLabel (const QString &label)
 
void setLowerValue (double lowerValue)
 
void setRenderState (bool render)
 
void setSymbol (QgsSymbolV2 *s)
 
void setUpperValue (double upperValue)
 
QgsSymbolV2symbol () const
 
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props, bool firstRange=false) const
 Creates a DOM element representing the range in SLD format. More...
 
double upperValue () const
 

Protected Member Functions

void swap (QgsRendererRangeV2 &other)
 

Protected Attributes

QString mLabel
 
double mLowerValue
 
bool mRender
 
QScopedPointer< QgsSymbolV2mSymbol
 
double mUpperValue
 

Detailed Description

Definition at line 27 of file qgsgraduatedsymbolrendererv2.h.

Constructor & Destructor Documentation

◆ QgsRendererRangeV2() [1/3]

QgsRendererRangeV2::QgsRendererRangeV2 ( )

Definition at line 39 of file qgsgraduatedsymbolrendererv2.cpp.

◆ QgsRendererRangeV2() [2/3]

QgsRendererRangeV2::QgsRendererRangeV2 ( double  lowerValue,
double  upperValue,
QgsSymbolV2 symbol,
const QString label,
bool  render = true 
)

Definition at line 48 of file qgsgraduatedsymbolrendererv2.cpp.

◆ QgsRendererRangeV2() [3/3]

QgsRendererRangeV2::QgsRendererRangeV2 ( const QgsRendererRangeV2 range)

Definition at line 57 of file qgsgraduatedsymbolrendererv2.cpp.

◆ ~QgsRendererRangeV2()

QgsRendererRangeV2::~QgsRendererRangeV2 ( )
inline

Definition at line 34 of file qgsgraduatedsymbolrendererv2.h.

Member Function Documentation

◆ dump()

QString QgsRendererRangeV2::dump ( ) const

Definition at line 139 of file qgsgraduatedsymbolrendererv2.cpp.

◆ label()

QString QgsRendererRangeV2::label ( ) const

Definition at line 104 of file qgsgraduatedsymbolrendererv2.cpp.

◆ lowerValue()

double QgsRendererRangeV2::lowerValue ( ) const

Definition at line 89 of file qgsgraduatedsymbolrendererv2.cpp.

◆ operator<()

bool QgsRendererRangeV2::operator< ( const QgsRendererRangeV2 other) const

Definition at line 73 of file qgsgraduatedsymbolrendererv2.cpp.

◆ operator=()

QgsRendererRangeV2 & QgsRendererRangeV2::operator= ( QgsRendererRangeV2  range)

Definition at line 67 of file qgsgraduatedsymbolrendererv2.cpp.

◆ renderState()

bool QgsRendererRangeV2::renderState ( ) const

Definition at line 129 of file qgsgraduatedsymbolrendererv2.cpp.

◆ setLabel()

void QgsRendererRangeV2::setLabel ( const QString label)

Definition at line 114 of file qgsgraduatedsymbolrendererv2.cpp.

◆ setLowerValue()

void QgsRendererRangeV2::setLowerValue ( double  lowerValue)

Definition at line 124 of file qgsgraduatedsymbolrendererv2.cpp.

◆ setRenderState()

void QgsRendererRangeV2::setRenderState ( bool  render)

Definition at line 134 of file qgsgraduatedsymbolrendererv2.cpp.

◆ setSymbol()

void QgsRendererRangeV2::setSymbol ( QgsSymbolV2 s)

Definition at line 109 of file qgsgraduatedsymbolrendererv2.cpp.

◆ setUpperValue()

void QgsRendererRangeV2::setUpperValue ( double  upperValue)

Definition at line 119 of file qgsgraduatedsymbolrendererv2.cpp.

◆ swap()

void QgsRendererRangeV2::swap ( QgsRendererRangeV2 other)
protected

Definition at line 81 of file qgsgraduatedsymbolrendererv2.cpp.

◆ symbol()

QgsSymbolV2 * QgsRendererRangeV2::symbol ( ) const

Definition at line 99 of file qgsgraduatedsymbolrendererv2.cpp.

◆ toSld()

void QgsRendererRangeV2::toSld ( QDomDocument doc,
QDomElement element,
QgsStringMap  props,
bool  firstRange = false 
) const

Creates a DOM element representing the range in SLD format.

Parameters
docDOM document
elementdestination DOM element
propsgraduated renderer properties
firstRangeset to true if the range is the first range, where the lower value uses a <= test rather than a < test.

Definition at line 144 of file qgsgraduatedsymbolrendererv2.cpp.

◆ upperValue()

double QgsRendererRangeV2::upperValue ( ) const

Definition at line 94 of file qgsgraduatedsymbolrendererv2.cpp.

Member Data Documentation

◆ mLabel

QString QgsRendererRangeV2::mLabel
protected

Definition at line 71 of file qgsgraduatedsymbolrendererv2.h.

◆ mLowerValue

double QgsRendererRangeV2::mLowerValue
protected

Definition at line 69 of file qgsgraduatedsymbolrendererv2.h.

◆ mRender

bool QgsRendererRangeV2::mRender
protected

Definition at line 72 of file qgsgraduatedsymbolrendererv2.h.

◆ mSymbol

QScopedPointer<QgsSymbolV2> QgsRendererRangeV2::mSymbol
protected

Definition at line 70 of file qgsgraduatedsymbolrendererv2.h.

◆ mUpperValue

double QgsRendererRangeV2::mUpperValue
protected

Definition at line 69 of file qgsgraduatedsymbolrendererv2.h.


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