QGIS/python/core/raster/qgssinglebandgrayrenderer.sip

91 lines
2.7 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
Raster renderer pipe for single band gray.
%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.
:rtype: QgsSingleBandGrayRenderer
%End
static QgsRasterRenderer *create( const QDomElement &elem, QgsRasterInterface *input ) /Factory/;
%Docstring
:rtype: QgsRasterRenderer
%End
virtual QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = 0 ) /Factory/;
int grayBand() const;
2017-06-02 23:35:10 +02:00
%Docstring
:rtype: int
%End
void setGrayBand( int band );
const QgsContrastEnhancement *contrastEnhancement() const;
2017-06-02 23:35:10 +02:00
%Docstring
:rtype: QgsContrastEnhancement
%End
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
%Docstring
:rtype: Gradient
%End
2014-01-27 09:22:24 +01:00
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 & );
%Docstring
:rtype: QgsSingleBandGrayRenderer
%End
};
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 *
************************************************************************/