QGIS API Documentation 3.41.0-Master (af5edcb665c)
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:
50 QgsMeshRendererActiveDatasetWidget( QWidget *parent = nullptr );
52
54 void setLayer( QgsMeshLayer *layer );
55
57 int activeScalarDatasetGroup() const;
58
60 int activeVectorDatasetGroup() const;
61
63 void syncToLayer();
64
65 signals:
66
68 void activeScalarGroupChanged( int groupIndex );
69
71 void activeVectorGroupChanged( int groupIndex );
72
75
76 private slots:
77 void onActiveScalarGroupChanged( int groupIndex );
78 void onActiveVectorGroupChanged( int groupIndex );
79 QString metadata( QgsMeshDatasetIndex datasetIndex );
80
81 private:
82 void updateMetadata();
83
84 QgsMeshLayer *mMeshLayer = nullptr; // not owned
85 int mActiveScalarDatasetGroup = -1;
86 int mActiveVectorDatasetGroup = -1;
87};
88
89#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