QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 <QObject>
19 #include <QDialog>
20 
21 #include "ui_qgsrenderermeshpropswidgetbase.h"
22 
24 #include "qgis_gui.h"
25 #include <memory>
26 
28 
29 class QgsMeshLayer;
30 class QgsMapCanvas;
31 
39 class GUI_EXPORT QgsRendererMeshPropertiesWidget : public QgsMapLayerConfigWidget, private Ui::QgsRendererMeshPropsWidgetBase
40 {
41  Q_OBJECT
42 
43  public:
44 
51  QgsRendererMeshPropertiesWidget( QgsMeshLayer *layer, QgsMapCanvas *canvas, QWidget *parent = nullptr );
52 
58  void syncToLayer( QgsMapLayer *mapLayer ) override;
59 
60  public slots:
62  void apply() override;
63 
64  private slots:
65  void onActiveScalarGroupChanged( int groupIndex );
66  void onActiveVectorGroupChanged( int groupIndex );
67 
68  void syncToLayerPrivate();
69 
70  private:
71  QgsMeshLayer *mMeshLayer = nullptr; //not owned
72 };
73 
74 #endif // QGSRENDERERMESHPROPERTIESWIDGET_H
QgsRendererMeshPropertiesWidget
Widget for renderer properties of the mesh, contours (scalars) and vectors data associated with the m...
Definition: qgsrenderermeshpropertieswidget.h:39
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget
A panel widget that can be shown in the map style dock.
Definition: qgsmaplayerconfigwidget.h:115
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition: qgsmeshlayer.h:98
SIP_NO_FILE
#define SIP_NO_FILE
Definition: fromencodedcomponenthelper.h:18
qgsmaplayerconfigwidget.h
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition: qgsmaplayer.h:72
QgsMapLayerConfigWidget::syncToLayer
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Definition: qgsmaplayerconfigwidget.h:142