QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
qgsmeshlayerproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmeshlayerproperties.h
3 ------------------------
4 begin : Jun 2018
5 copyright : (C) 2018 by Peter Petrik
6 email : zilolv at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSMESHLAYERPROPERTIES_H
18#define QGSMESHLAYERPROPERTIES_H
19
20#include "ui_qgsmeshlayerpropertiesbase.h"
21
24#include "qgsguiutils.h"
25#include "qgis_gui.h"
26
27class QgsMapLayer;
28class QgsMapCanvas;
29class QgsMeshLayer;
32class QgsMeshLayer3DRendererWidget;
36
46class GUI_EXPORT QgsMeshLayerProperties : public QgsOptionsDialogBase, private Ui::QgsMeshLayerPropertiesBase
47{
48 Q_OBJECT
49
50 public:
51
59 QgsMeshLayerProperties( QgsMapLayer *lyr, QgsMapCanvas *canvas, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
60
66 void addPropertiesPageFactory( const QgsMapLayerConfigWidgetFactory *factory );
67
73 void loadDefaultStyle();
74
80 void saveDefaultStyle();
81
87 void loadStyle();
88
94 void saveStyleAs();
95
96 protected slots:
97 void optionsStackedWidget_CurrentChanged( int index ) override SIP_SKIP ;
98
99 private slots:
101 void syncToLayer();
102
104 void apply();
106 void syncAndRepaint();
108 void changeCrs( const QgsCoordinateReferenceSystem &crs );
110 void aboutToShowStyleMenu();
112 void reloadTemporalProperties();
114 void onCancel();
115
116 void onTimeReferenceChange();
117
118 void urlClicked( const QUrl &url );
119 void loadMetadata();
120 void saveMetadataAs();
121
122 private:
124 QgsRendererMeshPropertiesWidget *mRendererMeshPropertiesWidget = nullptr;
125
126 QList<QgsMapLayerConfigWidget *> mConfigWidgets;
127
129 QgsMeshLayer *mMeshLayer = nullptr;
130
132 QgsMeshLayer3DRendererWidget *mMesh3DWidget = nullptr;
133
138 QgsMapLayerStyle mOldStyle;
139
140 QPushButton *mBtnStyle = nullptr;
141 QPushButton *mBtnMetadata = nullptr;
142 QAction *mActionLoadMetadata = nullptr;
143 QAction *mActionSaveMetadataAs = nullptr;
144
145 QgsMapCanvas *mCanvas = nullptr;
146 QgsMetadataWidget *mMetadataWidget = nullptr;
147
148 bool mIsMapSettingsTemporal = false;
149
150 friend class TestQgsMeshLayerPropertiesDialog;
151
152 void showHelp();
153
155};
156
157
158#endif // QGSMESHLAYERPROPERTIES_H
This class represents a coordinate reference system (CRS).
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:90
Factory class for creating custom map layer property pages.
A panel widget that can be shown in the map style dock.
Stores style information (renderer, opacity, labeling, diagrams etc.) applicable to a map layer.
Base class for all map layer types.
Definition: qgsmaplayer.h:73
Property sheet for a mesh map layer.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition: qgsmeshlayer.h:100
A widget for setup of the static dataset of a mesh layer.
A wizard to edit metadata on a map layer.
A base dialog for options and properties dialogs that offers vertical tabs.
virtual void optionsStackedWidget_CurrentChanged(int index)
Select relevant tab on current page change.
Widget for renderer properties of the mesh, contours (scalars) and vectors data associated with the m...
#define SIP_SKIP
Definition: qgis_sip.h:126
const QgsCoordinateReferenceSystem & crs