QGIS API Documentation  master-6227475
QgsSingleBandPseudoColorRenderer Class Reference

Raster renderer pipe for single band pseudocolor. More...

#include <qgssinglebandpseudocolorrenderer.h>

+ Inheritance diagram for QgsSingleBandPseudoColorRenderer:
+ Collaboration diagram for QgsSingleBandPseudoColorRenderer:

List of all members.

Public Member Functions

 QgsSingleBandPseudoColorRenderer (QgsRasterInterface *input, int band, QgsRasterShader *shader)
 Note: takes ownership of QgsRasterShader.
 ~QgsSingleBandPseudoColorRenderer ()
QgsRasterBlockblock (int bandNo, const QgsRectangle &extent, int width, int height)
 Read block of data using given extent and size.
double classificationMax () const
double classificationMin () const
int classificationMinMaxOrigin () const
QgsRasterInterfaceclone () const
 Clone itself, create deep copy.
void legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const
 Get symbology items if provided by renderer.
void setClassificationMax (double max)
void setClassificationMin (double min)
void setClassificationMinMaxOrigin (int origin)
void setShader (QgsRasterShader *shader)
 Takes ownership of the shader.
QgsRasterShadershader ()
const QgsRasterShadershader () const
QList< int > usesBands () const
 Returns a list of band numbers used by the renderer.
void writeXML (QDomDocument &doc, QDomElement &parentElem) const
 Write base class members to xml.

Static Public Member Functions

static QgsRasterRenderercreate (const QDomElement &elem, QgsRasterInterface *input)

Private Attributes

int mBand
double mClassificationMax
double mClassificationMin
int mClassificationMinMaxOrigin
QgsRasterShadermShader

Detailed Description

Raster renderer pipe for single band pseudocolor.

Definition at line 29 of file qgssinglebandpseudocolorrenderer.h.


Constructor & Destructor Documentation

Note: takes ownership of QgsRasterShader.

Definition at line 26 of file qgssinglebandpseudocolorrenderer.cpp.

Referenced by clone(), and create().


Member Function Documentation

QgsRasterBlock * QgsSingleBandPseudoColorRenderer::block ( int  bandNo,
const QgsRectangle extent,
int  width,
int  height 
) [virtual]
void QgsSingleBandPseudoColorRenderer::legendSymbologyItems ( QList< QPair< QString, QColor > > &  symbolItems) const [virtual]

Get symbology items if provided by renderer.

Reimplemented from QgsRasterRenderer.

Definition at line 225 of file qgssinglebandpseudocolorrenderer.cpp.

References QgsRasterShaderFunction::legendSymbologyItems(), mShader, and QgsRasterShader::rasterShaderFunction().

Takes ownership of the shader.

Definition at line 71 of file qgssinglebandpseudocolorrenderer.cpp.

References mShader, and shader().

Referenced by QgsRasterLayer::setDataProvider().

QList< int > QgsSingleBandPseudoColorRenderer::usesBands ( ) const [virtual]

Returns a list of band numbers used by the renderer.

Reimplemented from QgsRasterRenderer.

Definition at line 237 of file qgssinglebandpseudocolorrenderer.cpp.

References mBand.

void QgsSingleBandPseudoColorRenderer::writeXML ( QDomDocument &  doc,
QDomElement &  parentElem 
) const [virtual]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines