QGIS/python/core/auto_generated/raster/qgsrastershaderfunction.sip.in

126 lines
4.2 KiB
Plaintext
Raw Normal View History

2017-06-02 23:35:10 +02:00
/************************************************************************
* 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
{
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The raster shade function applies a shader to a pixel at render time -
typically used to render grayscale images as false color.
2017-06-02 23:35:10 +02:00
%End
%TypeHeaderCode
2017-06-02 23:35:10 +02:00
#include "qgsrastershaderfunction.h"
#include <qgscolorrampshader.h>
%End
%ConvertToSubClassCode
2017-06-02 23:35:10 +02:00
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 );
2017-06-02 23:35:10 +02:00
%Docstring
Sets the maximum ``value`` for the raster shader.
.. seealso:: :py:func:`setMinimumValue`
.. seealso:: :py:func:`maximumValue`
2017-06-02 23:35:10 +02:00
%End
virtual void setMinimumValue( double value );
2017-06-02 23:35:10 +02:00
%Docstring
Sets the minimum ``value`` for the raster shader.
.. seealso:: :py:func:`setMaximumValue`
.. seealso:: :py:func:`minimumValue`
2017-06-02 23:35:10 +02:00
%End
2017-06-02 23:35:10 +02:00
virtual bool shade( double value,
int *returnRedValue /Out/,
int *returnGreenValue /Out/,
int *returnBlueValue /Out/,
int *returnAlpha /Out/ );
%Docstring
Generates an new RGBA value based on one input ``value``.
:param value: The original value to base a new RGBA value on
2018-04-03 10:26:46 +10:00
: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
:param returnAlpha: The blue component of the new RGBA value
:return: True if the return values are valid otherwise false
2017-06-02 23:35:10 +02:00
%End
2017-06-02 23:35:10 +02:00
virtual bool shade( double redValue,
double greenValue,
double blueValue,
double alphaValue,
int *returnRedValue /Out/,
int *returnGreenValue /Out/,
int *returnBlueValue /Out/,
int *returnAlpha /Out/ );
%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
2018-04-03 10:26:46 +10:00
: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
:param returnAlpha: The alpha component of the new RGBA value
:return: True if the return values are valid otherwise false
2017-06-02 23:35:10 +02:00
%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;
2017-06-02 23:35:10 +02:00
protected:
};
2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrastershaderfunction.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/