mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
		
			
				
	
	
		
			145 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			145 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgsrastershaderfunction.h                            *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsRasterShaderFunction
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
The raster shade function applies a shader to a pixel at render time -
 | 
						|
typically used to render grayscale images as false color.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsrastershaderfunction.h"
 | 
						|
#include <qgscolorrampshader.h>
 | 
						|
%End
 | 
						|
%ConvertToSubClassCode
 | 
						|
    if ( dynamic_cast<QgsColorRampShader *>( sipCpp ) != NULL )
 | 
						|
      sipType = sipType_QgsColorRampShader;
 | 
						|
    else
 | 
						|
      sipType = 0;
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsRasterShaderFunction( double minimumValue = 0.0, double maximumValue = 255.0 );
 | 
						|
    virtual ~QgsRasterShaderFunction();
 | 
						|
 | 
						|
    virtual void setMaximumValue( double value );
 | 
						|
%Docstring
 | 
						|
Sets the maximum ``value`` for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMinimumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`maximumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    virtual void setMinimumValue( double value );
 | 
						|
%Docstring
 | 
						|
Sets the minimum ``value`` for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMaximumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`minimumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    virtual bool shade( double value,
 | 
						|
                        int *returnRedValue /Out/,
 | 
						|
                        int *returnGreenValue /Out/,
 | 
						|
                        int *returnBlueValue /Out/,
 | 
						|
                        int *returnAlpha /Out/ ) const;
 | 
						|
%Docstring
 | 
						|
Generates an new RGBA value based on one input ``value``.
 | 
						|
 | 
						|
:param value: The original value to base a new RGBA value on
 | 
						|
:param returnRedValue: The red component of the new RGBA value
 | 
						|
:param returnGreenValue: The green component of the new RGBA value
 | 
						|
:param returnBlueValue: The blue component of the new RGBA value
 | 
						|
 | 
						|
:return: - ``True`` if the return values are valid otherwise ``False``
 | 
						|
         - returnAlpha: The alpha component of the new RGBA value
 | 
						|
%End
 | 
						|
 | 
						|
    virtual 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 an 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
 | 
						|
:param returnRedValue: The red component of the new RGBA value
 | 
						|
:param returnGreenValue: The green component of the new RGBA value
 | 
						|
:param returnBlueValue: The blue component of the new RGBA value
 | 
						|
 | 
						|
:return: - ``True`` if the return values are valid otherwise ``False``
 | 
						|
         - returnAlpha: The alpha component of the new RGBA value
 | 
						|
%End
 | 
						|
 | 
						|
    double minimumMaximumRange() const;
 | 
						|
 | 
						|
    double minimumValue() const;
 | 
						|
%Docstring
 | 
						|
Returns the maximum value for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMaximumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`minimumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    double maximumValue() const;
 | 
						|
%Docstring
 | 
						|
Returns the minimum value for the raster shader.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMinimumValue`
 | 
						|
 | 
						|
.. seealso:: :py:func:`maximumValue`
 | 
						|
%End
 | 
						|
 | 
						|
    virtual void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems /Out/ ) const;
 | 
						|
%Docstring
 | 
						|
Returns legend symbology items if provided by renderer.
 | 
						|
%End
 | 
						|
 | 
						|
    int labelPrecision() const;
 | 
						|
%Docstring
 | 
						|
Returns label precision
 | 
						|
 | 
						|
.. versionadded:: 3.16
 | 
						|
%End
 | 
						|
 | 
						|
    void setLabelPrecision( int labelPrecision );
 | 
						|
%Docstring
 | 
						|
Sets label precision to ``labelPrecision``
 | 
						|
 | 
						|
.. versionadded:: 3.16
 | 
						|
%End
 | 
						|
 | 
						|
  protected:
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
};
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/raster/qgsrastershaderfunction.h                            *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |