2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
class QgsContrastEnhancementFunction
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgscontrastenhancement.h>
|
|
|
|
#include <qgscontrastenhancementfunction.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2013-04-24 17:18:15 +02:00
|
|
|
QgsContrastEnhancementFunction( QGis::DataType, double, double );
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual ~QgsContrastEnhancementFunction();
|
|
|
|
|
2014-01-27 09:22:24 +01:00
|
|
|
|
|
|
|
/** \brief A customizable method that takes in a double and returns a int between 0 and 255 */
|
|
|
|
virtual int enhance( double );
|
|
|
|
|
|
|
|
/** \brief A customicable method to indicate if the pixels is displayable */
|
|
|
|
virtual bool isValueInDisplayableRange( double );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
/** \brief Mustator for the maximum value */
|
|
|
|
void setMaximumValue( double );
|
|
|
|
|
|
|
|
/** \brief Mutator for the minimum value */
|
|
|
|
void setMinimumValue( double );
|
|
|
|
};
|
|
|
|
|