Skip to content
Permalink
Browse files
writeXML method for single band pseudo color renderer
  • Loading branch information
mhugent committed Mar 31, 2012
1 parent 6d59355 commit b9d4b6d1573f0216e2a2dbfa49c196395431cc82
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
@@ -19,6 +19,8 @@
#include "qgsrastershader.h"
#include "qgsrastertransparency.h"
#include "qgsrasterviewport.h"
#include <QDomDocument>
#include <QDomElement>
#include <QImage>

QgsSingleBandPseudoColorRenderer::QgsSingleBandPseudoColorRenderer( QgsRasterDataProvider* provider, int band, QgsRasterShader* shader ):
@@ -148,5 +150,13 @@ void QgsSingleBandPseudoColorRenderer::draw( QPainter* p, QgsRasterViewPort* vie

void QgsSingleBandPseudoColorRenderer::writeXML( QDomDocument& doc, QDomElement& parentElem ) const
{
//soon...
if ( parentElem.isNull() )
{
return;
}

QDomElement rasterRendererElem = doc.createElement( "rasterrenderer" );
_writeXML( doc, rasterRendererElem );
rasterRendererElem.setAttribute( "band", mBand );
parentElem.appendChild( rasterRendererElem );
}

0 comments on commit b9d4b6d

Please sign in to comment.