42 return static_cast<int>( value );
static double minimumValuePossible(Qgis::DataType)
Helper function that returns the minimum possible value for a GDAL data type.
DataType
Raster data types.
void setMinimumValue(double)
Mutator for the minimum value.
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
Qgis::DataType mQgsRasterDataType
Data type of the band.
A contrast enhancement function is the base class for all raster contrast enhancements.
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
static double maximumValuePossible(Qgis::DataType)
Helper function that returns the maximum possible value for a GDAL data type.
virtual int enhance(double)
A customizable method that takes in a double and returns a int between 0 and 255. ...
virtual bool isValueInDisplayableRange(double)
A customicable method to indicate if the pixels is displayable.
Eight bit unsigned integer (quint8)
void setMaximumValue(double)
Mustator for the maximum value.