QGIS API Documentation
3.43.0-Master (b60ef06885e)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
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
QgsNullMaterialSettings
() =
default
;
40
41
QString
type
()
const override
;
42
46
static
bool
supportsTechnique(
QgsMaterialSettingsRenderingTechnique
technique );
47
51
static
QgsAbstractMaterialSettings
*create()
SIP_FACTORY
;
52
53
QgsNullMaterialSettings
*clone() const override
SIP_FACTORY
;
54
bool
equals( const
QgsAbstractMaterialSettings
*other ) const override;
55
56
QMap<QString, QString> toExportParameters() const override;
57
#ifndef SIP_RUN
58
QgsMaterial
*
toMaterial
(
QgsMaterialSettingsRenderingTechnique
technique,
const
QgsMaterialContext
&context )
const
override
SIP_FACTORY
;
59
void
addParametersToEffect
( Qt3DRender::QEffect *effect,
const
QgsMaterialContext
&materialContext )
const override
;
60
#endif
61
};
36
class
_3D_EXPORT
QgsNullMaterialSettings
:
public
QgsAbstractMaterialSettings
{
…
};
62
63
64
#endif
// QGSNULLMATERIALSETTINGS_H
QgsAbstractMaterialSettings
Abstract base class for material settings.
Definition
qgsabstractmaterialsettings.h:118
QgsAbstractMaterialSettings::addParametersToEffect
virtual void addParametersToEffect(Qt3DRender::QEffect *effect, const QgsMaterialContext &materialContext) const =0
Adds parameters from the material to a destination effect.
QgsAbstractMaterialSettings::type
virtual QString type() const =0
Returns the unique type name for the material.
QgsAbstractMaterialSettings::toMaterial
virtual QgsMaterial * toMaterial(QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0
Creates a new QgsMaterial object representing the material settings.
QgsMaterialContext
Context settings for a material.
Definition
qgsabstractmaterialsettings.h:72
QgsMaterial
Base class for all materials used within QGIS 3D views.
Definition
qgsmaterial.h:39
QgsNullMaterialSettings
Null shading material used for rendering models and scenes with native textures.
Definition
qgsnullmaterialsettings.h:37
QgsNullMaterialSettings::QgsNullMaterialSettings
QgsNullMaterialSettings()=default
QgsMaterialSettingsRenderingTechnique
QgsMaterialSettingsRenderingTechnique
Material rendering techniques.
Definition
qgsabstractmaterialsettings.h:51
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgsabstractmaterialsettings.h
Generated on Sun Apr 6 2025 18:57:15 for QGIS API Documentation by
1.9.8