QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
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:
42
49
54 QgsMeshRendererMeshSettingsWidget( QWidget *parent = nullptr );
55
61 void setLayer( QgsMeshLayer *layer, MeshType meshType );
62
65
67 void syncToLayer();
68
69 signals:
72
73 private:
74 QgsMeshLayer *mMeshLayer = nullptr; // not owned
75 MeshType mMeshType = MeshType::Native;
76};
77
78#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