QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgspointcloudattributebyramprendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspointcloudattributebyramprendererwidget.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 /***************************************************************************
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 
18 #ifndef QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERERWIDGET_H
19 #define QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERERWIDGET_H
20 
22 #include "ui_qgspointcloudattributebyramprendererwidgetbase.h"
23 #include "qgis_gui.h"
24 
25 class QgsPointCloudLayer;
26 class QgsStyle;
27 class QLineEdit;
29 
30 #define SIP_NO_FILE
31 
33 
34 class GUI_EXPORT QgsPointCloudAttributeByRampRendererWidget: public QgsPointCloudRendererWidget, private Ui::QgsPointCloudAttributeByRampRendererWidgetBase
35 {
36  Q_OBJECT
37 
38  public:
39  QgsPointCloudAttributeByRampRendererWidget( QgsPointCloudLayer *layer, QgsStyle *style );
41 
42  QgsPointCloudRenderer *renderer() override;
43  private slots:
44 
45  void emitWidgetChanged();
46  void minMaxChanged();
47  void attributeChanged();
48  void setMinMaxFromLayer();
49 
50  private:
51  void setFromRenderer( const QgsPointCloudRenderer *r );
52 
53  bool mBlockChangedSignal = false;
54  bool mBlockMinMaxChanged = false;
55  bool mBlockSetMinMaxFromLayer = false;
56 
57  double mProviderMin = std::numeric_limits< double >::quiet_NaN();
58  double mProviderMax = std::numeric_limits< double >::quiet_NaN();
59 };
60 
62 
63 #endif // QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERERWIDGET_H
QgsPointCloudRendererWidget
Base class for point cloud 2D renderer settings widgets.
Definition: qgspointcloudrendererwidget.h:36
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition: qgspointcloudlayer.h:45
QgsPointCloudRendererWidget::renderer
virtual QgsPointCloudRenderer * renderer()=0
Returns a new instance of a renderer as defined by the settings in the widget.
QgsPointCloudAttributeByRampRenderer
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
Definition: qgspointcloudattributebyramprenderer.h:61
QgsStyle
Definition: qgsstyle.h:159
QgsPointCloudRenderer
Abstract base class for 2d point cloud renderers.
Definition: qgspointcloudrenderer.h:296
qgspointcloudrendererwidget.h