QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsnullmaterialsettings.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsnullmaterialsettings.h
3 --------------------------------------
4 Date : November 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
17#ifndef QGSNULLMATERIALSETTINGS_H
18#define QGSNULLMATERIALSETTINGS_H
19
20#include "qgis_3d.h"
22
23#include <QColor>
24
25class QDomElement;
26
37{
38 public:
39
41
42 QString type() const override;
43
47 static bool supportsTechnique( QgsMaterialSettingsRenderingTechnique technique );
48
53
54 QgsNullMaterialSettings *clone() const override SIP_FACTORY;
55
56 QMap<QString, QString> toExportParameters() const override;
57#ifndef SIP_RUN
59 void addParametersToEffect( Qt3DRender::QEffect *effect, const QgsMaterialContext &materialContext ) const override;
60#endif
61
62};
63
64
65#endif // QGSNULLMATERIALSETTINGS_H
virtual void addParametersToEffect(Qt3DRender::QEffect *effect, const QgsMaterialContext &materialContext) const =0
Adds parameters from the material to a destination effect.
virtual QString type() const =0
Returns the unique type name for the material.
virtual QgsMaterial * toMaterial(QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0
Creates a new QgsMaterial object representing the material settings.
QgsNullMaterialSettings()=default
QgsMaterialSettingsRenderingTechnique
Material rendering techniques 3.
#define SIP_FACTORY
Definition qgis_sip.h:76