QGIS API Documentation 4.1.0-Master (01362494303)
Loading...
Searching...
No Matches
QgsMaterialSettingsWidget Class Referenceabstract

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

#include <qgsmaterialsettingswidget.h>

Inheritance diagram for QgsMaterialSettingsWidget:

Public Slots

virtual void setPreviewVisible (bool visible)=0
 Sets whether the material preview widget should be visible.

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 (Qgis::MaterialRenderingTechnique technique)
 Sets the rendering technique which will be used for the symbol.
virtual std::unique_ptr< 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 20 of file qgsmaterialsettingswidget.cpp.

Member Function Documentation

◆ changed

void QgsMaterialSettingsWidget::changed ( )
signal

Emitted when the material definition is changed.

◆ setPreviewVisible

virtual void QgsMaterialSettingsWidget::setPreviewVisible ( bool visible)
pure virtualslot

Sets whether the material preview widget should be visible.

◆ 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 ( Qgis::MaterialRenderingTechnique 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 24 of file qgsmaterialsettingswidget.cpp.

◆ settings()

virtual std::unique_ptr< 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 81 of file qgsmaterialsettingswidget.h.


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