QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
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"
21
22#include <QMenu>
23#include <QStackedWidget>
24#include <QWidget>
25
27class QgsStyle;
29class QgsMapCanvas;
30
38{
39 Q_OBJECT
40 public:
41
47
54
59 virtual void setContext( const QgsSymbolWidgetContext &context );
60
66
70 const QgsPointCloudLayer *layer() const { return mLayer; }
71
72 signals:
73
74 protected:
76 QgsStyle *mStyle = nullptr;
77
80};
81
82#endif // QGSPOINTCLOUDRENDERERWIDGET_H
Map canvas is a class for displaying all GIS data types on a canvas.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Represents a map layer supporting display of point clouds.
QgsSymbolWidgetContext mContext
Context in which widget is shown.
QgsSymbolWidgetContext context() const
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expres...
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expressio...
virtual QgsPointCloudRenderer * renderer()=0
Returns a new instance of a renderer as defined by the settings in the widget.
const QgsPointCloudLayer * layer() const
Returns the point cloud layer associated with the widget.
QgsPointCloudRendererWidget(QgsPointCloudLayer *layer, QgsStyle *style)
Constructor for QgsPointCloudRendererWidget, associated with the specified layer and style database.
Abstract base class for 2d point cloud renderers.
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition qgsstyle.h:88
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
#define SIP_FACTORY
Definition qgis_sip.h:84