18 #ifndef QGSRASTERRENDERER_H 19 #define QGSRASTERRENDERER_H 46 MinMaxMinMax = 1 << 1,
47 MinMaxCumulativeCut = 1 << 2,
48 MinMaxStdDev = 1 << 3,
50 MinMaxFullExtent = 1 << 4,
51 MinMaxSubExtent = 1 << 5,
53 MinMaxEstimated = 1 << 6,
72 bool usesTransparency()
const;
74 void setOpacity(
double opacity ) { mOpacity = opacity; }
75 double opacity()
const {
return mOpacity; }
97 static QString minMaxOriginName(
int theOrigin );
98 static QString minMaxOriginLabel(
int theOrigin );
99 static int minMaxOriginFromName(
const QString& theName );
122 #endif // QGSRASTERRENDERER_H virtual int bandCount() const =0
Get number of bands.
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.
virtual QString type() const
const QgsRasterTransparency * rasterTransparency() const
QgsRasterTransparency * mRasterTransparency
Raster transparency per color or value.
static const QRgb NODATA_COLOR
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 QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
DataType
Raster data types.
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)
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Get symbology items if provided by renderer.
Raster renderer pipe that applies colors to a raster.