QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 <QWidget>
19 #include <QMenu>
20 #include <QStackedWidget>
21 #include "qgis_sip.h"
22 #include "qgspanelwidget.h"
23 #include "qgssymbolwidgetcontext.h"
24 
25 class QgsPointCloudLayer;
26 class QgsStyle;
28 class QgsMapCanvas;
29 
37 {
38  Q_OBJECT
39  public:
40 
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 
79 
80 };
81 
82 #endif // QGSPOINTCLOUDRENDERERWIDGET_H
QgsPointCloudRendererWidget
Base class for point cloud 2D renderer settings widgets.
Definition: qgspointcloudrendererwidget.h:36
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition: qgspointcloudlayer.h:45
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition: qgssymbolwidgetcontext.h:35
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
qgssymbolwidgetcontext.h
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition: qgspanelwidget.h:29
qgis_sip.h
QgsPointCloudRendererWidget::layer
const QgsPointCloudLayer * layer() const
Returns the point cloud layer associated with the widget.
Definition: qgspointcloudrendererwidget.h:69
QgsPointCloudRendererWidget::mContext
QgsSymbolWidgetContext mContext
Context in which widget is shown.
Definition: qgspointcloudrendererwidget.h:78
QgsStyle
Definition: qgsstyle.h:159
QgsPointCloudRenderer
Abstract base class for 2d point cloud renderers.
Definition: qgspointcloudrenderer.h:296
qgspanelwidget.h