mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
41 lines
1.2 KiB
Plaintext
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& );
|
|
};
|