18 #ifndef QGSRASTERRENDERER_H
19 #define QGSRASTERRENDERER_H
43 MinMaxMinMax = 1 << 1,
44 MinMaxCumulativeCut = 1 << 2,
45 MinMaxStdDev = 1 << 3,
47 MinMaxFullExtent = 1 << 4,
48 MinMaxSubExtent = 1 << 5,
50 MinMaxEstimated = 1 << 6,
71 bool usesTransparency()
const;
73 void setOpacity(
double opacity ) { mOpacity = opacity; }
74 double opacity()
const {
return mOpacity; }
91 static QString minMaxOriginName(
int theOrigin );
92 static QString minMaxOriginLabel(
int theOrigin );
93 static int minMaxOriginFromName(
const QString& theName );
111 #endif // QGSRASTERRENDERER_H
virtual int bandCount() const =0
Get number of bands.
A rectangle specified with double values.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
virtual void readXML(const QDomElement &filterElem)
Sets base class members from xml.
const QgsRasterTransparency * rasterTransparency() const
QgsRasterTransparency * mRasterTransparency
Raster transparency per color or value.
static const QRgb NODATA_COLOR
DataType
Raster data types.
int mAlphaBand
Read alpha value from band.
virtual QGis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
void setAlphaBand(int band)
Base class for processing filters like renderers, reprojector, resampler etc.
virtual bool setInput(QgsRasterInterface *input)
Set input.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Get symbology items if provided by renderer.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
virtual QString type() const
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
double mOpacity
Global alpha value (0-1)
Defines the list of pixel values to be considered as transparent or semi transparent when rendering r...
void setOpacity(double opacity)
Raster renderer pipe that applies colors to a raster.