QGIS/python/core/raster/qgssinglebandgrayrenderer.sip

36 lines
1.1 KiB
Plaintext
Raw Normal View History

class QgsSingleBandGrayRenderer: QgsRasterRenderer
{
%TypeHeaderCode
#include "qgssinglebandgrayrenderer.h"
%End
public:
2014-01-27 09:22:24 +01:00
enum Gradient
{
BlackToWhite,
WhiteToBlack
};
QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
~QgsSingleBandGrayRenderer();
2014-01-27 09:22:24 +01:00
QgsRasterInterface * clone() const /Factory/;
2012-09-26 18:46:52 +02:00
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;
2014-01-27 09:22:24 +01:00
QgsRasterBlock *block( int bandNo, const QgsRectangle & extent, int width, int height ) / Factory /;
int grayBand() const;
void setGrayBand( int band );
const QgsContrastEnhancement* contrastEnhancement() const;
/**Takes ownership*/
2012-09-26 18:46:52 +02:00
void setContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );
2014-01-27 09:22:24 +01:00
void setGradient( Gradient theGradient );
Gradient gradient() const;
void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
void legendSymbologyItems( QList< QPair< QString, QColor > >& symbolItems ) const;
2014-01-27 09:22:24 +01:00
QList<int> usesBands() const;
};