QGIS API Documentation  master-3f58142
QgsSingleBandGrayRenderer Class Reference

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

#include <qgssinglebandgrayrenderer.h>

+ Inheritance diagram for QgsSingleBandGrayRenderer:
+ Collaboration diagram for QgsSingleBandGrayRenderer:

List of all members.

Public Types

enum  Gradient { BlackToWhite, WhiteToBlack }

Public Member Functions

 QgsSingleBandGrayRenderer (QgsRasterInterface *input, int grayBand)
 ~QgsSingleBandGrayRenderer ()
QgsRasterBlockblock (int bandNo, QgsRectangle const &extent, int width, int height)
 Read block of data using given extent and size.
QgsRasterInterfaceclone () const
 Clone itself, create deep copy.
const QgsContrastEnhancementcontrastEnhancement () const
Gradient gradient () const
int grayBand () const
void legendSymbologyItems (QList< QPair< QString, QColor > > &symbolItems) const
 Get symbology items if provided by renderer.
void setContrastEnhancement (QgsContrastEnhancement *ce)
 Takes ownership.
void setGradient (Gradient theGradient)
void setGrayBand (int band)
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

QgsContrastEnhancementmContrastEnhancement
Gradient mGradient
int mGrayBand

Detailed Description

Raster renderer pipe for single band gray.

Definition at line 29 of file qgssinglebandgrayrenderer.h.


Member Enumeration Documentation

Enumerator:
BlackToWhite 
WhiteToBlack 

Definition at line 32 of file qgssinglebandgrayrenderer.h.


Constructor & Destructor Documentation

Definition at line 25 of file qgssinglebandgrayrenderer.cpp.

Referenced by clone(), and create().


Member Function Documentation

void QgsSingleBandGrayRenderer::legendSymbologyItems ( QList< QPair< QString, QColor > > &  symbolItems) const [virtual]
void QgsSingleBandGrayRenderer::setGrayBand ( int  band) [inline]

Definition at line 47 of file qgssinglebandgrayrenderer.h.

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

Returns a list of band numbers used by the renderer.

Reimplemented from QgsRasterRenderer.

Definition at line 221 of file qgssinglebandgrayrenderer.cpp.

References mGrayBand.

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

Member Data Documentation

Definition at line 63 of file qgssinglebandgrayrenderer.h.

Referenced by block(), clone(), and writeXML().

Definition at line 62 of file qgssinglebandgrayrenderer.h.

Referenced by block(), clone(), usesBands(), and writeXML().


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