QGIS API Documentation  3.17.0-Master (a84647cf30)
Signals | Public Member Functions | Protected Attributes | List of all members
QgsMaterialSettingsWidget Class Referenceabstract

Base class for 3D material settings widgets. More...

#include <qgsmaterialsettingswidget.h>

Inheritance diagram for QgsMaterialSettingsWidget:
Inheritance graph
[legend]

Signals

void changed ()
 Emitted when the material definition is changed. More...
 

Public Member Functions

 QgsMaterialSettingsWidget (QWidget *parent)
 Constructor for QgsMaterialSettingsWidget with the specified parent widget. More...
 
virtual void setSettings (const QgsAbstractMaterialSettings *settings, QgsVectorLayer *layer)=0
 Sets the material settings to show in the widget. More...
 
virtual void setTechnique (QgsMaterialSettingsRenderingTechnique technique)
 Sets the rendering technique which will be used for the symbol. More...
 
virtual QgsAbstractMaterialSettingssettings ()=0
 Returns a new instance of the material settings defined by the widget. More...
 

Protected Attributes

QgsPropertyCollection mPropertyCollection
 

Detailed Description

Base class for 3D material settings widgets.

Note
Not available in Python bindings
Since
QGIS 3.16

Definition at line 38 of file qgsmaterialsettingswidget.h.

Constructor & Destructor Documentation

◆ QgsMaterialSettingsWidget()

QgsMaterialSettingsWidget::QgsMaterialSettingsWidget ( QWidget *  parent)

Constructor for QgsMaterialSettingsWidget with the specified parent widget.

Definition at line 18 of file qgsmaterialsettingswidget.cpp.

Member Function Documentation

◆ changed

void QgsMaterialSettingsWidget::changed ( )
signal

Emitted when the material definition is changed.

◆ setSettings()

virtual void QgsMaterialSettingsWidget::setSettings ( const QgsAbstractMaterialSettings settings,
QgsVectorLayer layer 
)
pure virtual

Sets the material settings to show in the widget.

◆ setTechnique()

void QgsMaterialSettingsWidget::setTechnique ( QgsMaterialSettingsRenderingTechnique  technique)
virtual

Sets the rendering technique which will be used for the symbol.

Allows the widget to adapt available settings for the specified technique.

Definition at line 22 of file qgsmaterialsettingswidget.cpp.

◆ settings()

virtual QgsAbstractMaterialSettings* QgsMaterialSettingsWidget::settings ( )
pure virtual

Returns a new instance of the material settings defined by the widget.

Caller takes ownership of the returned settings.

Member Data Documentation

◆ mPropertyCollection

QgsPropertyCollection QgsMaterialSettingsWidget::mPropertyCollection
protected

Definition at line 75 of file qgsmaterialsettingswidget.h.


The documentation for this class was generated from the following files: