QGIS API Documentation 4.1.0-Master (0cdd3ae6384)
Loading...
Searching...
No Matches
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 "qgis.h"
20#include "qgis_gui.h"
21#include "qgis_sip.h"
22#include "qgspanelwidget.h"
24
25#define SIP_NO_FILE
26
28class QgsVectorLayer;
29
38{
39 Q_OBJECT
40
41 public:
45 QgsMaterialSettingsWidget( QWidget *parent );
46
51
56 virtual void setTechnique( Qgis::MaterialRenderingTechnique technique );
57
63 virtual std::unique_ptr< QgsAbstractMaterialSettings > settings() = 0 SIP_FACTORY;
64
65 public slots:
66
70 virtual void setPreviewVisible( bool visible ) = 0;
71
72 signals:
73
77 void changed();
78
79 protected:
81};
82
83#endif // QGSMATERIALSETTINGSWIDGET_H
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4375
Abstract base class for material settings.
QgsMaterialSettingsWidget(QWidget *parent)
Constructor for QgsMaterialSettingsWidget with the specified parent widget.
virtual std::unique_ptr< QgsAbstractMaterialSettings > settings()=0
Returns a new instance of the material settings defined by the widget.
void changed()
Emitted when the material definition is changed.
virtual void setSettings(const QgsAbstractMaterialSettings *settings, QgsVectorLayer *layer)=0
Sets the material settings to show in the widget.
virtual void setPreviewVisible(bool visible)=0
Sets whether the material preview widget should be visible.
QgsPropertyCollection mPropertyCollection
virtual void setTechnique(Qgis::MaterialRenderingTechnique technique)
Sets the rendering technique which will be used for the symbol.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.
Represents a vector layer which manages a vector based dataset.
#define SIP_FACTORY
Definition qgis_sip.h:83