24#include "moc_qgsrastersinglecolorrendererwidget.cpp"
39 mBandComboBox->setLayer( layer );
70 mBandComboBox->setBand( scr->
inputBand() );
71 mColorButton->setColor( scr->
color() );
75 mBandComboBox->setBand( 1 );
76 mColorButton->setColor( QColor( 0, 0, 0 ) );
void bandChanged(int band)
Emitted when the currently selected band changes.
Base class for raster data providers.
Represents a raster layer.
QgsRasterRenderer * renderer() const
Returns the raster's renderer.
Raster renderer pipe that applies colors to a raster.
Raster renderer which renders all data pixels using a single color.
int inputBand() const override
Returns the input band for the renderer, or -1 if no input band is available.
QColor color() const
Returns the single color used by the renderer.
A rectangle specified with double values.