34     return static_cast<int>( theValue );
 Eight bit unsigned integer (quint8) 
 
int enhance(double) override
A customizable method that takes in a double and returns a int between 0 and 255. ...
 
QgsClipToMinMaxEnhancement(QGis::DataType, double, double)
 
static double maximumValuePossible(QGis::DataType)
Helper function that returns the maximum possible value for a GDAL data type. 
 
static double minimumValuePossible(QGis::DataType)
Helper function that returns the minimum possible value for a GDAL data type. 
 
A contrast enhancement funcion is the base class for all raster contrast enhancements. 
 
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting. 
 
DataType
Raster data types. 
 
QGis::DataType mQgsRasterDataType
Data type of the band. 
 
bool isValueInDisplayableRange(double) override
A customicable method to indicate if the pixels is displayable.