QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsmeshrenderer3daveragingwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmeshrenderer3daveragingwidget.h
3 ----------------------------------
4 begin : November 2019
5 copyright : (C) 2019 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 QGSMESHRENDERER3DAVERAGINGWIDGET_H
17#define QGSMESHRENDERER3DAVERAGINGWIDGET_H
18
19#include "ui_qgsmeshrenderer3daveragingwidgetbase.h"
20
21#include <memory>
22#include <QWidget>
23
25
26class QgsMeshLayer;
28class QgsScreenHelper;
29
38class QgsMeshRenderer3DAveragingWidget : public QWidget, private Ui::QgsMeshRenderer3dAveragingWidgetBase
39{
40 Q_OBJECT
41
42 public:
43
48 QgsMeshRenderer3DAveragingWidget( QWidget *parent = nullptr );
49
51 void setLayer( QgsMeshLayer *layer );
52
58 std::unique_ptr<QgsMesh3DAveragingMethod> averagingMethod() const;
59
61 void syncToLayer();
62
63 signals:
66
67 private slots:
68 void onAveragingMethodChanged( int methodIndex );
69 void updateGraphics();
70
71 private:
72 void setLabelSvg( QLabel *imageLabel,
73 const QString &imgName );
74
75 QgsScreenHelper *mScreenHelper = nullptr;
76
77 QgsMeshLayer *mMeshLayer = nullptr; //not owned
78};
79
80#endif // QGSMESHRENDERER3DAVERAGINGWIDGET_H
Abstract class to interpolate 3d stacked mesh data to 2d data.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
A widget for setup of the averaging method from 3d to 2d datasets on 3d stacked mesh.
void setLayer(QgsMeshLayer *layer)
Associates mesh layer with the widget.
void widgetChanged()
Mesh rendering settings changed.
std::unique_ptr< QgsMesh3DAveragingMethod > averagingMethod() const
Returns selected averaging method.
void syncToLayer()
Synchronizes widgets state with associated mesh layer.
A utility class for dynamic handling of changes to screen properties.
#define SIP_NO_FILE