QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsrastercontourrendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrastercontourrendererwidget.h
3  --------------------------------------
4  Date : March 2020
5  Copyright : (C) 2020 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSRASTERCONTOURRENDERERWIDGET_H
17 #define QGSRASTERCONTOURRENDERERWIDGET_H
18 
20 #include "qgis_sip.h"
21 #include "ui_qgsrastercontourrendererwidget.h"
22 #include "qgis_gui.h"
23 
29 class GUI_EXPORT QgsRasterContourRendererWidget : public QgsRasterRendererWidget, private Ui::QgsRasterContourRendererWidget
30 {
31  Q_OBJECT
32  public:
35 
37  static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsRasterContourRendererWidget( layer, extent ); }
38 
39  QgsRasterRenderer *renderer() override;
40 };
41 
42 #endif // QGSRASTERCONTOURRENDERERWIDGET_H
QgsRasterContourRendererWidget::create
static QgsRasterRendererWidget * create(QgsRasterLayer *layer, const QgsRectangle &extent)
Widget creation function (mainly for the use by the renderer registry)
Definition: qgsrastercontourrendererwidget.h:37
qgsrasterrendererwidget.h
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:42
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsRasterRenderer
Raster renderer pipe that applies colors to a raster.
Definition: qgsrasterrenderer.h:39
qgis_sip.h
QgsRasterLayer
Represents a raster layer.
Definition: qgsrasterlayer.h:71
QgsRasterContourRendererWidget
Configuration widget for QgsRasterContourRenderer.
Definition: qgsrastercontourrendererwidget.h:30
QgsRasterRendererWidget
Definition: qgsrasterrendererwidget.h:37
QgsRasterRendererWidget::renderer
virtual QgsRasterRenderer * renderer()=0