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