QGIS API Documentation 3.43.0-Master (c67cf405802)
qgstiledscenerendererpropertieswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenerendererpropertieswidget.h
3 ---------------------
4 begin : August 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson 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 QGSTILEDSCENERENDERERPROPERTIESWIDGET_H
17#define QGSTILEDSCENERENDERERPROPERTIESWIDGET_H
18
19#include "qgis_sip.h"
20#include "qgis_gui.h"
21
22#include "ui_qgstiledscenerendererpropsdialogbase.h"
24
26class QgsStyle;
28class QgsMapCanvas;
30class QgsMessageBar;
31
38class GUI_EXPORT QgsTiledSceneRendererPropertiesWidget : public QgsMapLayerConfigWidget, private Ui::QgsTiledSceneRendererPropsDialogBase
39{
40 Q_OBJECT
41
42 public:
46 QgsTiledSceneRendererPropertiesWidget( QgsTiledSceneLayer *layer, QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS = nullptr );
47
51 void setContext( const QgsSymbolWidgetContext &context );
52
53 void syncToLayer( QgsMapLayer *layer ) final;
54 void setDockMode( bool dockMode ) final;
55
56 public slots:
57
58 void apply() override;
59
60 private slots:
61
62 void rendererChanged();
63
64 void emitWidgetChanged();
65
66 private:
67 static void initRendererWidgetFunctions();
68
69 QgsTiledSceneLayer *mLayer = nullptr;
70 QgsStyle *mStyle = nullptr;
71
72 QgsTiledSceneRendererWidget *mActiveWidget = nullptr;
73
74 QgsMapCanvas *mMapCanvas = nullptr;
75 QgsMessageBar *mMessageBar = nullptr;
76
77 bool mBlockChangedSignal = false;
78};
79
80
81#endif // QGSTILEDSCENERENDERERPROPERTIESWIDGET_H
Map canvas is a class for displaying all GIS data types on a canvas.
A panel widget that can be shown in the map style dock.
virtual void apply()=0
Called when changes to the layer need to be made.
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Base class for all map layer types.
Definition qgsmaplayer.h:77
A bar for displaying non-blocking messages to the user.
virtual void setDockMode(bool dockMode)
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition qgsstyle.h:88
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Represents a map layer supporting display of tiled scene objects.
A generic widget for setting the 2D renderer for a tiled scene layer.
Base class for tiled scene 2D renderer settings widgets.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53