QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsmaterialsettingswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmaterialsettingswidget.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 QGSMATERIALSETTINGSWIDGET_H
17 #define QGSMATERIALSETTINGSWIDGET_H
18 
19 #include <QWidget>
20 #include "qgis_gui.h"
21 #include "qgis_sip.h"
22 
23 #define SIP_NO_FILE
24 
27 class QgsVectorLayer;
28 
36 class GUI_EXPORT QgsMaterialSettingsWidget : public QWidget
37 {
38  Q_OBJECT
39 
40  public:
41 
45  QgsMaterialSettingsWidget( QWidget *parent );
46 
50  virtual void setSettings( const QgsAbstractMaterialSettings *settings, QgsVectorLayer *layer ) = 0;
51 
56  virtual void setTechnique( QgsMaterialSettingsRenderingTechnique technique );
57 
64 
65  signals:
66 
70  void changed();
71 };
72 
73 #endif // QGSMATERIALSETTINGSWIDGET_H
QgsMaterialSettingsWidget::setSettings
virtual void setSettings(const QgsAbstractMaterialSettings *settings, QgsVectorLayer *layer)=0
Sets the material settings to show in the widget.
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsMaterialSettingsWidget
Base class for 3D material settings widgets.
Definition: qgsmaterialsettingswidget.h:37
QgsMaterialSettingsWidget::settings
virtual QgsAbstractMaterialSettings * settings()=0
Returns a new instance of the material settings defined by the widget.
QgsAbstractMaterialSettings
3 Abstract base class for material settings.
Definition: qgsabstractmaterialsettings.h:105
qgis_sip.h
QgsMaterialSettingsRenderingTechnique
QgsMaterialSettingsRenderingTechnique
Material rendering techniques 3.
Definition: qgsabstractmaterialsettings.h:36
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:387
SIP_EXTERNAL
#define SIP_EXTERNAL
Definition: qgis_sip.h:116
QgsMaterialSettingsWidget::changed
void changed()
Emitted when the material definition is changed.