Skip to content

Commit

Permalink
sipify core symbology classes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 7, 2017
1 parent 154c8f5 commit 542dc85
Show file tree
Hide file tree
Showing 48 changed files with 5,558 additions and 2,947 deletions.
22 changes: 0 additions & 22 deletions python/auto_sip.blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
156 changes: 88 additions & 68 deletions python/core/symbology-ng/qgs25drenderer.sip
Original file line number Diff line number Diff line change
@@ -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 *
************************************************************************/
Loading

0 comments on commit 542dc85

Please sign in to comment.