QGIS/python/core/raster/qgssinglebandgrayrenderer.sip
Nyall Dawson 60816af372 Correctly mark some raster classes copy/assignment as private
As they haven't been properly implemented yet and the classes
violate the rule of three
2016-01-20 17:06:04 +11:00

41 lines
1.2 KiB
Plaintext

class QgsSingleBandGrayRenderer: QgsRasterRenderer
{
%TypeHeaderCode
#include "qgssinglebandgrayrenderer.h"
%End
public:
enum Gradient
{
BlackToWhite,
WhiteToBlack
};
QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
~QgsSingleBandGrayRenderer();
virtual QgsSingleBandGrayRenderer * clone() const /Factory/;
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;
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*/
void setContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );
void setGradient( Gradient theGradient );
Gradient gradient() const;
void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
void legendSymbologyItems( QList< QPair< QString, QColor > >& symbolItems ) const;
QList<int> usesBands() const;
private:
QgsSingleBandGrayRenderer( const QgsSingleBandGrayRenderer& );
const QgsSingleBandGrayRenderer& operator=( const QgsSingleBandGrayRenderer& );
};