QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
mesh
qgsrenderermeshpropertieswidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrenderermeshpropertieswidget.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
#ifndef QGSRENDERERMESHPROPERTIESWIDGET_H
16
#define QGSRENDERERMESHPROPERTIESWIDGET_H
17
18
#include "ui_qgsrenderermeshpropswidgetbase.h"
19
20
#include <memory>
21
22
#include "qgis_gui.h"
23
#include "
qgsmaplayerconfigwidget.h
"
24
25
#include <QDialog>
26
#include <QObject>
27
28
SIP_NO_FILE
29
30
class
QgsMeshLayer
;
31
class
QgsMapCanvas
;
32
class
QgsSettingsEntryInteger
;
33
41
class
GUI_EXPORT
QgsRendererMeshPropertiesWidget
:
public
QgsMapLayerConfigWidget
,
private
Ui::QgsRendererMeshPropsWidgetBase
42
{
43
Q_OBJECT
44
45
public
:
46
static
const
QgsSettingsEntryInteger
*
settingsTab
;
47
54
QgsRendererMeshPropertiesWidget
(
QgsMeshLayer
*
layer
,
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
);
55
61
void
syncToLayer
(
QgsMapLayer
*mapLayer )
final
;
62
63
public
slots:
65
void
apply
()
override
;
66
67
private
slots:
68
void
onActiveScalarGroupChanged(
int
groupIndex );
69
void
onActiveVectorGroupChanged(
int
groupIndex );
70
71
void
syncToLayerPrivate();
72
73
private
:
74
QgsMeshLayer
*mMeshLayer =
nullptr
;
//not owned
75
};
76
77
#endif
// QGSRENDERERMESHPROPERTIESWIDGET_H
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
Definition
qgsmaplayerconfigwidget.cpp:40
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget::syncToLayer
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Definition
qgsmaplayerconfigwidget.h:149
QgsMapLayerConfigWidget::layer
QgsMapLayer * layer()
Returns the layer the widget is associated with.
Definition
qgsmaplayerconfigwidget.cpp:46
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition
qgsmeshlayer.h:105
QgsRendererMeshPropertiesWidget::QgsRendererMeshPropertiesWidget
QgsRendererMeshPropertiesWidget(QgsMeshLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A widget to hold the renderer properties for a mesh layer.
Definition
qgsrenderermeshpropertieswidget.cpp:36
QgsRendererMeshPropertiesWidget::settingsTab
static const QgsSettingsEntryInteger * settingsTab
Definition
qgsrenderermeshpropertieswidget.h:46
QgsSettingsEntryInteger
An integer settings entry.
Definition
qgssettingsentryimpl.h:367
SIP_NO_FILE
#define SIP_NO_FILE
Definition
fromencodedcomponenthelper.h:23
qgsmaplayerconfigwidget.h
Generated on
for QGIS API Documentation by
1.17.0