QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
pointcloud
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 "ui_qgspointcloudrendererpropsdialogbase.h"
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsmaplayerconfigwidget.h
"
24
#include "
qgspropertycollection.h
"
25
#include "
qgssymbolwidgetcontext.h
"
26
27
class
QgsPointCloudLayer
;
28
class
QgsStyle
;
29
class
QgsPointCloudRendererWidget
;
30
class
QgsMapCanvas
;
31
class
QgsMessageBar
;
32
39
class
GUI_EXPORT
QgsPointCloudRendererPropertiesWidget
:
public
QgsMapLayerConfigWidget
,
public
QgsExpressionContextGenerator
,
private
Ui::QgsPointCloudRendererPropsDialogBase
40
{
41
Q_OBJECT
42
43
public
:
47
QgsPointCloudRendererPropertiesWidget
(
QgsPointCloudLayer
*
layer
,
QgsStyle
*style, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
48
52
void
setContext
(
const
QgsSymbolWidgetContext
&context );
53
54
void
syncToLayer
(
QgsMapLayer
*
layer
)
final
;
55
void
setDockMode
(
bool
dockMode
)
final
;
56
QgsExpressionContext
createExpressionContext
()
const override
;
57
58
public
slots:
59
60
void
apply
()
override
;
61
62
private
slots:
63
64
void
rendererChanged();
65
66
void
emitWidgetChanged();
67
68
void
updateDataDefinedProperty();
69
70
private
:
71
// for 3D rendering, see values in qgspointcloud3dsymbolwidget.h
72
const
QMap<double, QString> mOverviewSwitchingScaleMap { { 5.0,
"Much earlier"
}, { 2.0,
"Earlier"
}, { 1.0,
"Normal"
}, { 0.5,
"Later"
} };
73
74
static
void
initRendererWidgetFunctions();
75
void
setOverviewSwitchingScale(
double
scale );
76
double
overviewSwitchingScale()
const
;
77
78
QgsPointCloudLayer
*mLayer =
nullptr
;
79
QgsStyle
*mStyle =
nullptr
;
80
81
QgsPointCloudRendererWidget
*mActiveWidget =
nullptr
;
82
83
QgsMapCanvas
*mMapCanvas =
nullptr
;
84
QgsMessageBar
*mMessageBar =
nullptr
;
85
86
bool
mBlockChangedSignal =
false
;
87
88
QgsPropertyCollection
mDataDefinedProperties;
89
90
QgsSymbolWidgetContext
mContext;
91
};
92
93
94
#endif
// QGSPOINTCLOUDRENDERERPROPERTIESWIDGET_H
QgsExpressionContextGenerator
Abstract interface for generating an expression context.
Definition
qgsexpressioncontextgenerator.h:36
QgsExpressionContextGenerator::createExpressionContext
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition
qgsexpressioncontext.h:491
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
Definition
qgsmaplayerconfigwidget.cpp:40
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget::syncToLayer
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Definition
qgsmaplayerconfigwidget.h:149
QgsMapLayerConfigWidget::layer
QgsMapLayer * layer()
Returns the layer the widget is associated with.
Definition
qgsmaplayerconfigwidget.cpp:46
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsPanelWidget::dockMode
bool dockMode() const
Returns the dock mode state.
Definition
qgspanelwidget.h:94
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:74
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition
qgspointcloudlayer.h:49
QgsPointCloudRendererPropertiesWidget::setContext
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
Definition
qgspointcloudrendererpropertieswidget.cpp:215
QgsPointCloudRendererPropertiesWidget::QgsPointCloudRendererPropertiesWidget
QgsPointCloudRendererPropertiesWidget(QgsPointCloudLayer *layer, QgsStyle *style, QWidget *parent=nullptr)
Constructor for QgsPointCloudRendererPropertiesWidget, associated with the specified layer and style ...
Definition
qgspointcloudrendererpropertieswidget.cpp:81
QgsPointCloudRendererWidget
Base class for point cloud 2D renderer settings widgets.
Definition
qgspointcloudrendererwidget.h:38
QgsPropertyCollection
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.
Definition
qgspropertycollection.h:348
QgsStyle
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition
qgsstyle.h:91
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition
qgssymbolwidgetcontext.h:35
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsmaplayerconfigwidget.h
qgspropertycollection.h
qgssymbolwidgetcontext.h
Generated on
for QGIS API Documentation by
1.17.0