mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			136 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgsrastershader.h                                    *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsRasterShader
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
Interface for all raster shaders.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsrastershader.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsRasterShader( double minimumValue = 0.0, double maximumValue = 255.0 );
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    double maximumValue() const;
 | 
						|
%Docstring
 | 
						|
Returns the maximum value for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMaximumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`minimumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    double minimumValue() const;
 | 
						|
%Docstring
 | 
						|
Returns the minimum value for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMinimumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`maximumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    QgsRasterShaderFunction *rasterShaderFunction();
 | 
						|
 | 
						|
 | 
						|
    bool shade( double value,
 | 
						|
                int *returnRedValue /Out/,
 | 
						|
                int *returnGreenValue /Out/,
 | 
						|
                int *returnBlueValue /Out/,
 | 
						|
                int *returnAlpha /Out/ );
 | 
						|
%Docstring
 | 
						|
Generates a new RGBA value based on one input ``value``.
 | 
						|
 | 
						|
:param value: The original value to base a new RGBA value on
 | 
						|
 | 
						|
:return: - ``True`` if the return values are valid otherwise ``False``
 | 
						|
         - returnRedValue: The red component of the new RGBA value
 | 
						|
         - returnGreenValue: The green component of the new RGBA value
 | 
						|
         - returnBlueValue: The blue component of the new RGBA value
 | 
						|
         - returnAlpha: The alpha component of the new RGBA value
 | 
						|
%End
 | 
						|
 | 
						|
    bool shade( double redValue,
 | 
						|
                double greenValue,
 | 
						|
                double blueValue,
 | 
						|
                double alphaValue,
 | 
						|
                int *returnRedValue /Out/,
 | 
						|
                int *returnGreenValue /Out/,
 | 
						|
                int *returnBlueValue /Out/,
 | 
						|
                int *returnAlpha /Out/ ) const;
 | 
						|
%Docstring
 | 
						|
Generates a new RGBA value based on an original RGBA value.
 | 
						|
 | 
						|
:param redValue: The red component of the original value to base a new RGBA value on
 | 
						|
:param greenValue: The green component of the original value to base a new RGBA value on
 | 
						|
:param blueValue: The blue component of the original value to base a new RGBA value on
 | 
						|
:param alphaValue: The alpha component of the original value to base a new RGBA value on
 | 
						|
 | 
						|
:return: - ``True`` if the return values are valid otherwise ``False``
 | 
						|
         - returnRedValue: The red component of the new RGBA value
 | 
						|
         - returnGreenValue: The green component of the new RGBA value
 | 
						|
         - returnBlueValue: The blue component of the new RGBA value
 | 
						|
         - returnAlpha: The alpha component of the new RGBA value
 | 
						|
%End
 | 
						|
 | 
						|
    void setRasterShaderFunction( QgsRasterShaderFunction *function /Transfer/ );
 | 
						|
%Docstring
 | 
						|
A public method that allows the user to set their own shader ``function``.
 | 
						|
 | 
						|
.. note::
 | 
						|
 | 
						|
   Raster shader takes ownership of the shader function instance
 | 
						|
%End
 | 
						|
 | 
						|
    void setMaximumValue( double value );
 | 
						|
%Docstring
 | 
						|
Sets the maximum ``value`` for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMinimumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`maximumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    void setMinimumValue( double value );
 | 
						|
%Docstring
 | 
						|
Sets the minimum ``value`` for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMaximumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`minimumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    void writeXml( QDomDocument &doc, QDomElement &parent, const QgsReadWriteContext &context = QgsReadWriteContext() ) const;
 | 
						|
%Docstring
 | 
						|
Writes shader state to an XML element.
 | 
						|
%End
 | 
						|
 | 
						|
    void readXml( const QDomElement &elem, const QgsReadWriteContext &context = QgsReadWriteContext() );
 | 
						|
%Docstring
 | 
						|
Reads shader state from an XML element.
 | 
						|
%End
 | 
						|
 | 
						|
  private:
 | 
						|
    QgsRasterShader( const QgsRasterShader &rh );
 | 
						|
};
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgsrastershader.h                                    *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 |