QGIS API Documentation 4.1.0-Master (467af3bbe65)
Loading...
Searching...
No Matches
qgs3dsymbolwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgs3dsymbolwidget.h
3 --------------------------------------
4 Date : July 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 QGS3DSYMBOLWIDGET_H
17#define QGS3DSYMBOLWIDGET_H
18
19#include "qgis.h"
20#include "qgis_gui.h"
21#include "qgis_sip.h"
22
23#include <QDialog>
24#include <QWidget>
25
27class QgsVectorLayer;
28class QDialogButtonBox;
29
36class GUI_EXPORT Qgs3DSymbolWidget : public QWidget
37{
38 Q_OBJECT
39
40 public:
44 Qgs3DSymbolWidget( QWidget *parent );
45
49 virtual void setSymbol( const QgsAbstract3DSymbol *symbol, QgsVectorLayer *layer ) = 0;
50
57
61 virtual QString symbolType() const = 0;
62
72
73 signals:
74
78 void changed();
79
89};
90
91
97class GUI_EXPORT Qgs3DSymbolDialog : public QDialog
98{
99 Q_OBJECT
100
101 public:
105 Qgs3DSymbolDialog( const QgsAbstract3DSymbol *symbol, QWidget *parent SIP_TRANSFERTHIS = nullptr );
106
113
117 QDialogButtonBox *buttonBox() const;
118
119 private:
120 Qgs3DSymbolWidget *mWidget = nullptr;
121 QDialogButtonBox *mButtonBox = nullptr;
122};
123
124#endif // QGS3DSYMBOLWIDGET_H
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4327
QgsAbstract3DSymbol * symbol() const
Returns a new instance of the symbol defined by the dialog.
QDialogButtonBox * buttonBox() const
Returns a reference to the dialog's button box.
Qgs3DSymbolDialog(const QgsAbstract3DSymbol *symbol, QWidget *parent=nullptr)
Constructor for Qgs3DSymbolDialog, initially showing the specified symbol.
Base class for 3D symbol configuration widgets.
virtual void setSymbol(const QgsAbstract3DSymbol *symbol, QgsVectorLayer *layer)=0
Sets the symbol to show in the widget.
virtual Qgis::MaterialRenderingTechnique renderingTechnique() const =0
Returns associated rendering technique.
Qgs3DSymbolWidget(QWidget *parent)
Constructor for Qgs3DSymbolWidget with the specified parent widget.
void renderingTechniqueChanged()
Emitted when the rendering technique associated with the symbol is changed.
void changed()
Emitted when the symbol is changed.
virtual QString symbolType() const =0
Returns the symbol type handled by the widget.
virtual QgsAbstract3DSymbol * symbol()=0
Returns a new instance of the symbol defined by the widget.
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Represents a vector layer which manages a vector based dataset.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:52
#define SIP_FACTORY
Definition qgis_sip.h:83