QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsmeshrenderermeshsettingswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmeshrenderermeshsettingswidget.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
16#ifndef QGSMESHRENDERERMESHSETTINGSWIDGET_H
17#define QGSMESHRENDERERMESHSETTINGSWIDGET_H
18
19#include "ui_qgsmeshrenderermeshsettingswidgetbase.h"
21#include "qgis_gui.h"
22
23#include <QWidget>
24
26
27class QgsMeshLayer;
28
37class QgsMeshRendererMeshSettingsWidget : public QWidget, private Ui::QgsMeshRendererMeshSettingsWidgetBase
38{
39 Q_OBJECT
40
41 public:
48
53 QgsMeshRendererMeshSettingsWidget( QWidget *parent = nullptr );
54
60 void setLayer( QgsMeshLayer *layer, MeshType meshType );
61
64
66 void syncToLayer();
67
68 signals:
71
72 private:
73 QgsMeshLayer *mMeshLayer = nullptr; // not owned
74 MeshType mMeshType = MeshType::Native;
75};
76
77#endif // QGSMESHRENDERERMESHSETTINGSWIDGET_H
Represents a mesh layer supporting display of data on structured or unstructured meshes.
A widget for setup of the mesh frame settings of the mesh layer.
void setLayer(QgsMeshLayer *layer, MeshType meshType)
Associates mesh layer with the widget.
void widgetChanged()
Mesh rendering settings changed.
QgsMeshRendererMeshSettings settings() const
Returns the mesh rendering settings (native or triangular or edge)
void syncToLayer()
Synchronizes widgets state with associated mesh layer.
Represents a mesh renderer settings for mesh object.
#define SIP_NO_FILE