QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
pointcloud
qgspointcloudrgbrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointcloudrgbrendererwidget.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 QGSPOINTCLOUDRGBRENDERERWIDGET_H
19
#define QGSPOINTCLOUDRGBRENDERERWIDGET_H
20
21
#include "ui_qgspointcloudrgbrendererwidgetbase.h"
22
23
#include "qgis_gui.h"
24
#include "
qgspointcloudrendererwidget.h
"
25
26
#define SIP_NO_FILE
27
28
class
QgsContrastEnhancement
;
29
class
QgsPointCloudLayer
;
30
class
QgsStyle
;
31
class
QLineEdit;
32
class
QgsPointCloudRgbRenderer
;
33
34
36
37
class
GUI_EXPORT QgsPointCloudRgbRendererWidget :
public
QgsPointCloudRendererWidget
,
private
Ui::QgsPointCloudRgbRendererWidgetBase
38
{
39
Q_OBJECT
40
41
public
:
42
QgsPointCloudRgbRendererWidget(
QgsPointCloudLayer
*layer,
QgsStyle
*style );
43
static
QgsPointCloudRendererWidget
*create(
QgsPointCloudLayer
*layer,
QgsStyle
*style,
QgsPointCloudRenderer
* );
44
45
QgsPointCloudRenderer
*
renderer
()
override
;
46
private
slots:
47
48
void
mRedMinLineEdit_textChanged(
const
QString & );
49
void
mRedMaxLineEdit_textChanged(
const
QString & );
50
void
mGreenMinLineEdit_textChanged(
const
QString & );
51
void
mGreenMaxLineEdit_textChanged(
const
QString & );
52
void
mBlueMinLineEdit_textChanged(
const
QString & );
53
void
mBlueMaxLineEdit_textChanged(
const
QString & );
54
55
void
emitWidgetChanged();
56
57
void
redAttributeChanged();
58
void
greenAttributeChanged();
59
void
blueAttributeChanged();
60
61
private
:
62
void
setFromRenderer(
const
QgsPointCloudRenderer
*r );
63
64
void
createValidators();
65
void
setCustomMinMaxValues(
QgsPointCloudRgbRenderer
*r );
67
void
setMinMaxValue(
const
QgsContrastEnhancement
*ce, QLineEdit *minEdit, QLineEdit *maxEdit );
68
69
void
minMaxModified();
70
71
bool
mBlockChangedSignal =
false
;
72
int
mDisableMinMaxWidgetRefresh = 0;
73
};
74
76
77
#endif
// QGSPOINTCLOUDRGBRENDERERWIDGET_H
QgsContrastEnhancement
Handles contrast enhancement and clipping.
Definition
qgscontrastenhancement.h:45
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
QgsPointCloudRgbRenderer
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
Definition
qgspointcloudrgbrenderer.h:73
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