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 *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
class QgsRasterPipe
|
|
|
|
{
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Base class for processing modules.
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-02 23:35:10 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsrasterpipe.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
~QgsRasterPipe();
|
|
|
|
|
2017-06-02 23:35:10 +02:00
|
|
|
|
2017-05-01 18:13:15 +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
|
2012-10-05 21:54:54 +02:00
|
|
|
%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
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
bool remove( int idx );
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
|
|
|
Remove and delete interface at given index if possible
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
bool remove( QgsRasterInterface *interface );
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
|
|
|
Remove and delete interface from pipe if possible
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int size() const;
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsRasterInterface *at( int idx ) const;
|
|
|
|
QgsRasterInterface *last() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsRasterDataProvider *provider() const;
|
|
|
|
QgsRasterRenderer *renderer() const;
|
|
|
|
QgsRasterResampleFilter *resampleFilter() const;
|
|
|
|
QgsBrightnessContrastFilter *brightnessFilter() const;
|
|
|
|
QgsHueSaturationFilter *hueSaturationFilter() const;
|
|
|
|
QgsRasterProjector *projector() const;
|
|
|
|
QgsRasterNuller *nuller() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-01-22 18:45:45 +11:00
|
|
|
private:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterPipe( const QgsRasterPipe &pipe );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|