QGIS API Documentation 3.41.0-Master (45a0abf3bec)
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
26#include "qgis_gui.h"
27
33class GUI_EXPORT QgsRasterSingleColorRendererWidget: public QgsRasterRendererWidget, private Ui::QgsRasterSingleColorRendererWidgetBase
34{
35 Q_OBJECT
36 public:
39
41 static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsRasterSingleColorRendererWidget( layer, extent ); }
42
44
48 void setFromRenderer( const QgsRasterRenderer *r );
49
50};
51
52#endif // QGSRASTERSINGLECOLORRENDERERWIDGET_H
Represents a raster layer.
Abstract base class for widgets which configure a QgsRasterRenderer.
virtual QgsRasterRenderer * renderer()=0
Creates a new renderer, using the properties defined in the widget.
Raster renderer pipe that applies colors to a raster.
Renderer widget for the single color renderer.
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:76