Skip to content
Permalink
Browse files

sipify core symbology classes

  • Loading branch information
3nids committed Jun 7, 2017
1 parent 154c8f5 commit 542dc85433925d835f09ea787e1e3a185deb1fd9
Showing with 5,558 additions and 2,947 deletions.
  1. +0 −22 python/auto_sip.blacklist
  2. +88 −68 python/core/symbology-ng/qgs25drenderer.sip
  3. +165 −81 python/core/symbology-ng/qgsarrowsymbollayer.sip
  4. +145 −88 python/core/symbology-ng/qgscategorizedsymbolrenderer.sip
  5. +29 −2 python/core/symbology-ng/qgscolorbrewerpalette.sip
  6. +250 −117 python/core/symbology-ng/qgscptcityarchive.sip
  7. +136 −53 python/core/symbology-ng/qgsellipsesymbollayer.sip
  8. +1,036 −514 python/core/symbology-ng/qgsfillsymbollayer.sip
  9. +76 −55 python/core/symbology-ng/qgsgeometrygeneratorsymbollayer.sip
  10. +261 −156 python/core/symbology-ng/qgsgraduatedsymbolrenderer.sip
  11. +148 −83 python/core/symbology-ng/qgsheatmaprenderer.sip
  12. +133 −67 python/core/symbology-ng/qgsinvertedpolygonrenderer.sip
  13. +77 −26 python/core/symbology-ng/qgslegendsymbolitem.sip
  14. +39 −19 python/core/symbology-ng/qgsnullsymbolrenderer.sip
  15. +59 −26 python/core/symbology-ng/qgspointclusterrenderer.sip
  16. +111 −68 python/core/symbology-ng/qgspointdisplacementrenderer.sip
  17. +201 −132 python/core/symbology-ng/qgspointdistancerenderer.sip
  18. +391 −249 python/core/symbology-ng/qgsrenderer.sip
  19. +119 −69 python/core/symbology-ng/qgsrendererregistry.sip
  20. +39 −32 python/core/symbology-ng/qgssinglesymbolrenderer.sip
  21. +415 −223 python/core/symbology-ng/qgsstyle.sip
  22. +164 −61 python/core/symbology-ng/qgssvgcache.sip
  23. +552 −350 python/core/symbology-ng/qgssymbol.sip
  24. +620 −259 python/core/symbology-ng/qgssymbollayerutils.sip
  25. +94 −28 python/core/symbology-ng/qgsvectorfieldsymbollayer.sip
  26. +2 −2 src/core/symbology-ng/qgs25drenderer.h
  27. +4 −0 src/core/symbology-ng/qgsarrowsymbollayer.h
  28. +6 −2 src/core/symbology-ng/qgscategorizedsymbolrenderer.h
  29. +6 −1 src/core/symbology-ng/qgscptcityarchive.h
  30. +18 −0 src/core/symbology-ng/qgsfillsymbollayer.h
  31. +5 −1 src/core/symbology-ng/qgsgeometrygeneratorsymbollayer.h
  32. +19 −12 src/core/symbology-ng/qgsgraduatedsymbolrenderer.h
  33. +1 −1 src/core/symbology-ng/qgsinvertedpolygonrenderer.h
  34. +4 −0 src/core/symbology-ng/qgslinesymbollayer.h
  35. +15 −12 src/core/symbology-ng/qgsmarkersymbollayer.h
  36. +5 −1 src/core/symbology-ng/qgspointclusterrenderer.h
  37. +5 −1 src/core/symbology-ng/qgspointdisplacementrenderer.h
  38. +4 −4 src/core/symbology-ng/qgspointdistancerenderer.h
  39. +12 −3 src/core/symbology-ng/qgsrenderer.h
  40. +13 −7 src/core/symbology-ng/qgsrendererregistry.h
  41. +39 −26 src/core/symbology-ng/qgsrulebasedrenderer.h
  42. +8 −2 src/core/symbology-ng/qgssinglesymbolrenderer.h
  43. +5 −0 src/core/symbology-ng/qgssvgcache.h
  44. +7 −4 src/core/symbology-ng/qgssymbol.h
  45. +4 −3 src/core/symbology-ng/qgssymbollayer.h
  46. +22 −15 src/core/symbology-ng/qgssymbollayerregistry.h
  47. +2 −2 src/core/symbology-ng/qgssymbollayerutils.h
  48. +4 −0 src/core/symbology-ng/qgsvectorfieldsymbollayer.h
@@ -47,35 +47,13 @@ core/gps/qgsgpsdconnection.sip
core/gps/qgsgpsdetector.sip
core/gps/qgsnmeaconnection.sip
core/gps/qgsqtlocationconnection.sip
core/symbology-ng/qgscolorbrewerpalette.sip
core/symbology-ng/qgscptcityarchive.sip
core/symbology-ng/qgsstyle.sip
core/symbology-ng/qgssvgcache.sip
core/symbology-ng/qgssymbol.sip
core/symbology-ng/qgs25drenderer.sip
core/symbology-ng/qgscategorizedsymbolrenderer.sip
core/symbology-ng/qgsgraduatedsymbolrenderer.sip
core/symbology-ng/qgsheatmaprenderer.sip
core/symbology-ng/qgsinvertedpolygonrenderer.sip
core/symbology-ng/qgslegendsymbolitem.sip
core/symbology-ng/qgsnullsymbolrenderer.sip
core/symbology-ng/qgspointclusterrenderer.sip
core/symbology-ng/qgspointdisplacementrenderer.sip
core/symbology-ng/qgspointdistancerenderer.sip
core/symbology-ng/qgsrenderer.sip
core/symbology-ng/qgsrendererregistry.sip
core/symbology-ng/qgsrulebasedrenderer.sip
core/symbology-ng/qgssinglesymbolrenderer.sip
core/symbology-ng/qgsellipsesymbollayer.sip
core/symbology-ng/qgsfillsymbollayer.sip
core/symbology-ng/qgsgeometrygeneratorsymbollayer.sip
core/symbology-ng/qgslinesymbollayer.sip
core/symbology-ng/qgsmarkersymbollayer.sip
core/symbology-ng/qgssymbollayer.sip
core/symbology-ng/qgssymbollayerregistry.sip
core/symbology-ng/qgssymbollayerutils.sip
core/symbology-ng/qgsvectorfieldsymbollayer.sip
core/symbology-ng/qgsarrowsymbollayer.sip
gui/qgsmaptip.sip
gui/qgsmaptool.sip
gui/qgsmaptooladvanceddigitizing.sip
@@ -1,106 +1,126 @@
/***************************************************************************
qgs25drenderer.sip - Qgs25DRenderer

---------------------
begin : 14.1.2016
copyright : (C) 2016 by Matthias Kuhn
email : matthias@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/symbology-ng/qgs25drenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class Qgs25DRenderer : QgsFeatureRenderer
{

%TypeHeaderCode
#include "qgs25drenderer.h"
%End
public:
Qgs25DRenderer();

/**
* Create a new 2.5D renderer from XML
*
* @param element XML information
*/
static QgsFeatureRenderer* create( QDomElement& element, const QgsReadWriteContext &context ) /Factory/;
QDomElement save( QDomDocument& doc, const QgsReadWriteContext &context );
static QgsFeatureRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Create a new 2.5D renderer from XML

\param element XML information
\param context reading context
:rtype: QgsFeatureRenderer
%End
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context );


virtual void startRender( QgsRenderContext &context, const QgsFields &fields );

void startRender( QgsRenderContext &context, const QgsFields &fields );
void stopRender( QgsRenderContext &context );
virtual void stopRender( QgsRenderContext &context );


virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;

virtual QgsFeatureRenderer *clone() const /Factory/;

QSet<QString> usedAttributes( const QgsRenderContext& context ) const;
QgsFeatureRenderer* clone() const /Factory/;

virtual QgsSymbol *symbolForFeature( QgsFeature &feature, QgsRenderContext &context );
virtual QgsSymbolList symbols( QgsRenderContext &context );

/**
* Get the roof color
*/
QColor roofColor() const;
%Docstring
Get the roof color
:rtype: QColor
%End

/**
* Set the roof color
*/
void setRoofColor( const QColor &roofColor );
%Docstring
Set the roof color
%End

/**
* Get the wall color
*/
QColor wallColor() const;
%Docstring
Get the wall color
:rtype: QColor
%End

/**
* Set the wall color
*/
void setWallColor( const QColor &wallColor );
%Docstring
Set the wall color
%End

/**
* Set wall shading enabled
*/
void setWallShadingEnabled( bool enabled );
%Docstring
Set wall shading enabled
%End

/**
* Get wall shading enabled
*/
bool wallShadingEnabled() const;
%Docstring
Get wall shading enabled
:rtype: bool
%End

/**
* Get the shadow's color
*/
QColor shadowColor() const;
%Docstring
Get the shadow's color
:rtype: QColor
%End

/**
* Set the shadow's color
*/
void setShadowColor( const QColor &shadowColor );
%Docstring
Set the shadow's color
%End

/**
* Get the shadow's spread distance in map units
*/
double shadowSpread() const;
/**
* Set the shadow's spread distance in map units
*/
%Docstring
Get the shadow's spread distance in map units
:rtype: float
%End

void setShadowSpread( double shadowSpread );
%Docstring
Set the shadow's spread distance in map units
%End

/**
* Try to convert from an existing renderer. If it is not of the same type
* we assume that the internals are not compatible and create a new default
* 2.5D renderer.
*/
static Qgs25DRenderer* convertFromRenderer( QgsFeatureRenderer* renderer ) /Factory/;
static Qgs25DRenderer *convertFromRenderer( QgsFeatureRenderer *renderer ) /Factory/;
%Docstring
Try to convert from an existing renderer. If it is not of the same type
we assume that the internals are not compatible and create a new default
2.5D renderer.
:rtype: Qgs25DRenderer
%End

/**
* Is the shadow enabled
*/
bool shadowEnabled() const;
/**
* Enable or disable the shadow
*/
%Docstring
Is the shadow enabled
:rtype: bool
%End

void setShadowEnabled( bool value );
%Docstring
Enable or disable the shadow
%End

};

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

0 comments on commit 542dc85

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