QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
mesh
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
22
#include "qgis_gui.h"
23
#include "
qgsguiutils.h
"
24
#include "
qgslayerpropertiesdialog.h
"
25
26
class
QgsMapLayer
;
27
class
QgsMapCanvas
;
28
class
QgsRendererMeshPropertiesWidget
;
29
class
QgsMeshLabelingWidget
;
30
class
QgsMeshLayer3DRendererWidget;
31
class
QgsMeshStaticDatasetWidget
;
32
class
QgsMetadataWidget
;
33
44
class
GUI_EXPORT
QgsMeshLayerProperties
:
public
QgsLayerPropertiesDialog
,
private
Ui::QgsMeshLayerPropertiesBase
45
{
46
Q_OBJECT
47
48
public
:
56
QgsMeshLayerProperties
(
QgsMapLayer
*lyr,
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
57
63
Q_DECL_DEPRECATED
void
saveDefaultStyle
()
SIP_DEPRECATED
;
64
70
Q_DECL_DEPRECATED
void
loadStyle
()
SIP_DEPRECATED
;
71
77
Q_DECL_DEPRECATED
void
saveStyleAs
()
SIP_DEPRECATED
;
78
79
protected
slots:
80
void
syncToLayer
()
final
;
81
void
apply
()
final
;
82
void
rollback
()
final
;
83
84
private
slots:
85
87
void
syncAndRepaint();
89
void
changeCrs(
const
QgsCoordinateReferenceSystem
&crs );
91
void
aboutToShowStyleMenu();
93
void
reloadTemporalProperties();
94
95
void
onTimeReferenceChange();
96
97
private
:
99
QgsRendererMeshPropertiesWidget
*mRendererMeshPropertiesWidget =
nullptr
;
100
102
QgsMeshLayer
*mMeshLayer =
nullptr
;
103
105
QgsMeshLayer3DRendererWidget *mMesh3DWidget =
nullptr
;
106
108
QgsMeshLabelingWidget
*mLabelingDialog =
nullptr
;
109
110
QAction *mActionLoadMetadata =
nullptr
;
111
QAction *mActionSaveMetadataAs =
nullptr
;
112
113
QgsMetadataWidget
*mMetadataWidget =
nullptr
;
114
115
bool
mIsMapSettingsTemporal =
false
;
116
117
friend
class
TestQgsMeshLayerPropertiesDialog
;
118
119
void
showHelp();
120
121
QgsCoordinateReferenceSystem
mBackupCrs;
122
};
123
124
125
#endif
// QGSMESHLAYERPROPERTIES_H
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsLayerPropertiesDialog::rollback
virtual void rollback()
Rolls back changes made to the layer.
Definition
qgslayerpropertiesdialog.cpp:593
QgsLayerPropertiesDialog::saveStyleAs
void saveStyleAs()
Saves a style when appriate button is pressed.
Definition
qgslayerpropertiesdialog.cpp:395
QgsLayerPropertiesDialog::apply
virtual void apply()=0
Applies the dialog settings to the layer.
QgsLayerPropertiesDialog::syncToLayer
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
QgsLayerPropertiesDialog::loadStyle
void loadStyle()
Triggers a dialog to load a saved style.
Definition
qgslayerpropertiesdialog.cpp:487
QgsLayerPropertiesDialog::QgsLayerPropertiesDialog
QgsLayerPropertiesDialog(QgsMapLayer *layer, QgsMapCanvas *canvas, const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor for QgsLayerPropertiesDialog.
Definition
qgslayerpropertiesdialog.cpp:44
QgsLayerPropertiesDialog::saveDefaultStyle
void saveDefaultStyle()
Saves the default style when appropriate button is pressed.
Definition
qgslayerpropertiesdialog.cpp:344
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMeshLabelingWidget
Master widget for configuration of labeling of a mesh layer.
Definition
qgsmeshlabelingwidget.h:45
QgsMeshLayerProperties::TestQgsMeshLayerPropertiesDialog
friend class TestQgsMeshLayerPropertiesDialog
Definition
qgsmeshlayerproperties.h:117
QgsMeshLayerProperties::QgsMeshLayerProperties
QgsMeshLayerProperties(QgsMapLayer *lyr, QgsMapCanvas *canvas, QWidget *parent=nullptr, Qt::WindowFlags=QgsGuiUtils::ModalDialogFlags)
Constructor.
Definition
qgsmeshlayerproperties.cpp:49
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition
qgsmeshlayer.h:105
QgsMeshStaticDatasetWidget
A widget for setup of the static dataset of a mesh layer.
Definition
qgsmeshstaticdatasetwidget.h:64
QgsMetadataWidget
A wizard to edit metadata on a map layer.
Definition
qgsmetadatawidget.h:42
QgsRendererMeshPropertiesWidget
Widget for renderer properties of the mesh, contours (scalars) and vectors data associated with the m...
Definition
qgsrenderermeshpropertieswidget.h:42
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
qgsguiutils.h
qgslayerpropertiesdialog.h
Generated on
for QGIS API Documentation by
1.17.0