QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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
#include "
qgspanelwidget.h
"
23
24
#include <QDialog>
25
#include <QWidget>
26
27
class
QgsAbstract3DSymbol
;
28
class
QgsVectorLayer
;
29
class
QDialogButtonBox;
30
37
class
GUI_EXPORT
Qgs3DSymbolWidget
:
public
QgsPanelWidget
38
{
39
Q_OBJECT
40
41
public
:
45
Qgs3DSymbolWidget
( QWidget *parent );
46
50
virtual
void
setSymbol
(
const
QgsAbstract3DSymbol
*
symbol
,
QgsVectorLayer
*layer ) = 0;
51
57
virtual
QgsAbstract3DSymbol
*
symbol
() = 0
SIP_FACTORY
;
58
62
virtual
QString
symbolType
()
const
= 0;
63
72
virtual
Qgis::MaterialRenderingTechnique
renderingTechnique
()
const
= 0;
73
80
virtual
void
setMode
(
Qgis::MaterialWidgetMode
mode ) = 0;
81
82
signals:
83
92
void
renderingTechniqueChanged
();
93
};
94
95
101
class
GUI_EXPORT
Qgs3DSymbolDialog
:
public
QDialog
102
{
103
Q_OBJECT
104
105
public
:
109
Qgs3DSymbolDialog
(
const
QgsAbstract3DSymbol
*
symbol
, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
110
116
QgsAbstract3DSymbol
*
symbol
()
const
SIP_FACTORY
;
117
121
QDialogButtonBox *
buttonBox
()
const
;
122
123
private
:
124
Qgs3DSymbolWidget
*mWidget =
nullptr
;
125
QDialogButtonBox *mButtonBox =
nullptr
;
126
};
127
128
#endif
// QGS3DSYMBOLWIDGET_H
Qgis::MaterialWidgetMode
MaterialWidgetMode
Modes for material settings widgets.
Definition
qgis.h:4471
Qgis::MaterialRenderingTechnique
MaterialRenderingTechnique
Material rendering techniques.
Definition
qgis.h:4453
Qgs3DSymbolDialog::symbol
QgsAbstract3DSymbol * symbol() const
Returns a new instance of the symbol defined by the dialog.
Definition
qgs3dsymbolwidget.cpp:62
Qgs3DSymbolDialog::buttonBox
QDialogButtonBox * buttonBox() const
Returns a reference to the dialog's button box.
Definition
qgs3dsymbolwidget.cpp:67
Qgs3DSymbolDialog::Qgs3DSymbolDialog
Qgs3DSymbolDialog(const QgsAbstract3DSymbol *symbol, QWidget *parent=nullptr)
Constructor for Qgs3DSymbolDialog, initially showing the specified symbol.
Definition
qgs3dsymbolwidget.cpp:36
Qgs3DSymbolWidget
Base class for 3D symbol configuration widgets.
Definition
qgs3dsymbolwidget.h:38
Qgs3DSymbolWidget::setSymbol
virtual void setSymbol(const QgsAbstract3DSymbol *symbol, QgsVectorLayer *layer)=0
Sets the symbol to show in the widget.
Qgs3DSymbolWidget::renderingTechnique
virtual Qgis::MaterialRenderingTechnique renderingTechnique() const =0
Returns associated rendering technique.
Qgs3DSymbolWidget::setMode
virtual void setMode(Qgis::MaterialWidgetMode mode)=0
Sets the widget mode, which controls whether the compact or full set of material settings controls ar...
Qgs3DSymbolWidget::Qgs3DSymbolWidget
Qgs3DSymbolWidget(QWidget *parent)
Constructor for Qgs3DSymbolWidget with the specified parent widget.
Definition
qgs3dsymbolwidget.cpp:32
Qgs3DSymbolWidget::renderingTechniqueChanged
void renderingTechniqueChanged()
Emitted when the rendering technique associated with the symbol is changed.
Qgs3DSymbolWidget::symbolType
virtual QString symbolType() const =0
Returns the symbol type handled by the widget.
Qgs3DSymbolWidget::symbol
virtual QgsAbstract3DSymbol * symbol()=0
Returns a new instance of the symbol defined by the widget.
QgsAbstract3DSymbol
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Definition
qgsabstract3dsymbol.h:48
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgspanelwidget.h
Generated on
for QGIS API Documentation by
1.17.0