QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
pointcloud
qgspointcloudrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointcloudrendererwidget.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
#ifndef QGSPOINTCLOUDRENDERERWIDGET_H
16
#define QGSPOINTCLOUDRENDERERWIDGET_H
17
18
#include "
qgis_sip.h
"
19
#include "
qgspanelwidget.h
"
20
#include "
qgssymbolwidgetcontext.h
"
21
22
#include <QMenu>
23
#include <QStackedWidget>
24
#include <QWidget>
25
26
class
QgsPointCloudLayer
;
27
class
QgsStyle
;
28
class
QgsPointCloudRenderer
;
29
class
QgsMapCanvas
;
30
37
class
GUI_EXPORT
QgsPointCloudRendererWidget
:
public
QgsPanelWidget
38
{
39
Q_OBJECT
40
public
:
45
QgsPointCloudRendererWidget
(
QgsPointCloudLayer
*
layer
,
QgsStyle
*style );
46
52
virtual
QgsPointCloudRenderer
*
renderer
() = 0
SIP_FACTORY
;
53
58
virtual
void
setContext
(
const
QgsSymbolWidgetContext
&
context
);
59
64
QgsSymbolWidgetContext
context
()
const
;
65
69
const
QgsPointCloudLayer
*
layer
()
const
{
return
mLayer
; }
70
71
signals:
72
73
protected
:
74
QgsPointCloudLayer
*
mLayer
=
nullptr
;
75
QgsStyle
*
mStyle
=
nullptr
;
76
78
QgsSymbolWidgetContext
mContext
;
79
};
80
81
#endif
// QGSPOINTCLOUDRENDERERWIDGET_H
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition
qgspointcloudlayer.h:49
QgsPointCloudRendererWidget::mStyle
QgsStyle * mStyle
Definition
qgspointcloudrendererwidget.h:75
QgsPointCloudRendererWidget::mLayer
QgsPointCloudLayer * mLayer
Definition
qgspointcloudrendererwidget.h:74
QgsPointCloudRendererWidget::mContext
QgsSymbolWidgetContext mContext
Context in which widget is shown.
Definition
qgspointcloudrendererwidget.h:78
QgsPointCloudRendererWidget::context
QgsSymbolWidgetContext context() const
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expres...
Definition
qgspointcloudrendererwidget.cpp:29
QgsPointCloudRendererWidget::setContext
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expressio...
Definition
qgspointcloudrendererwidget.cpp:24
QgsPointCloudRendererWidget::renderer
virtual QgsPointCloudRenderer * renderer()=0
Returns a new instance of a renderer as defined by the settings in the widget.
QgsPointCloudRendererWidget::layer
const QgsPointCloudLayer * layer() const
Returns the point cloud layer associated with the widget.
Definition
qgspointcloudrendererwidget.h:69
QgsPointCloudRendererWidget::QgsPointCloudRendererWidget
QgsPointCloudRendererWidget(QgsPointCloudLayer *layer, QgsStyle *style)
Constructor for QgsPointCloudRendererWidget, associated with the specified layer and style database.
Definition
qgspointcloudrendererwidget.cpp:19
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
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition
qgssymbolwidgetcontext.h:35
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgspanelwidget.h
qgssymbolwidgetcontext.h
Generated on
for QGIS API Documentation by
1.17.0