31 return "CumulativeCut";
40 if ( theLimits ==
"MinMax" )
44 else if ( theLimits ==
"StdDev" )
48 else if ( theLimits ==
"CumulativeCut" )
70 return qIsNaN( value ) || qIsInf( value ) ||
83 return static_cast<quint8
>( value );
85 return static_cast<quint16
>( value );
87 return static_cast<qint16
>( value );
89 return static_cast<quint32
>( value );
91 return static_cast<qint32
>( value );
93 return static_cast<float>( value );
Eight bit unsigned integer (quint8)
static bool isRepresentableValue(double value, QGis::DataType dataType)
Check if the specified value is representable in the given data type.
Thirty two bit floating point (float)
static double representableValue(double value, QGis::DataType dataType)
Get value representable by given data type.
double ANALYSIS_EXPORT max(double x, double y)
Returns the maximum of two doubles or the first argument if both are equal.
static ContrastEnhancementLimits contrastEnhancementLimitsFromString(const QString &theLimits)
Sixteen bit unsigned integer (quint16)
Thirty two bit signed integer (qint32)
ContrastEnhancementLimits
Contrast enhancement limits.
Thirty two bit unsigned integer (quint32)
static QString contrastEnhancementLimitsAsString(QgsRaster::ContrastEnhancementLimits theLimits)
Sixteen bit signed integer (qint16)
DataType
Raster data types.
double ANALYSIS_EXPORT min(double x, double y)
Returns the minimum of two doubles or the first argument if both are equal.