2012-09-06 19:16:05 +02:00
|
|
|
|
|
|
|
/** Raster pipe */
|
|
|
|
|
|
|
|
class QgsRasterPipe
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasterpipe.h>
|
|
|
|
#include <qgsrasterresamplefilter.h>
|
|
|
|
#include <qgsrasterprojector.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
enum Role
|
|
|
|
{
|
|
|
|
UnknownRole = 0,
|
|
|
|
ProviderRole = 1,
|
|
|
|
RendererRole = 2,
|
|
|
|
ResamplerRole = 3,
|
|
|
|
ProjectorRole = 4
|
|
|
|
};
|
|
|
|
|
|
|
|
QgsRasterPipe();
|
|
|
|
QgsRasterPipe( const QgsRasterPipe& thePipe );
|
|
|
|
|
|
|
|
~QgsRasterPipe();
|
|
|
|
|
2012-09-13 13:38:39 +02:00
|
|
|
bool insert( int idx, QgsRasterInterface* theInterface /Transfer/ );
|
2012-09-06 19:16:05 +02:00
|
|
|
|
2012-09-13 13:38:39 +02:00
|
|
|
bool replace( int idx, QgsRasterInterface* theInterface /Transfer/ );
|
2012-09-06 19:16:05 +02:00
|
|
|
|
2012-09-13 13:38:39 +02:00
|
|
|
bool set( QgsRasterInterface * theInterface /Transfer/ );
|
2012-09-06 19:16:05 +02:00
|
|
|
|
|
|
|
bool remove( int idx );
|
|
|
|
|
|
|
|
bool remove( QgsRasterInterface * theInterface );
|
|
|
|
|
|
|
|
int size() const;
|
|
|
|
QgsRasterInterface * at( int idx ) const;
|
|
|
|
QgsRasterInterface * last() const;
|
|
|
|
|
|
|
|
bool setOn( int idx, bool on );
|
|
|
|
|
|
|
|
bool canSetOn( int idx, bool on );
|
|
|
|
|
|
|
|
QgsRasterDataProvider * provider() const;
|
|
|
|
QgsRasterRenderer * renderer() const;
|
|
|
|
QgsRasterResampleFilter * resampleFilter() const;
|
|
|
|
QgsRasterProjector * projector() const;
|
|
|
|
|
|
|
|
void setStatsOn( bool on );
|
|
|
|
};
|
|
|
|
|