Class: QgsSingleBandColorDataRenderer

class qgis.core.QgsSingleBandColorDataRenderer

Bases: QgsRasterRenderer

Raster renderer pipe for single band color.

Methods

block

param bandNo

clone

QgsSingleBandColorDataRenderer cannot be copied.

create

param elem

initHistogram

initStatistics

renderColorForNodataPixel

setInput

param input

usesBands

rtype

List[int]

writeXml

param doc

block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock
Parameters
Return type

QgsRasterBlock

clone(self) → QgsSingleBandColorDataRenderer

QgsSingleBandColorDataRenderer cannot be copied. Use clone() instead.

Return type

QgsSingleBandColorDataRenderer

create(elem: QDomElement, input: QgsRasterInterface) → QgsRasterRenderer
Parameters
Return type

QgsRasterRenderer

initHistogram()
initStatistics()
renderColorForNodataPixel()
setInput(self, input: QgsRasterInterface) → bool
Parameters

input (QgsRasterInterface) –

Return type

bool

usesBands(self) → List[int]
Return type

List[int]

writeXml(self, doc: QDomDocument, parentElem: QDomElement)
Parameters
  • doc (QDomDocument) –

  • parentElem (QDomElement) –