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

139 lines
3.8 KiB
Plaintext
Raw Normal View History

2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterRenderer : QgsRasterInterface
{
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Raster renderer pipe that applies colors to a raster.
2017-06-02 23:35:10 +02:00
%End
%TypeHeaderCode
#include "qgsrasterrenderer.h"
%End
public:
static const QRgb NODATA_COLOR;
2017-09-25 14:20:39 +10:00
QgsRasterRenderer( QgsRasterInterface *input = 0, const QString &type = QString() );
2017-09-25 15:16:05 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsRasterRenderer.
2017-09-25 15:16:05 +10:00
%End
~QgsRasterRenderer();
2017-06-02 23:35:10 +02:00
virtual QgsRasterRenderer *clone() const = 0 /Factory/;
2017-06-02 23:35:10 +02:00
%Docstring
QgsRasterRenderer cannot be copied. Use clone() instead.
%End
virtual int bandCount() const;
virtual Qgis::DataType dataType( int bandNo ) const;
virtual QString type() const;
virtual bool setInput( QgsRasterInterface *input );
virtual QgsRasterBlock *block( int bandNo,
const QgsRectangle &extent,
int width,
int height,
QgsRasterBlockFeedback *feedback = 0 ) = 0 /Factory/;
bool usesTransparency() const;
void setOpacity( double opacity );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the ``opacity`` for the renderer, where ``opacity`` is a value between 0 (totally transparent)
and 1.0 (fully opaque).
.. seealso:: :py:func:`opacity`
2017-06-02 23:35:10 +02:00
%End
double opacity() const;
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the opacity for the renderer, where opacity is a value between 0 (totally transparent)
and 1.0 (fully opaque).
.. seealso:: :py:func:`setOpacity`
2017-06-02 23:35:10 +02:00
%End
2017-06-02 23:35:10 +02:00
void setRasterTransparency( QgsRasterTransparency *t /Transfer/ );
const QgsRasterTransparency *rasterTransparency() const;
void setAlphaBand( int band );
int alphaBand() const;
virtual void legendSymbologyItems( QList< QPair< QString, QColor > > &symbolItems /Out/ ) const;
2017-06-02 23:35:10 +02:00
%Docstring
Gets symbology items if provided by renderer
2017-06-02 23:35:10 +02:00
%End
virtual void readXml( const QDomElement &rendererElem );
2017-06-02 23:35:10 +02:00
%Docstring
Sets base class members from xml. Usually called from create() methods of subclasses
%End
void copyCommonProperties( const QgsRasterRenderer *other, bool copyMinMaxOrigin = true );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Copies common properties like opacity / transparency data from other renderer.
Useful when cloning renderers.
2017-06-02 23:35:10 +02:00
.. versionadded:: 2.16
%End
virtual QList<int> usesBands() const;
2017-06-02 23:35:10 +02:00
%Docstring
Returns a list of band numbers used by the renderer
%End
2012-10-06 11:22:52 +02:00
const QgsRasterMinMaxOrigin &minMaxOrigin() const;
2017-06-02 23:35:10 +02:00
%Docstring
Returns const reference to origin of min/max values
%End
void setMinMaxOrigin( const QgsRasterMinMaxOrigin &origin );
2017-06-02 23:35:10 +02:00
%Docstring
Sets origin of min/max values
%End
2012-10-06 11:22:52 +02:00
protected:
void _writeXml( QDomDocument &doc, QDomElement &rasterRendererElem ) const;
2017-06-02 23:35:10 +02:00
%Docstring
Write upper class info into rasterrenderer element (called by writeXml method of subclasses)
%End
2012-10-06 11:22:52 +02:00
2017-06-02 23:35:10 +02:00
private:
QgsRasterRenderer( const QgsRasterRenderer & );
const QgsRasterRenderer &operator=( const QgsRasterRenderer & );
};
2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/