mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
class QgsPalettedRasterRenderer : QgsRasterRenderer
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgspalettedrasterrenderer.h"
|
|
%End
|
|
public:
|
|
/**Renderer owns color array*/
|
|
QgsPalettedRasterRenderer( QgsRasterInterface* input, int bandNumber, QColor* colorArray /Array,Transfer/, int nColors /ArraySize/ );
|
|
~QgsPalettedRasterRenderer();
|
|
QgsRasterInterface * clone() const /Factory/;
|
|
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterInterface* input ) /Factory/;
|
|
|
|
// void draw( QPainter* p, QgsRasterViewPort* viewPort, const QgsMapToPixel* theQgsMapToPixel );
|
|
|
|
QgsRasterBlock *block( int bandNo, const QgsRectangle & extent, int width, int height ) /Factory/;
|
|
|
|
/**Returns number of colors*/
|
|
int nColors() const;
|
|
/**Returns copy of color array (caller takes ownership)*/
|
|
QColor* colors() const /Factory/;
|
|
|
|
void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
|
|
|
|
void legendSymbologyItems( QList< QPair< QString, QColor > >& symbolItems ) const;
|
|
|
|
QList<int> usesBands() const;
|
|
};
|