QGIS/python/core/raster/qgsrasterpipe.sip

122 lines
3.5 KiB
Plaintext
Raw Normal View History

2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterpipe.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterPipe
{
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Base class for processing modules.
%End
2017-06-02 23:35:10 +02:00
%TypeHeaderCode
#include "qgsrasterpipe.h"
%End
public:
enum Role
{
2014-06-02 21:00:51 +02:00
UnknownRole,
ProviderRole,
RendererRole,
BrightnessRole,
ResamplerRole,
ProjectorRole,
NullerRole,
2017-06-02 23:35:10 +02:00
HueSaturationRole
};
QgsRasterPipe();
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsRasterPipe.
2017-09-11 21:43:15 +10:00
%End
~QgsRasterPipe();
2017-06-02 23:35:10 +02:00
bool insert( int idx, QgsRasterInterface *interface /Transfer/ );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Try to insert interface at specified index and connect
if connection would fail, the interface is not inserted and false is returned *
2017-06-02 23:35:10 +02:00
%End
%MethodCode
2017-06-02 23:35:10 +02:00
sipRes = sipCpp->insert( a0, a1 );
if ( !sipRes )
{
// if insertion failed transfer ownership back to python
PyObject *o = sipGetPyObject( a1, sipType_QgsRasterInterface );
if ( o )
sipTransferBreak( o );
}
%End
bool replace( int idx, QgsRasterInterface *interface /Transfer/ );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Try to replace interface at specified index and connect
if connection would fail, the interface is not inserted and false is returned *
2017-06-02 23:35:10 +02:00
%End
bool set( QgsRasterInterface *interface /Transfer/ );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Insert a new known interface in default place or replace interface of the same
role if it already exists. Known interfaces are: QgsRasterDataProvider,
2017-12-19 11:43:52 -04:00
:py:class:`QgsRasterRenderer`, :py:class:`QgsRasterResampleFilter`, QgsRasterProjector and their
2017-12-15 10:36:55 -04:00
subclasses. For unknown interfaces it mus be explicitly specified position
where it should be inserted using insert() method.
2017-06-02 23:35:10 +02:00
%End
bool remove( int idx );
2017-06-02 23:35:10 +02:00
%Docstring
Remove and delete interface at given index if possible
%End
bool remove( QgsRasterInterface *interface );
2017-06-02 23:35:10 +02:00
%Docstring
Remove and delete interface from pipe if possible
%End
int size() const;
QgsRasterInterface *at( int idx ) const;
QgsRasterInterface *last() const;
bool setOn( int idx, bool on );
2017-06-02 23:35:10 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set interface at index on/off
Returns true on success *
2017-06-02 23:35:10 +02:00
%End
bool canSetOn( int idx, bool on );
2017-06-02 23:35:10 +02:00
%Docstring
Test if interface at index may be swithed on/off
%End
QgsRasterDataProvider *provider() const;
QgsRasterRenderer *renderer() const;
QgsRasterResampleFilter *resampleFilter() const;
QgsBrightnessContrastFilter *brightnessFilter() const;
QgsHueSaturationFilter *hueSaturationFilter() const;
QgsRasterProjector *projector() const;
QgsRasterNuller *nuller() const;
private:
QgsRasterPipe( const QgsRasterPipe &pipe );
};
2017-06-02 23:35:10 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterpipe.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/