QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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
21#include "ui_qgspointcloudattributebyramprendererwidgetbase.h"
22
23#include "qgis_gui.h"
25
27class QgsStyle;
28class QLineEdit;
30
31#define SIP_NO_FILE
32
34
35class GUI_EXPORT QgsPointCloudAttributeByRampRendererWidget : public QgsPointCloudRendererWidget, private Ui::QgsPointCloudAttributeByRampRendererWidgetBase
36{
37 Q_OBJECT
38
39 public:
40 QgsPointCloudAttributeByRampRendererWidget( QgsPointCloudLayer *layer, QgsStyle *style );
42
44 private slots:
45
46 void emitWidgetChanged();
47 void minMaxChanged();
48 void attributeChanged();
49 void setMinMaxFromLayer();
50
51 private:
52 void setFromRenderer( const QgsPointCloudRenderer *r );
53
54 bool mBlockChangedSignal = false;
55 bool mBlockMinMaxChanged = false;
56 bool mBlockSetMinMaxFromLayer = false;
57
58 double mProviderMin = std::numeric_limits<double>::quiet_NaN();
59 double mProviderMax = std::numeric_limits<double>::quiet_NaN();
60};
61
63
64#endif // QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERERWIDGET_H
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
Represents a map layer supporting display of point clouds.
Base class for point cloud 2D renderer settings widgets.
virtual QgsPointCloudRenderer * renderer()=0
Returns a new instance of a renderer as defined by the settings in the widget.
Abstract base class for 2d point cloud renderers.
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition qgsstyle.h:88