mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
class QgsRasterShader
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgsrastershader.h>
 | 
						|
#include <qgsrastershaderfunction.h>
 | 
						|
%End
 | 
						|
 | 
						|
public:
 | 
						|
  QgsRasterShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
 | 
						|
  ~QgsRasterShader();
 | 
						|
  /*
 | 
						|
   *
 | 
						|
   * Non-Static Inline methods
 | 
						|
   *
 | 
						|
   */
 | 
						|
  /** \brief Return the maximum value for the raster shader */
 | 
						|
  double maximumValue();
 | 
						|
     
 | 
						|
  /** \brief Return the minimum value for the raster shader */
 | 
						|
  double minimumValue();
 | 
						|
  
 | 
						|
  QgsRasterShaderFunction* rasterShaderFunction();
 | 
						|
  
 | 
						|
  /*
 | 
						|
   *
 | 
						|
   * Non-Static methods
 | 
						|
   *
 | 
						|
   */  
 | 
						|
  /** \brief generates and new RGB value based on one input value */
 | 
						|
  bool shade(double, int* /Out/, int* /Out/, int* /Out/);
 | 
						|
  /** \brief generates and new RGB value based on original RGB value */
 | 
						|
  bool shade(double, double, double, int* /Out/, int* /Out/, int* /Out/);
 | 
						|
  /** \brief A public method that allows the user to set their own shader function */
 | 
						|
  void setRasterShaderFunction(QgsRasterShaderFunction*);
 | 
						|
  /** \brief Set the maximum value */
 | 
						|
  void setMaximumValue(double);
 | 
						|
  /** \brief Return the minimum value */
 | 
						|
  void setMinimumValue(double);
 | 
						|
};
 |