Skip to content
Permalink
Browse files

sipify core raster part 3

  • Loading branch information
3nids committed Jun 5, 2017
1 parent dff3011 commit 176b7cafaf706b7e0d6751b63fc3f8e974d0f7ea
Showing with 1,135 additions and 369 deletions.
  1. +0 −15 python/auto_sip.blacklist
  2. +100 −64 python/core/raster/qgshillshaderenderer.sip
  3. +103 −37 python/core/raster/qgsrasterpipe.sip
  4. +73 −32 python/core/raster/qgsrasterprojector.sip
  5. +38 −7 python/core/raster/qgsrasterpyramid.sip
  6. +50 −19 python/core/raster/qgsrasterrange.sip
  7. +96 −16 python/core/raster/qgsrasterrenderer.sip
  8. +57 −13 python/core/raster/qgsrasterresamplefilter.sip
  9. +46 −10 python/core/raster/qgsrasterresampler.sip
  10. +77 −27 python/core/raster/qgsrastershader.sip
  11. +71 −13 python/core/raster/qgsrastershaderfunction.sip
  12. +57 −19 python/core/raster/qgsrastertransparency.sip
  13. +44 −11 python/core/raster/qgsrasterviewport.sip
  14. +50 −11 python/core/raster/qgssinglebandcolordatarenderer.sip
  15. +62 −12 python/core/raster/qgssinglebandgrayrenderer.sip
  16. +98 −32 python/core/raster/qgssinglebandpseudocolorrenderer.sip
  17. +2 −2 scripts/sipify.pl
  18. +1 −1 src/core/raster/qgshillshaderenderer.h
  19. +17 −1 src/core/raster/qgsrasterpipe.h
  20. +6 −3 src/core/raster/qgsrasterprojector.h
  21. +13 −3 src/core/raster/qgsrasterrenderer.h
  22. +3 −2 src/core/raster/qgsrasterresampler.h
  23. +20 −4 src/core/raster/qgsrastershader.h
  24. +15 −3 src/core/raster/qgsrastershaderfunction.h
  25. +3 −2 src/core/raster/qgsrastertransparency.h
  26. +6 −1 src/core/raster/qgsrasterviewport.h
  27. +6 −2 src/core/raster/qgssinglebandcolordatarenderer.h
  28. +1 −1 src/core/raster/qgssinglebandgrayrenderer.cpp
  29. +7 −2 src/core/raster/qgssinglebandgrayrenderer.h
  30. +13 −4 src/core/raster/qgssinglebandpseudocolorrenderer.h
@@ -48,21 +48,6 @@ core/gps/qgsgpsdconnection.sip
core/gps/qgsgpsdetector.sip
core/gps/qgsnmeaconnection.sip
core/gps/qgsqtlocationconnection.sip
core/raster/qgsrasterpipe.sip
core/raster/qgsrasterprojector.sip
core/raster/qgsrasterpyramid.sip
core/raster/qgsrasterrange.sip
core/raster/qgsrasterrenderer.sip
core/raster/qgsrasterresamplefilter.sip
core/raster/qgsrasterresampler.sip
core/raster/qgsrastershader.sip
core/raster/qgsrastershaderfunction.sip
core/raster/qgsrastertransparency.sip
core/raster/qgsrasterviewport.sip
core/raster/qgssinglebandcolordatarenderer.sip
core/raster/qgssinglebandgrayrenderer.sip
core/raster/qgssinglebandpseudocolorrenderer.sip
core/raster/qgshillshaderenderer.sip
core/symbology-ng/qgscolorbrewerpalette.sip
core/symbology-ng/qgscptcityarchive.sip
core/symbology-ng/qgsstyle.sip
@@ -1,97 +1,133 @@
/**
* @brief A renderer for generating live hillshade models.
* @note added in QGIS 2.16
*/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgshillshaderenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/







class QgsHillshadeRenderer : QgsRasterRenderer
{
%Docstring
A renderer for generating live hillshade models.
.. versionadded:: 2.16
%End

%TypeHeaderCode
#include "qgshillshaderenderer.h"
#include "qgshillshaderenderer.h"
%End
public:

/**
* @brief A renderer for generating live hillshade models.
* @param input The input raster interface
* @param band The band in the raster to use
* @param lightAzimuth The azimuth of the light source
* @param lightAltitude The altitude of the light source
*/
QgsHillshadeRenderer( QgsRasterInterface *input, int band, double lightAzimuth, double lightAngle );

~QgsHillshadeRenderer();
QgsHillshadeRenderer( QgsRasterInterface *input, int band, double lightAzimuth, double lightAltitude );
%Docstring
A renderer for generating live hillshade models.
\param input The input raster interface
\param band The band in the raster to use
\param lightAzimuth The azimuth of the light source
\param lightAltitude The altitude of the light source
%End

virtual QgsHillshadeRenderer *clone() const /Factory/;

/**
* @brief Factory method to create a new renderer
* @param elem A DOM element to create the renderer from.
* @param input The raster input interface.
* @return A new QgsHillshadeRenderer.
*/

static QgsRasterRenderer *create( const QDomElement &elem, QgsRasterInterface *input ) /Factory/;
%Docstring
Factory method to create a new renderer
\param elem A DOM element to create the renderer from.
\param input The raster input interface.
:return: A new QgsHillshadeRenderer.
:rtype: QgsRasterRenderer
%End

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


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

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

void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
virtual QList<int> usesBands() const;

QList<int> usesBands() const;

/** Returns the band used by the renderer
*/
int band() const;
%Docstring
Returns the band used by the renderer
:rtype: int
%End

/** Sets the band used by the renderer.
* @see band
*/
void setBand( int bandNo );
%Docstring
Sets the band used by the renderer.
.. seealso:: band
%End

/**
* Returns the direction of the light over the raster between 0-360.
* @see setAzimuth()
*/
double azimuth() const;
%Docstring
Returns the direction of the light over the raster between 0-360.
.. seealso:: setAzimuth()
:rtype: float
%End

/** Returns the angle of the light source over the raster.
* @see setAltitude()
*/
double altitude() const;
%Docstring
Returns the angle of the light source over the raster.
.. seealso:: setAltitude()
:rtype: float
%End

/** Returns the Z scaling factor.
* @see setZFactor()
*/
double zFactor() const;
%Docstring
Returns the Z scaling factor.
.. seealso:: setZFactor()
:rtype: float
%End

/** Returns true if the renderer is using multi-directional hillshading.
* @see setMultiDirectional()
*/
bool multiDirectional() const;
%Docstring
Returns true if the renderer is using multi-directional hillshading.
.. seealso:: setMultiDirectional()
:rtype: bool
%End


/**
* @brief Set the azimuth of the light source.
* @param azimuth The azimuth of the light source, between 0 and 360.0
* @see azimuth()
*/
void setAzimuth( double azimuth );
%Docstring
Set the azimuth of the light source.
\param azimuth The azimuth of the light source, between 0 and 360.0
.. seealso:: azimuth()
%End

void setAltitude( double altitude );
%Docstring
Set the altitude of the light source
\param altitude the altitude
.. seealso:: altitude()
%End

/**
* @brief Set the altitude of the light source
* @param altitude the altitude
* @see altitude()
*/
void setAltitude( double angle );

/**
* @brief Set the Z scaling factor of the result image.
* @param zfactor The z factor
* @see zFactor()
*/
void setZFactor( double zfactor );
%Docstring
Set the Z scaling factor of the result image.
\param zfactor The z factor
.. seealso:: zFactor()
%End

/** Sets whether to render using a multi-directional hillshade algorithm.
* @param isMultiDirectional set to true to use multi directional rendering
* @see multiDirectional()
*/
void setMultiDirectional( bool isMultiDirectional );
%Docstring
Sets whether to render using a multi-directional hillshade algorithm.
\param isMultiDirectional set to true to use multi directional rendering
.. seealso:: multiDirectional()
%End

};

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

0 comments on commit 176b7ca

Please sign in to comment.
You can’t perform that action at this time.