mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
25 lines
838 B
Plaintext
25 lines
838 B
Plaintext
|
class QgsSingleBandGrayRenderer: QgsRasterRenderer
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include "qgssinglebandgrayrenderer.h"
|
||
|
%End
|
||
|
public:
|
||
|
QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
|
||
|
~QgsSingleBandGrayRenderer();
|
||
|
QgsRasterInterface * clone();
|
||
|
|
||
|
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
|
||
|
|
||
|
void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );
|
||
|
|
||
|
int grayBand() const;
|
||
|
void setGrayBand( int band );
|
||
|
const QgsContrastEnhancement* contrastEnhancement() const;
|
||
|
/**Takes ownership*/
|
||
|
void setContrastEnhancement( QgsContrastEnhancement* ce );
|
||
|
|
||
|
void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
|
||
|
|
||
|
void legendSymbologyItems( QList< QPair< QString, QColor > >& symbolItems ) const;
|
||
|
};
|