mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
75 lines
2.4 KiB
Plaintext
75 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* 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
|
|
{
|
|
%Docstring
|
|
Raster renderer pipe for single band gray.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssinglebandgrayrenderer.h"
|
|
%End
|
|
public:
|
|
enum Gradient
|
|
{
|
|
BlackToWhite,
|
|
WhiteToBlack
|
|
};
|
|
|
|
QgsSingleBandGrayRenderer( QgsRasterInterface *input, int grayBand );
|
|
|
|
|
|
virtual QgsSingleBandGrayRenderer *clone() const /Factory/;
|
|
|
|
%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/ );
|
|
%Docstring
|
|
Takes ownership
|
|
%End
|
|
|
|
void setGradient( Gradient gradient );
|
|
Gradient gradient() const;
|
|
|
|
virtual void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
|
|
|
|
|
|
virtual void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems /Out/ ) const;
|
|
|
|
|
|
virtual QList<int> usesBands() const;
|
|
|
|
|
|
private:
|
|
QgsSingleBandGrayRenderer( const QgsSingleBandGrayRenderer & );
|
|
const QgsSingleBandGrayRenderer &operator=( const QgsSingleBandGrayRenderer & );
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/raster/qgssinglebandgrayrenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|