QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
qgsrenderermeshpropertieswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrenderermeshpropertieswidget.h
3 ---------------------
4 begin : June 2018
5 copyright : (C) 2018 by Peter Petrik
6 email : zilolv 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#ifndef QGSRENDERERMESHPROPERTIESWIDGET_H
16#define QGSRENDERERMESHPROPERTIESWIDGET_H
17
18#include "ui_qgsrenderermeshpropswidgetbase.h"
19
20#include <memory>
21
22#include "qgis_gui.h"
24
25#include <QDialog>
26#include <QObject>
27
29
30class QgsMeshLayer;
31class QgsMapCanvas;
32
40class GUI_EXPORT QgsRendererMeshPropertiesWidget : public QgsMapLayerConfigWidget, private Ui::QgsRendererMeshPropsWidgetBase
41{
42 Q_OBJECT
43
44 public:
45
52 QgsRendererMeshPropertiesWidget( QgsMeshLayer *layer, QgsMapCanvas *canvas, QWidget *parent = nullptr );
53
59 void syncToLayer( QgsMapLayer *mapLayer ) final;
60
61 public slots:
63 void apply() override;
64
65 private slots:
66 void onActiveScalarGroupChanged( int groupIndex );
67 void onActiveVectorGroupChanged( int groupIndex );
68
69 void syncToLayerPrivate();
70
71 private:
72 QgsMeshLayer *mMeshLayer = nullptr; //not owned
73};
74
75#endif // QGSRENDERERMESHPROPERTIESWIDGET_H
Map canvas is a class for displaying all GIS data types on a canvas.
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
virtual void apply()=0
Called when changes to the layer need to be made.
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Base class for all map layer types.
Definition qgsmaplayer.h:80
Represents a mesh layer supporting display of data on structured or unstructured meshes.
QgsRendererMeshPropertiesWidget(QgsMeshLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A widget to hold the renderer properties for a mesh layer.
#define SIP_NO_FILE