Skip to content
Permalink
Browse files
Fix SIP bindings
  • Loading branch information
wonder-sk committed May 24, 2014
1 parent 0775a89 commit ff3cf0a9ad0b20afb9ac7c555cce58389b30cdbd
@@ -1,4 +1,4 @@
class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
class QgsInvertedPolygonRenderer : QgsFeatureRendererV2
{
%TypeHeaderCode
#include <qgsinvertedpolygonrenderer.h>
@@ -8,11 +8,11 @@ class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
/** Constructor
* @param embeddedRenderer optional embeddedRenderer. If null, a default one will be assigned
*/
QgsInvertedPolygonRenderer( const QgsFeatureRendererV2* embeddedRenderer = 0 );
QgsInvertedPolygonRenderer( const QgsFeatureRendererV2* embeddedRenderer /Transfer/ = 0 );
virtual ~QgsInvertedPolygonRenderer();

/** Used to clone this feature renderer.*/
virtual QgsFeatureRendererV2* clone();
virtual QgsFeatureRendererV2* clone() /Factory/;

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

@@ -52,7 +52,7 @@ class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
virtual bool willRenderFeature( QgsFeature& feat );

/** Creates a renderer out of an XML, for loading*/
static QgsFeatureRendererV2* create( QDomElement& element );
static QgsFeatureRendererV2* create( QDomElement& element ) /Factory/;

/** Creates an XML representation of the renderer. Used for saving purpose
* @param doc the XML document where to create the XML subtree
@@ -1,4 +1,4 @@
class QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui::QgsInvertedPolygonRendererWidgetBase
class QgsInvertedPolygonRendererWidget : QgsRendererV2Widget
{
%TypeHeaderCode
#include <qgsinvertedpolygonrendererwidget.h>
@@ -9,7 +9,7 @@ class QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui:
* @param style
* @param renderer the mask renderer (will take ownership)
*/
static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer ) /Factory/;

/** Constructor
* @param layer the layer where this renderer is applied
@@ -34,6 +34,8 @@
*
* Features are collected to form one "inverted" polygon
* during renderFeature() and rendered on stopRender().
*
* @note added in 2.4
*/
class CORE_EXPORT QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
{
@@ -23,6 +23,8 @@ class QMenu;

/**
* A widget used represent options of a QgsInvertedPolygonRenderer
*
* @note added in 2.4
*/
class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui::QgsInvertedPolygonRendererWidgetBase
{

0 comments on commit ff3cf0a

Please sign in to comment.