QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsRendererRange Class Reference

#include <qgsgraduatedsymbolrenderer.h>

Public Member Functions

 QgsRendererRange ()=default
 Constructor for QgsRendererRange. More...
 
 QgsRendererRange (double lowerValue, double upperValue, QgsSymbol *symbol, const QString &label, bool render=true)
 
 QgsRendererRange (const QgsRendererRange &range)
 
QString dump () const
 
QString label () const
 
double lowerValue () const
 
bool operator< (const QgsRendererRange &other) const
 
QgsRendererRangeoperator= (QgsRendererRange range)
 
bool renderState () const
 
void setLabel (const QString &label)
 
void setLowerValue (double lowerValue)
 
void setRenderState (bool render)
 
void setSymbol (QgsSymbol *s)
 
void setUpperValue (double upperValue)
 
QgsSymbolsymbol () 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 (QgsRendererRange &other)
 

Protected Attributes

QString mLabel
 
double mLowerValue = 0
 
bool mRender = true
 
std::unique_ptr< QgsSymbolmSymbol
 
double mUpperValue = 0
 

Detailed Description

Definition at line 33 of file qgsgraduatedsymbolrenderer.h.

Constructor & Destructor Documentation

QgsRendererRange::QgsRendererRange ( )
default

Constructor for QgsRendererRange.

QgsRendererRange::QgsRendererRange ( double  lowerValue,
double  upperValue,
QgsSymbol symbol,
const QString &  label,
bool  render = true 
)

Definition at line 44 of file qgsgraduatedsymbolrenderer.cpp.

QgsRendererRange::QgsRendererRange ( const QgsRendererRange range)

Definition at line 53 of file qgsgraduatedsymbolrenderer.cpp.

Member Function Documentation

QString QgsRendererRange::dump ( ) const

Definition at line 135 of file qgsgraduatedsymbolrenderer.cpp.

QString QgsRendererRange::label ( ) const

Definition at line 100 of file qgsgraduatedsymbolrenderer.cpp.

double QgsRendererRange::lowerValue ( ) const

Definition at line 85 of file qgsgraduatedsymbolrenderer.cpp.

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

Definition at line 69 of file qgsgraduatedsymbolrenderer.cpp.

QgsRendererRange & QgsRendererRange::operator= ( QgsRendererRange  range)

Definition at line 63 of file qgsgraduatedsymbolrenderer.cpp.

bool QgsRendererRange::renderState ( ) const

Definition at line 125 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::setLabel ( const QString &  label)

Definition at line 110 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::setLowerValue ( double  lowerValue)

Definition at line 120 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::setRenderState ( bool  render)

Definition at line 130 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::setSymbol ( QgsSymbol s)

Definition at line 105 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::setUpperValue ( double  upperValue)

Definition at line 115 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::swap ( QgsRendererRange other)
protected

Definition at line 77 of file qgsgraduatedsymbolrenderer.cpp.

QgsSymbol * QgsRendererRange::symbol ( ) const

Definition at line 95 of file qgsgraduatedsymbolrenderer.cpp.

void QgsRendererRange::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 140 of file qgsgraduatedsymbolrenderer.cpp.

double QgsRendererRange::upperValue ( ) const

Definition at line 90 of file qgsgraduatedsymbolrenderer.cpp.

Member Data Documentation

QString QgsRendererRange::mLabel
protected

Definition at line 80 of file qgsgraduatedsymbolrenderer.h.

double QgsRendererRange::mLowerValue = 0
protected

Definition at line 78 of file qgsgraduatedsymbolrenderer.h.

bool QgsRendererRange::mRender = true
protected

Definition at line 81 of file qgsgraduatedsymbolrenderer.h.

std::unique_ptr<QgsSymbol> QgsRendererRange::mSymbol
protected

Definition at line 79 of file qgsgraduatedsymbolrenderer.h.

double QgsRendererRange::mUpperValue = 0
protected

Definition at line 78 of file qgsgraduatedsymbolrenderer.h.


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