QGIS/python/core/auto_generated/raster/qgssinglebandgrayrenderer.sip.in

75 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgssinglebandgrayrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSingleBandGrayRenderer: QgsRasterRenderer
{
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Raster renderer pipe for single band gray.
2017-06-02 23:35:10 +02:00
%End
%TypeHeaderCode
2017-06-02 23:35:10 +02:00
#include "qgssinglebandgrayrenderer.h"
%End
public:
2014-01-27 09:22:24 +01:00
enum Gradient
{
BlackToWhite,
WhiteToBlack
};
2017-06-02 23:35:10 +02:00
QgsSingleBandGrayRenderer( QgsRasterInterface *input, int grayBand );
virtual QgsSingleBandGrayRenderer *clone() const /Factory/;
2017-06-02 23:35:10 +02:00
%Docstring
QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.
%End
static QgsRasterRenderer *create( const QDomElement &elem, QgsRasterInterface *input ) /Factory/;
virtual QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = 0 ) /Factory/;
int grayBand() const;
void setGrayBand( int band );
const QgsContrastEnhancement *contrastEnhancement() const;
void setContrastEnhancement( QgsContrastEnhancement *ce /Transfer/ );
2017-06-02 23:35:10 +02:00
%Docstring
Takes ownership
%End
void setGradient( Gradient gradient );
2014-01-27 09:22:24 +01:00
Gradient gradient() const;
2017-06-02 23:35:10 +02:00
virtual void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
2014-01-27 09:22:24 +01:00
2017-06-02 23:35:10 +02:00
virtual void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems /Out/ ) const;
2017-06-02 23:35:10 +02:00
virtual QList<int> usesBands() const;
private:
QgsSingleBandGrayRenderer( const QgsSingleBandGrayRenderer & );
const QgsSingleBandGrayRenderer &operator=( const QgsSingleBandGrayRenderer & );
};
2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgssinglebandgrayrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/