QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgspointcloudrendererpropertieswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspointcloudrendererpropertieswidget.h
3  ---------------------
4  begin : November 2020
5  copyright : (C) 2020 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 QGSPOINTCLOUDRENDERERPROPERTIESWIDGET_H
17 #define QGSPOINTCLOUDRENDERERPROPERTIESWIDGET_H
18 
19 #include "qgis_sip.h"
20 #include "qgis_gui.h"
21 
22 #include "ui_qgspointcloudrendererpropsdialogbase.h"
24 
25 class QgsPointCloudLayer;
26 class QgsStyle;
28 class QgsMapCanvas;
30 class QgsMessageBar;
31 
38 class GUI_EXPORT QgsPointCloudRendererPropertiesWidget : public QgsMapLayerConfigWidget, private Ui::QgsPointCloudRendererPropsDialogBase
39 {
40  Q_OBJECT
41 
42  public:
43 
47  QgsPointCloudRendererPropertiesWidget( QgsPointCloudLayer *layer, QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS = nullptr );
48 
52  void setContext( const QgsSymbolWidgetContext &context );
53 
54  void syncToLayer( QgsMapLayer *layer ) override;
55  void setDockMode( bool dockMode ) override;
56 
57  public slots:
58 
59  void apply() override;
60 
61  private slots:
62 
63  void rendererChanged();
64 
65  void emitWidgetChanged();
66 
67  private:
68 
69  QgsPointCloudLayer *mLayer = nullptr;
70  QgsStyle *mStyle = nullptr;
71 
72  QgsPointCloudRendererWidget *mActiveWidget = nullptr;
73 
74  QgsMapCanvas *mMapCanvas = nullptr;
75  QgsMessageBar *mMessageBar = nullptr;
76 
77  bool mBlockChangedSignal = false;
78 
79 };
80 
81 
82 #endif // QGSPOINTCLOUDRENDERERPROPERTIESWIDGET_H
QgsPointCloudRendererWidget
Base class for point cloud 2D renderer settings widgets.
Definition: qgspointcloudrendererwidget.h:36
QgsPanelWidget::setDockMode
virtual void setDockMode(bool dockMode)
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
Definition: qgspanelwidget.cpp:44
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition: qgspointcloudlayer.h:45
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition: qgssymbolwidgetcontext.h:35
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget
A panel widget that can be shown in the map style dock.
Definition: qgsmaplayerconfigwidget.h:115
qgis_sip.h
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:60
QgsStyle
Definition: qgsstyle.h:159
qgsmaplayerconfigwidget.h
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition: qgsmaplayer.h:72
QgsMapLayerConfigWidget::syncToLayer
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Definition: qgsmaplayerconfigwidget.h:142
QgsPointCloudRendererPropertiesWidget
A generic widget for setting the 2D renderer for a point cloud layer.
Definition: qgspointcloudrendererpropertieswidget.h:38
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53