QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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"
22#include "qgsguiutils.h"
23#include "qgis_gui.h"
24
25class QgsMapLayer;
26class QgsMapCanvas;
29class QgsMeshLayer3DRendererWidget;
32
42class GUI_EXPORT QgsMeshLayerProperties : public QgsLayerPropertiesDialog, private Ui::QgsMeshLayerPropertiesBase
43{
44 Q_OBJECT
45
46 public:
54 QgsMeshLayerProperties( QgsMapLayer *lyr, QgsMapCanvas *canvas, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
55
61 Q_DECL_DEPRECATED void saveDefaultStyle() SIP_DEPRECATED;
62
68 Q_DECL_DEPRECATED void loadStyle() SIP_DEPRECATED;
69
75 Q_DECL_DEPRECATED void saveStyleAs() SIP_DEPRECATED;
76
77 protected slots:
78 void syncToLayer() FINAL;
79 void apply() FINAL;
80 void rollback() FINAL;
81
82 private slots:
83
85 void syncAndRepaint();
87 void changeCrs( const QgsCoordinateReferenceSystem &crs );
89 void aboutToShowStyleMenu();
91 void reloadTemporalProperties();
92
93 void onTimeReferenceChange();
94
95 private:
97 QgsRendererMeshPropertiesWidget *mRendererMeshPropertiesWidget = nullptr;
98
100 QgsMeshLayer *mMeshLayer = nullptr;
101
103 QgsMeshLayer3DRendererWidget *mMesh3DWidget = nullptr;
104
106 QgsMeshLabelingWidget *mLabelingDialog = nullptr;
107
108 QAction *mActionLoadMetadata = nullptr;
109 QAction *mActionSaveMetadataAs = nullptr;
110
111 QgsMetadataWidget *mMetadataWidget = nullptr;
112
113 bool mIsMapSettingsTemporal = false;
114
115 friend class TestQgsMeshLayerPropertiesDialog;
116
117 void showHelp();
118
120};
121
122
123#endif // QGSMESHLAYERPROPERTIES_H
This class represents a coordinate reference system (CRS).
Base class for "layer properties" dialogs, containing common utilities for handling functionality in ...
virtual void rollback()
Rolls back changes made to the layer.
void saveStyleAs()
Saves a style when appriate button is pressed.
virtual void apply()=0
Applies the dialog settings to the layer.
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
void loadStyle()
Triggers a dialog to load a saved style.
void saveDefaultStyle()
Saves the default style when appropriate button is pressed.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
Definition qgsmaplayer.h:76
Master widget for configuration of labeling of a mesh layer.
Property sheet for a mesh map layer.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
A widget for setup of the static dataset of a mesh layer.
A wizard to edit metadata on a map layer.
Widget for renderer properties of the mesh, contours (scalars) and vectors data associated with the m...
#define SIP_DEPRECATED
Definition qgis_sip.h:106
#define FINAL
Definition qgis_sip.h:242
const QgsCoordinateReferenceSystem & crs