mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgscontrastenhancementfunction.h                     *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsContrastEnhancementFunction
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
 A contrast enhancement function is the base class for all raster contrast enhancements.
 | 
						|
 | 
						|
 The purpose of a contrast enhancement is to enhanceContrast or clip a pixel value into
 | 
						|
 a specified bounding range.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgscontrastenhancementfunction.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsContrastEnhancementFunction( Qgis::DataType, double, double );
 | 
						|
    QgsContrastEnhancementFunction( const QgsContrastEnhancementFunction &f );
 | 
						|
    virtual ~QgsContrastEnhancementFunction();
 | 
						|
 | 
						|
    virtual int enhance( double );
 | 
						|
%Docstring
 | 
						|
 A customizable method that takes in a double and returns a int between 0 and 255
 | 
						|
 :rtype: int
 | 
						|
%End
 | 
						|
 | 
						|
    virtual bool isValueInDisplayableRange( double );
 | 
						|
%Docstring
 | 
						|
 A customicable method to indicate if the pixels is displayable
 | 
						|
 :rtype: bool
 | 
						|
%End
 | 
						|
 | 
						|
    void setMaximumValue( double );
 | 
						|
%Docstring
 | 
						|
 Mustator for the maximum value
 | 
						|
%End
 | 
						|
 | 
						|
    void setMinimumValue( double );
 | 
						|
%Docstring
 | 
						|
 Mutator for the minimum value
 | 
						|
%End
 | 
						|
 | 
						|
  protected:
 | 
						|
 | 
						|
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgscontrastenhancementfunction.h                     *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |