QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 #include "qgspropertycollection.h"
24 
25 #define SIP_NO_FILE
26 
29 class QgsVectorLayer;
30 
38 class GUI_EXPORT QgsMaterialSettingsWidget : public QWidget
39 {
40  Q_OBJECT
41 
42  public:
43 
47  QgsMaterialSettingsWidget( QWidget *parent );
48 
52  virtual void setSettings( const QgsAbstractMaterialSettings *settings, QgsVectorLayer *layer ) = 0;
53 
58  virtual void setTechnique( QgsMaterialSettingsRenderingTechnique technique );
59 
65  virtual QgsAbstractMaterialSettings *settings() = 0 SIP_FACTORY;
66 
67  signals:
68 
72  void changed();
73 
74  protected:
76 };
77 
78 #endif // QGSMATERIALSETTINGSWIDGET_H
QgsMaterialSettingsWidget::mPropertyCollection
QgsPropertyCollection mPropertyCollection
Definition: qgsmaterialsettingswidget.h:75
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsMaterialSettingsWidget
Base class for 3D material settings widgets.
Definition: qgsmaterialsettingswidget.h:38
QgsAbstractMaterialSettings
Abstract base class for material settings.
Definition: qgsabstractmaterialsettings.h:114
qgis_sip.h
QgsMaterialSettingsRenderingTechnique
QgsMaterialSettingsRenderingTechnique
Material rendering techniques.
Definition: qgsabstractmaterialsettings.h:43
QgsPropertyCollection
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
Definition: qgspropertycollection.h:318
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:391
qgspropertycollection.h
SIP_EXTERNAL
#define SIP_EXTERNAL
Definition: qgis_sip.h:116