QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsrastersinglecolorrendererwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrastersinglecolorrendererwidget.h
3 ---------------------------------
4 begin : April 2024
5 copyright : (C) 2024 by Mathieu Pellerin
6 email : mathieu at opengis dot ch
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSRASTERSINGLECOLORRENDERERWIDGET_H
19#define QGSRASTERSINGLECOLORRENDERERWIDGET_H
20
21#define SIP_NO_FILE
22
23#include "ui_qgsrastersinglecolorrendererwidgetbase.h"
24
25#include "qgis_gui.h"
27
33class GUI_EXPORT QgsRasterSingleColorRendererWidget : public QgsRasterRendererWidget, private Ui::QgsRasterSingleColorRendererWidgetBase
34{
35 Q_OBJECT
36 public:
43
45 static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsRasterSingleColorRendererWidget( layer, extent ); }
46
48
52 void setFromRenderer( const QgsRasterRenderer *r );
53};
54
55#endif // QGSRASTERSINGLECOLORRENDERERWIDGET_H
Represents a raster layer.
QgsRasterRendererWidget(QgsRasterLayer *layer, const QgsRectangle &extent)
Constructor for QgsRasterRendererWidget.
virtual QgsRasterRenderer * renderer()=0
Creates a new renderer, using the properties defined in the widget.
Raster renderer pipe that applies colors to a raster.
QgsRasterSingleColorRendererWidget(QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
Constructor for QgsRasterSingleColorRendererWidget.
static QgsRasterRendererWidget * create(QgsRasterLayer *layer, const QgsRectangle &extent)
Widget creation function (use by the renderer registry).
A rectangle specified with double values.
#define SIP_FACTORY
Definition qgis_sip.h:84