QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsmeshrenderervectorsettingswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmeshrenderervectorsettingswidget.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 QGSMESHRENDERERVECTORSETTINGSWIDGET_H
17#define QGSMESHRENDERERVECTORSETTINGSWIDGET_H
18
19#include "ui_qgsmeshrenderervectorsettingswidgetbase.h"
20
21#include <memory>
22
23#include "qgis_gui.h"
24#include "qgsmeshdataprovider.h"
27
28#include <QWidget>
29
31
32class QgsMeshLayer;
33
42class QgsMeshRendererVectorSettingsWidget : public QWidget, private Ui::QgsMeshRendererVectorSettingsWidgetBase
43{
44 Q_OBJECT
45
46 public:
51 QgsMeshRendererVectorSettingsWidget( QWidget *parent = nullptr );
52
54 void setLayer( QgsMeshLayer *layer );
55
57 void setActiveDatasetGroup( int groupIndex ) { mActiveDatasetGroup = groupIndex; }
58
61
63 void syncToLayer();
64
65 signals:
68
69 private slots:
70 void onSymbologyChanged( int currentIndex );
71 void onStreamLineSeedingMethodChanged( int currentIndex );
72 void onWindBarbUnitsChanged( int currentIndex );
73 void onColoringMethodChanged();
74 void onColorRampMinMaxChanged();
75 void loadColorRampShader();
76
77 private:
82 double filterValue( const QgsDoubleSpinBox *spinBox, double err_val ) const;
83
84 QgsMeshLayer *mMeshLayer = nullptr; //not owned
85 int mActiveDatasetGroup = -1;
86};
87
88#endif // QGSMESHRENDERERVECTORSETTINGSWIDGET_H
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
QgsMeshRendererVectorSettingsWidget(QWidget *parent=nullptr)
A widget to hold the renderer Vector settings for a mesh layer.
void setActiveDatasetGroup(int groupIndex)
Associates a dataset group with the widget (should be set before syncToLayer()).
QgsMeshRendererVectorSettings settings() const
Returns vector settings.
void syncToLayer()
Synchronizes widgets state with associated mesh layer.
void setLayer(QgsMeshLayer *layer)
Associates mesh layer with the widget.
void widgetChanged()
Mesh rendering settings changed.
Represents a renderer settings for vector datasets.
#define SIP_NO_FILE