Skip to content
Permalink
Browse files
Add some missing /Factory/ annotations
  • Loading branch information
nyalldawson authored and github-actions committed Oct 29, 2021
1 parent 3c8e09c commit ac1957a699d5a8655ed5b094d64ddb1eb16cbfc6
@@ -37,13 +37,8 @@ Renderer widget for the hill shade renderer.
Factory method to create the renderer for this type.
%End

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;

%Docstring
The renderer for the widget.

:return: A new renderer for the the config in the widget
%End

void setFromRenderer( const QgsRasterRenderer *renderer );
%Docstring
@@ -20,7 +20,7 @@ class QgsMultiBandColorRendererWidget: QgsRasterRendererWidget
QgsMultiBandColorRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent );

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;

virtual void setMapCanvas( QgsMapCanvas *canvas );

@@ -24,7 +24,7 @@ class QgsPalettedRendererWidget: QgsRasterRendererWidget
~QgsPalettedRendererWidget();
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) /Factory/;

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;


void setFromRenderer( const QgsRasterRenderer *r );
@@ -30,7 +30,7 @@ Constructs the widget
Widget creation function (mainly for the use by the renderer registry)
%End

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;

};

@@ -21,7 +21,7 @@ class QgsSingleBandGrayRendererWidget: QgsRasterRendererWidget

static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) /Factory/;

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;

virtual void setMapCanvas( QgsMapCanvas *canvas );

@@ -33,7 +33,7 @@ Creates new raster renderer widget
Creates new raster renderer widget
%End

virtual QgsRasterRenderer *renderer();
virtual QgsRasterRenderer *renderer() /Factory/;

virtual void setMapCanvas( QgsMapCanvas *canvas );

@@ -48,11 +48,7 @@ class GUI_EXPORT QgsHillshadeRendererWidget: public QgsRasterRendererWidget, pri
*/
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsHillshadeRendererWidget( layer, extent ); }

/**
* \brief The renderer for the widget.
* \returns A new renderer for the the config in the widget
*/
QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() override SIP_FACTORY;

/**
* \brief Set the widget state from the given renderer.
@@ -41,7 +41,7 @@ class GUI_EXPORT QgsMultiBandColorRendererWidget: public QgsRasterRendererWidget
QgsMultiBandColorRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) { return new QgsMultiBandColorRendererWidget( layer, extent ); }

QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() override SIP_FACTORY;
void setMapCanvas( QgsMapCanvas *canvas ) override;

/**
@@ -193,7 +193,7 @@ class GUI_EXPORT QgsPalettedRendererWidget: public QgsRasterRendererWidget, priv
~QgsPalettedRendererWidget() override;
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsPalettedRendererWidget( layer, extent ); }

QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() SIP_FACTORY override;

/**
* Sets the widget state from the specified renderer.
@@ -36,7 +36,7 @@ class GUI_EXPORT QgsRasterContourRendererWidget : public QgsRasterRendererWidget
//! Widget creation function (mainly for the use by the renderer registry)
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsRasterContourRendererWidget( layer, extent ); }

QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() SIP_FACTORY override;
};

#endif // QGSRASTERCONTOURRENDERERWIDGET_H
@@ -38,7 +38,7 @@ class GUI_EXPORT QgsSingleBandGrayRendererWidget: public QgsRasterRendererWidget

static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsSingleBandGrayRendererWidget( layer, extent ); }

QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() SIP_FACTORY override;
void setMapCanvas( QgsMapCanvas *canvas ) override;

/**
@@ -48,7 +48,7 @@ class GUI_EXPORT QgsSingleBandPseudoColorRendererWidget: public QgsRasterRendere
//! Creates new raster renderer widget
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsSingleBandPseudoColorRendererWidget( layer, extent ); }

QgsRasterRenderer *renderer() override;
QgsRasterRenderer *renderer() SIP_FACTORY override;
void setMapCanvas( QgsMapCanvas *canvas ) override;
void doComputations() override;
QgsRasterMinMaxWidget *minMaxWidget() override;

0 comments on commit ac1957a

Please sign in to comment.