QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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.
 

Public Member Functions

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

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 19 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 23 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: