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

136 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/qgsrastershader.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterShader
{
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Interface for all raster shaders.
%End
2017-06-02 23:35:10 +02:00
%TypeHeaderCode
#include "qgsrastershader.h"
%End
public:
QgsRasterShader( double minimumValue = 0.0, double maximumValue = 255.0 );
2017-06-02 23:35:10 +02:00
double maximumValue() const;
2017-06-02 23:35:10 +02:00
%Docstring
Returns the maximum value for the raster shader.
.. seealso:: :py:func:`setMaximumValue`
.. seealso:: :py:func:`minimumValue`
2017-06-02 23:35:10 +02:00
%End
double minimumValue() const;
2017-06-02 23:35:10 +02:00
%Docstring
Returns the minimum value for the raster shader.
.. seealso:: :py:func:`setMinimumValue`
.. seealso:: :py:func:`maximumValue`
2017-06-02 23:35:10 +02:00
%End
QgsRasterShaderFunction *rasterShaderFunction();
2017-06-02 23:35:10 +02:00
2017-06-02 23:35:10 +02:00
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
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
2017-06-02 23:35:10 +02:00
bool shade( double redValue,
double greenValue,
double blueValue,
double alphaValue,
int *returnRedValue /Out/,
int *returnGreenValue /Out/,
int *returnBlueValue /Out/,
int *returnAlpha /Out/ );
%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
2018-04-03 10:26:46 +10:00
: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
: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
2017-06-02 23:35:10 +02:00
void setRasterShaderFunction( QgsRasterShaderFunction *function /Transfer/ );
%Docstring
A public method that allows the user to set their own shader ``function``.
2017-12-15 10:36:55 -04:00
2017-06-02 23:35:10 +02:00
.. note::
Raster shader takes ownership of the shader function instance
2017-06-02 23:35:10 +02:00
%End
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
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
void writeXml( QDomDocument &doc, QDomElement &parent ) const;
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Writes shader state to an XML element.
2017-06-02 23:35:10 +02:00
%End
void readXml( const QDomElement &elem );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Reads shader state from an XML element.
2017-06-02 23:35:10 +02:00
%End
private:
QgsRasterShader( const QgsRasterShader &rh );
};
2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrastershader.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/