18#ifndef QGSRASTERTRANSPARENCY_H
19#define QGSRASTERTRANSPARENCY_H
68 QList<QgsRasterTransparency::TransparentSingleValuePixel> transparentSingleValuePixelList()
const;
74 QList<QgsRasterTransparency::TransparentThreeValuePixel> transparentThreeValuePixelList()
const;
79 void initializeTransparentPixelList(
double value );
84 void initializeTransparentPixelList(
double redValue,
double greenValue,
double blueValue );
90 void setTransparentSingleValuePixelList(
const QList<QgsRasterTransparency::TransparentSingleValuePixel> &newList );
96 void setTransparentThreeValuePixelList(
const QList<QgsRasterTransparency::TransparentThreeValuePixel> &newList );
107 int alphaValue(
double value,
int globalTransparency = 255 )
const;
121 int alphaValue(
double redValue,
double greenValue,
double blueValue,
int globalTransparency = 255 )
const;
124 bool isEmpty()
const;
129 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const;
134 void readXml(
const QDomElement &elem );
138 QList<QgsRasterTransparency::TransparentThreeValuePixel> mTransparentThreeValuePixelList;
141 QList<QgsRasterTransparency::TransparentSingleValuePixel> mTransparentSingleValuePixelList;
Defines the list of pixel values to be considered as transparent or semi transparent when rendering r...
QgsRasterTransparency()=default
Constructor for QgsRasterTransparency.
double percentTransparent
double percentTransparent