/
qgsabstractmaterialsettings.sip.in
152 lines (115 loc) · 3.69 KB
/
qgsabstractmaterialsettings.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/materials/qgsabstractmaterialsettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
enum class QgsMaterialSettingsRenderingTechnique
{
Triangles,
Lines,
InstancedPoints,
Points,
TrianglesWithFixedTexture,
TrianglesFromModel,
};
class QgsMaterialContext
{
%Docstring
Context settings for a material.
.. warning::
This is not considered stable API, and may change in future QGIS releases. It is
exposed to the Python bindings as a tech preview only.
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgsabstractmaterialsettings.h"
%End
public:
bool isSelected() const;
%Docstring
Returns ``True`` if the material should represent a selected state.
.. seealso:: :py:func:`setIsSelected`
%End
void setIsSelected( bool isSelected );
%Docstring
Sets whether the material should represent a selected state.
.. seealso:: :py:func:`isSelected`
%End
QColor selectionColor() const;
%Docstring
Returns the color for representing materials in a selected state.
.. seealso:: :py:func:`setSelectionColor`
%End
void setSelectionColor( const QColor &color );
%Docstring
Sets the color for representing materials in a selected state.
.. seealso:: :py:func:`selectionColor`
%End
};
class QgsAbstractMaterialSettings /Abstract/
{
%Docstring
Abstract base class for material settings.
.. warning::
This is not considered stable API, and may change in future QGIS releases. It is
exposed to the Python bindings as a tech preview only.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsabstractmaterialsettings.h"
%End
%ConvertToSubClassCode
if ( sipCpp->type() == QLatin1String( "gooch" ) )
{
sipType = sipType_QgsGoochMaterialSettings;
}
else if ( sipCpp->type() == QLatin1String( "phong" ) )
{
sipType = sipType_QgsPhongMaterialSettings;
}
else if ( sipCpp->type() == "phongtextured" )
{
sipType = sipType_QgsPhongTexturedMaterialSettings;
}
else if ( sipCpp->type() == "simpleline" )
{
sipType = sipType_QgsSimpleLineMaterialSettings;
}
else if ( sipCpp->type() == "null" )
{
sipType = sipType_QgsNullMaterialSettings;
}
else
{
sipType = 0;
}
%End
public:
virtual ~QgsAbstractMaterialSettings();
virtual QString type() const = 0;
%Docstring
Returns the unique type name for the material.
%End
virtual QgsAbstractMaterialSettings *clone() const = 0 /Factory/;
%Docstring
Clones the material settings.
Caller takes ownership of the returned object.
%End
virtual void readXml( const QDomElement &element, const QgsReadWriteContext & );
%Docstring
Reads settings from a DOM ``element``
%End
virtual void writeXml( QDomElement &element, const QgsReadWriteContext & ) const;
%Docstring
Writes settings to a DOM ``element``
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/materials/qgsabstractmaterialsettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/