QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
3d
materials
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"
21
#include "
qgsabstractmaterialsettings.h
"
22
23
#include <QColor>
24
25
class
QDomElement;
26
36
class
_3D_EXPORT
QgsNullMaterialSettings
:
public
QgsAbstractMaterialSettings
37
{
38
public
:
39
43
QgsNullMaterialSettings
() =
default
;
44
45
QString
type
()
const override
;
46
50
static
bool
supportsTechnique(
QgsMaterialSettingsRenderingTechnique
technique );
51
55
static
QgsAbstractMaterialSettings
*create()
SIP_FACTORY
;
56
57
QgsNullMaterialSettings
*
clone
()
const
override
SIP_FACTORY
;
58
59
QMap<QString, QString>
toExportParameters
()
const override
;
60
#ifndef SIP_RUN
61
Qt3DRender::QMaterial *
toMaterial
(
QgsMaterialSettingsRenderingTechnique
technique,
const
QgsMaterialContext
&context )
const
override
SIP_FACTORY
;
62
void
addParametersToEffect
( Qt3DRender::QEffect *effect )
const override
;
63
#endif
64
65
};
66
67
68
#endif // QGSNULLMATERIALSETTINGS_H
QgsAbstractMaterialSettings::type
virtual QString type() const =0
Returns the unique type name for the material.
QgsAbstractMaterialSettings::toExportParameters
virtual QMap< QString, QString > toExportParameters() const =0
Returns the parameters to be exported to .mtl file.
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsNullMaterialSettings
Null shading material used for rendering models and scenes with native textures.
Definition:
qgsnullmaterialsettings.h:36
QgsMaterialContext
Context settings for a material.
Definition:
qgsabstractmaterialsettings.h:64
qgsabstractmaterialsettings.h
QgsAbstractMaterialSettings
Abstract base class for material settings.
Definition:
qgsabstractmaterialsettings.h:114
QgsAbstractMaterialSettings::addParametersToEffect
virtual void addParametersToEffect(Qt3DRender::QEffect *effect) const =0
Adds parameters from the material to a destination effect.
QgsMaterialSettingsRenderingTechnique
QgsMaterialSettingsRenderingTechnique
Material rendering techniques.
Definition:
qgsabstractmaterialsettings.h:43
QgsAbstractMaterialSettings::toMaterial
virtual Qt3DRender::QMaterial * toMaterial(QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0
Creates a new QMaterial object representing the material settings.
QgsAbstractMaterialSettings::clone
virtual QgsAbstractMaterialSettings * clone() const =0
Clones the material settings.
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17