QgsRasterPipe class

Base class for processing modules.

Constructors, destructors, conversion operators

QgsRasterPipe() defaulted
Constructor for QgsRasterPipe.

Public functions

auto canSetOn(int idx, bool on) -> bool
Test if interface at index may be switched on/off.
auto insert(int idx, QgsRasterInterface* interface) -> bool
Try to insert interface at specified index and connect if connection would fail, the interface is not inserted and false is returned.
auto remove(int idx) -> bool
Remove and delete interface at given index if possible.
auto remove(QgsRasterInterface* interface) -> bool
Remove and delete interface from pipe if possible.
auto replace(int idx, QgsRasterInterface* interface) -> bool
Try to replace interface at specified index and connect if connection would fail, the interface is not inserted and false is returned.
auto set(QgsRasterInterface* interface) -> bool
Insert a new known interface in default place or replace interface of the same role if it already exists.
auto setOn(int idx, bool on) -> bool
Set interface at index on/off Returns true on success.

Function documentation

bool QgsRasterPipe::set(QgsRasterInterface* interface)

Insert a new known interface in default place or replace interface of the same role if it already exists.

Known interfaces are: QgsRasterDataProvider, QgsRasterRenderer, QgsRasterResampleFilter, QgsRasterProjector and their subclasses. For unknown interfaces it mus be explicitly specified position where it should be inserted using insert() method.