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

84 lines
2.7 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 );
2017-06-02 23:35:10 +02:00
%Docstring
Set the maximum value
%End
virtual void setMinimumValue( double );
2017-06-02 23:35:10 +02:00
%Docstring
Return the minimum value
%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 and new RGBA value based on one input value
%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 and new RGBA value based on original RGBA value
%End
double minimumMaximumRange() const;
double minimumValue() const;
double maximumValue() const;
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 *
************************************************************************/