QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgsmeshrendereractivedatasetwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmeshrendereractivedatasetwidget.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 QGSMESHRENDERERACTIVEDATASETWIDGET_H
17#define QGSMESHRENDERERACTIVEDATASETWIDGET_H
18
19#include "ui_qgsmeshrendereractivedatasetwidgetbase.h"
20#include "qgis_gui.h"
21#include "qgsmeshdataprovider.h"
22
23#include <QWidget>
24#include <QIcon>
25
27
28class QgsMeshLayer;
29
41class GUI_EXPORT QgsMeshRendererActiveDatasetWidget : public QWidget, private Ui::QgsMeshRendererActiveDatasetWidgetBase
42{
43 Q_OBJECT
44
45 public:
46
51 QgsMeshRendererActiveDatasetWidget( QWidget *parent = nullptr );
53
55 void setLayer( QgsMeshLayer *layer );
56
58 int activeScalarDatasetGroup() const;
59
61 int activeVectorDatasetGroup() const;
62
64 void syncToLayer();
65
66 signals:
67
69 void activeScalarGroupChanged( int groupIndex );
70
72 void activeVectorGroupChanged( int groupIndex );
73
76
77 private slots:
78 void onActiveScalarGroupChanged( int groupIndex );
79 void onActiveVectorGroupChanged( int groupIndex );
80 QString metadata( QgsMeshDatasetIndex datasetIndex );
81
82 private:
83 void updateMetadata();
84
85 QgsMeshLayer *mMeshLayer = nullptr; // not owned
86 int mActiveScalarDatasetGroup = -1;
87 int mActiveVectorDatasetGroup = -1;
88};
89
90#endif // QGSMESHRENDERERSCALARSETTINGSWIDGET_H
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Widget for selection of active dataset group from tree view.
void widgetChanged()
Emitted when any settings related to rendering changed.
void activeScalarGroupChanged(int groupIndex)
Emitted when the current scalar group gets changed.
void activeVectorGroupChanged(int groupIndex)
Emitted when the current vector group gets changed.
#define SIP_NO_FILE