Skip to content

Commit

Permalink
sipify core raster part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 1, 2017
1 parent a6358b1 commit 07fa247
Show file tree
Hide file tree
Showing 20 changed files with 840 additions and 277 deletions.
13 changes: 0 additions & 13 deletions python/auto_sip.blacklist
Expand Up @@ -48,19 +48,6 @@ core/gps/qgsgpsdconnection.sip
core/gps/qgsgpsdetector.sip
core/gps/qgsnmeaconnection.sip
core/gps/qgsqtlocationconnection.sip
core/raster/qgsbilinearrasterresampler.sip
core/raster/qgsbrightnesscontrastfilter.sip
core/raster/qgscliptominmaxenhancement.sip
core/raster/qgscolorrampshader.sip
core/raster/qgscontrastenhancement.sip
core/raster/qgscontrastenhancementfunction.sip
core/raster/qgscubicrasterresampler.sip
core/raster/qgshuesaturationfilter.sip
core/raster/qgslinearminmaxenhancement.sip
core/raster/qgslinearminmaxenhancementwithclip.sip
core/raster/qgsmultibandcolorrenderer.sip
core/raster/qgspalettedrasterrenderer.sip
core/raster/qgsraster.sip
core/raster/qgsrasterbandstats.sip
core/raster/qgsrasterblock.sip
core/raster/qgsrasterchecker.sip
Expand Down
33 changes: 29 additions & 4 deletions python/core/raster/qgsbilinearrasterresampler.sip
@@ -1,13 +1,38 @@
class QgsBilinearRasterResampler : QgsRasterResampler
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsbilinearrasterresampler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsBilinearRasterResampler: QgsRasterResampler
{
%Docstring
Bilinear Raster Resampler
%End

%TypeHeaderCode
#include "qgsbilinearrasterresampler.h"
%End
public:
QgsBilinearRasterResampler();
~QgsBilinearRasterResampler();

void resample( const QImage &srcImage, QImage &dstImage );
QString type() const;
virtual void resample( const QImage &srcImage, QImage &dstImage );

virtual QString type() const;
virtual QgsBilinearRasterResampler *clone() const /Factory/;

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsbilinearrasterresampler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
57 changes: 48 additions & 9 deletions python/core/raster/qgsbrightnesscontrastfilter.sip
@@ -1,30 +1,69 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsbrightnesscontrastfilter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsBrightnessContrastFilter : QgsRasterInterface
{
%Docstring
Brightness/contrast filter pipe for rasters.
%End

%TypeHeaderCode
#include <qgsbrightnesscontrastfilter.h>
#include "qgsbrightnesscontrastfilter.h"
%End
public:
QgsBrightnessContrastFilter( QgsRasterInterface *input = 0 );
~QgsBrightnessContrastFilter();

virtual QgsBrightnessContrastFilter *clone() const /Factory/;

int bandCount() const;

Qgis::DataType dataType( int bandNo ) const;
virtual int bandCount() const;


virtual Qgis::DataType dataType( int bandNo ) const;


bool setInput( QgsRasterInterface *input );
virtual bool setInput( QgsRasterInterface *input );


virtual QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = 0 ) /Factory/;

QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = 0 ) /Factory/;

void setBrightness( int brightness );
int brightness() const;
%Docstring
:rtype: int
%End

void setContrast( int contrast );
int contrast() const;
%Docstring
:rtype: int
%End

virtual void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;

void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;

/** Sets base class members from xml. Usually called from create() methods of subclasses*/
void readXml( const QDomElement &filterElem );
virtual void readXml( const QDomElement &filterElem );

%Docstring
Sets base class members from xml. Usually called from create() methods of subclasses
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsbrightnesscontrastfilter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
35 changes: 31 additions & 4 deletions python/core/raster/qgscliptominmaxenhancement.sip
@@ -1,13 +1,40 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgscliptominmaxenhancement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsClipToMinMaxEnhancement : QgsContrastEnhancementFunction
{
%TypeHeaderCode
#include <qgscliptominmaxenhancement.h>
%Docstring
A raster contrast enhancement that will clip a value to the specified min/max range.
For example if a min max range of [10,240] is specified in the constructor, and
a value of 250 is called using enhance(), the value will be truncated ('clipped')
to 240.
%End

%TypeHeaderCode
#include "qgscliptominmaxenhancement.h"
%End
public:
QgsClipToMinMaxEnhancement( Qgis::DataType, double, double );

int enhance( double );
virtual int enhance( double );


virtual bool isValueInDisplayableRange( double );

bool isValueInDisplayableRange( double );
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgscliptominmaxenhancement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 07fa247

Please sign in to comment.