Skip to content
Permalink
Browse files

sipify core raster part 1

  • Loading branch information
3nids committed Jun 1, 2017
1 parent a6358b1 commit 07fa24781c0f033725328694a4a3485da4646a84
@@ -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
@@ -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 *
************************************************************************/
@@ -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 *
************************************************************************/
@@ -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.
You can’t perform that action at this time.