|
QGIS API Documentation
master-3f58142
|
00001 /*************************************************************************** 00002 qgssinglebandcolordatarenderer.h 00003 -------------------------------- 00004 begin : January 2012 00005 copyright : (C) 2012 by Marco Hugentobler 00006 email : marco at sourcepole dot ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSSINGLEBANDCOLORDATARENDERER_H 00019 #define QGSSINGLEBANDCOLORDATARENDERER_H 00020 00021 #include "qgsrasterrenderer.h" 00022 00023 class QDomElement; 00024 00028 class CORE_EXPORT QgsSingleBandColorDataRenderer: public QgsRasterRenderer 00029 { 00030 public: 00031 QgsSingleBandColorDataRenderer( QgsRasterInterface* input, int band ); 00032 ~QgsSingleBandColorDataRenderer(); 00033 QgsRasterInterface * clone() const; 00034 00035 static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterInterface* input ); 00036 00037 bool setInput( QgsRasterInterface* input ); 00038 00039 QgsRasterBlock* block( int bandNo, QgsRectangle const & extent, int width, int height ); 00040 00041 void writeXML( QDomDocument& doc, QDomElement& parentElem ) const; 00042 00043 QList<int> usesBands() const; 00044 00045 private: 00046 int mBand; 00047 }; 00048 00049 #endif // QGSSINGLEBANDCOLORDATARENDERER_H