Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_material_1.inc

raw
1 { -*- buffer-read-only: t -*-
2
3 Copyright 2015-2024 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 { Automatically generated node properties.
18
19 Do not edit this file manually!
20 To add new properties:
21 - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ ,
22 - and regenerate include files by running x3d-nodes-to-pascal }
23
24 {$ifdef read_interface}
25
26 strict private
27 function GetFogImmune: Boolean;
28 procedure SetFogImmune(const Value: Boolean);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33 class function ForVRMLVersion(const Version: TX3DVersion): Boolean; override;
34
35 strict private FFdAmbientColor: TMFColor;
36 { Internal wrapper for property @code(AmbientColor). This wrapper API may change, we advise to access simpler @code(AmbientColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
37 public property FdAmbientColor: TMFColor read FFdAmbientColor;
38 { }
39 procedure SetAmbientColor(const Value: array of TCastleColorRGB); overload;
40 { }
41 procedure SetAmbientColor(const Value: TVector3List); overload;
42
43 strict private FFdDiffuseColor: TMFColor;
44 { Internal wrapper for property @code(DiffuseColor). This wrapper API may change, we advise to access simpler @code(DiffuseColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
45 public property FdDiffuseColor: TMFColor read FFdDiffuseColor;
46 { }
47 procedure SetDiffuseColor(const Value: array of TCastleColorRGB); overload;
48 { }
49 procedure SetDiffuseColor(const Value: TVector3List); overload;
50
51 strict private FFdSpecularColor: TMFColor;
52 { Internal wrapper for property @code(SpecularColor). This wrapper API may change, we advise to access simpler @code(SpecularColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
53 public property FdSpecularColor: TMFColor read FFdSpecularColor;
54 { }
55 procedure SetSpecularColor(const Value: array of TCastleColorRGB); overload;
56 { }
57 procedure SetSpecularColor(const Value: TVector3List); overload;
58
59 strict private FFdEmissiveColor: TMFColor;
60 { Internal wrapper for property @code(EmissiveColor). This wrapper API may change, we advise to access simpler @code(EmissiveColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
61 public property FdEmissiveColor: TMFColor read FFdEmissiveColor;
62 { }
63 procedure SetEmissiveColor(const Value: array of TCastleColorRGB); overload;
64 { }
65 procedure SetEmissiveColor(const Value: TVector3List); overload;
66
67 strict private FFdShininess: TMFFloat;
68 { Internal wrapper for property @code(Shininess). This wrapper API may change, we advise to access simpler @code(Shininess) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
69 public property FdShininess: TMFFloat read FFdShininess;
70 { }
71 procedure SetShininess(const Value: array of Single); overload;
72 { }
73 procedure SetShininess(const Value: TSingleList); overload;
74
75 strict private FFdTransparency: TMFFloat;
76 { Internal wrapper for property @code(Transparency). This wrapper API may change, we advise to access simpler @code(Transparency) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
77 public property FdTransparency: TMFFloat read FFdTransparency;
78 { }
79 procedure SetTransparency(const Value: array of Single); overload;
80 { }
81 procedure SetTransparency(const Value: TSingleList); overload;
82
83 strict private FFdMirror: TMFFloat;
84 { Internal wrapper for property @code(Mirror). This wrapper API may change, we advise to access simpler @code(Mirror) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
85 public property FdMirror: TMFFloat read FFdMirror;
86 { }
87 procedure SetMirror(const Value: array of Single); overload;
88 { }
89 procedure SetMirror(const Value: TSingleList); overload;
90
91 strict private FFdReflSpecular: TMFColor;
92 { Internal wrapper for property @code(ReflSpecular). This wrapper API may change, we advise to access simpler @code(ReflSpecular) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
93 public property FdReflSpecular: TMFColor read FFdReflSpecular;
94 { }
95 procedure SetReflSpecular(const Value: array of TCastleColorRGB); overload;
96 { }
97 procedure SetReflSpecular(const Value: TVector3List); overload;
98
99 strict private FFdReflDiffuse: TMFColor;
100 { Internal wrapper for property @code(ReflDiffuse). This wrapper API may change, we advise to access simpler @code(ReflDiffuse) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
101 public property FdReflDiffuse: TMFColor read FFdReflDiffuse;
102 { }
103 procedure SetReflDiffuse(const Value: array of TCastleColorRGB); overload;
104 { }
105 procedure SetReflDiffuse(const Value: TVector3List); overload;
106
107 strict private FFdTransSpecular: TMFColor;
108 { Internal wrapper for property @code(TransSpecular). This wrapper API may change, we advise to access simpler @code(TransSpecular) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
109 public property FdTransSpecular: TMFColor read FFdTransSpecular;
110 { }
111 procedure SetTransSpecular(const Value: array of TCastleColorRGB); overload;
112 { }
113 procedure SetTransSpecular(const Value: TVector3List); overload;
114
115 strict private FFdTransDiffuse: TMFColor;
116 { Internal wrapper for property @code(TransDiffuse). This wrapper API may change, we advise to access simpler @code(TransDiffuse) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
117 public property FdTransDiffuse: TMFColor read FFdTransDiffuse;
118 { }
119 procedure SetTransDiffuse(const Value: array of TCastleColorRGB); overload;
120 { }
121 procedure SetTransDiffuse(const Value: TVector3List); overload;
122
123 strict private FFdReflSpecularExp: TMFFloat;
124 { Internal wrapper for property @code(ReflSpecularExp). This wrapper API may change, we advise to access simpler @code(ReflSpecularExp) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
125 public property FdReflSpecularExp: TMFFloat read FFdReflSpecularExp;
126 { }
127 procedure SetReflSpecularExp(const Value: array of Single); overload;
128 { }
129 procedure SetReflSpecularExp(const Value: TSingleList); overload;
130
131 strict private FFdTransSpecularExp: TMFFloat;
132 { Internal wrapper for property @code(TransSpecularExp). This wrapper API may change, we advise to access simpler @code(TransSpecularExp) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
133 public property FdTransSpecularExp: TMFFloat read FFdTransSpecularExp;
134 { }
135 procedure SetTransSpecularExp(const Value: array of Single); overload;
136 { }
137 procedure SetTransSpecularExp(const Value: TSingleList); overload;
138
139 strict private FFdFogImmune: TSFBool;
140 { Internal wrapper for property @code(FogImmune). This wrapper API may change, we advise to access simpler @code(FogImmune) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
141 public property FdFogImmune: TSFBool read FFdFogImmune;
142 { }
143 property FogImmune: Boolean read GetFogImmune write SetFogImmune;
144
145 {$endif read_interface}
146
147 {$ifdef read_implementation}
148
149 { TMaterialNode_1 ----------------------------------------------- }
150
151 procedure TMaterialNode_1.SetAmbientColor(const Value: array of TCastleColorRGB);
152 begin
153 FdAmbientColor.Send(Value);
154 end;
155
156 procedure TMaterialNode_1.SetAmbientColor(const Value: TVector3List);
157 begin
158 FdAmbientColor.Send(Value);
159 end;
160
161 procedure TMaterialNode_1.SetDiffuseColor(const Value: array of TCastleColorRGB);
162 begin
163 FdDiffuseColor.Send(Value);
164 end;
165
166 procedure TMaterialNode_1.SetDiffuseColor(const Value: TVector3List);
167 begin
168 FdDiffuseColor.Send(Value);
169 end;
170
171 procedure TMaterialNode_1.SetSpecularColor(const Value: array of TCastleColorRGB);
172 begin
173 FdSpecularColor.Send(Value);
174 end;
175
176 procedure TMaterialNode_1.SetSpecularColor(const Value: TVector3List);
177 begin
178 FdSpecularColor.Send(Value);
179 end;
180
181 procedure TMaterialNode_1.SetEmissiveColor(const Value: array of TCastleColorRGB);
182 begin
183 FdEmissiveColor.Send(Value);
184 end;
185
186 procedure TMaterialNode_1.SetEmissiveColor(const Value: TVector3List);
187 begin
188 FdEmissiveColor.Send(Value);
189 end;
190
191 procedure TMaterialNode_1.SetShininess(const Value: array of Single);
192 begin
193 FdShininess.Send(Value);
194 end;
195
196 procedure TMaterialNode_1.SetShininess(const Value: TSingleList);
197 begin
198 FdShininess.Send(Value);
199 end;
200
201 procedure TMaterialNode_1.SetTransparency(const Value: array of Single);
202 begin
203 FdTransparency.Send(Value);
204 end;
205
206 procedure TMaterialNode_1.SetTransparency(const Value: TSingleList);
207 begin
208 FdTransparency.Send(Value);
209 end;
210
211 procedure TMaterialNode_1.SetMirror(const Value: array of Single);
212 begin
213 FdMirror.Send(Value);
214 end;
215
216 procedure TMaterialNode_1.SetMirror(const Value: TSingleList);
217 begin
218 FdMirror.Send(Value);
219 end;
220
221 procedure TMaterialNode_1.SetReflSpecular(const Value: array of TCastleColorRGB);
222 begin
223 FdReflSpecular.Send(Value);
224 end;
225
226 procedure TMaterialNode_1.SetReflSpecular(const Value: TVector3List);
227 begin
228 FdReflSpecular.Send(Value);
229 end;
230
231 procedure TMaterialNode_1.SetReflDiffuse(const Value: array of TCastleColorRGB);
232 begin
233 FdReflDiffuse.Send(Value);
234 end;
235
236 procedure TMaterialNode_1.SetReflDiffuse(const Value: TVector3List);
237 begin
238 FdReflDiffuse.Send(Value);
239 end;
240
241 procedure TMaterialNode_1.SetTransSpecular(const Value: array of TCastleColorRGB);
242 begin
243 FdTransSpecular.Send(Value);
244 end;
245
246 procedure TMaterialNode_1.SetTransSpecular(const Value: TVector3List);
247 begin
248 FdTransSpecular.Send(Value);
249 end;
250
251 procedure TMaterialNode_1.SetTransDiffuse(const Value: array of TCastleColorRGB);
252 begin
253 FdTransDiffuse.Send(Value);
254 end;
255
256 procedure TMaterialNode_1.SetTransDiffuse(const Value: TVector3List);
257 begin
258 FdTransDiffuse.Send(Value);
259 end;
260
261 procedure TMaterialNode_1.SetReflSpecularExp(const Value: array of Single);
262 begin
263 FdReflSpecularExp.Send(Value);
264 end;
265
266 procedure TMaterialNode_1.SetReflSpecularExp(const Value: TSingleList);
267 begin
268 FdReflSpecularExp.Send(Value);
269 end;
270
271 procedure TMaterialNode_1.SetTransSpecularExp(const Value: array of Single);
272 begin
273 FdTransSpecularExp.Send(Value);
274 end;
275
276 procedure TMaterialNode_1.SetTransSpecularExp(const Value: TSingleList);
277 begin
278 FdTransSpecularExp.Send(Value);
279 end;
280
281 function TMaterialNode_1.GetFogImmune: Boolean;
282 begin
283 Result := FdFogImmune.Value;
284 end;
285
286 procedure TMaterialNode_1.SetFogImmune(const Value: Boolean);
287 begin
288 FdFogImmune.Send(Value);
289 end;
290
291 class function TMaterialNode_1.ForVRMLVersion(const Version: TX3DVersion): Boolean;
292 begin
293 Result := Version.Major <= 1; // parse this node only in VRML 1.0 and Inventor files
294 end;
295
296 class function TMaterialNode_1.ClassX3DType: String;
297 begin
298 Result := 'Material';
299 end;
300
301 procedure TMaterialNode_1.CreateNode;
302 begin
303 inherited;
304
305 FFdAmbientColor := TMFColor.Create(Self, True, 'ambientColor', [TPhongMaterialInfo.DefaultAmbientColor]);
306 FdAmbientColor.ChangeAlways := chVisibleNonGeometry;
307 AddField(FFdAmbientColor);
308
309 FFdDiffuseColor := TMFColor.Create(Self, True, 'diffuseColor', [TPhongMaterialInfo.DefaultDiffuseColor]);
310 FdDiffuseColor.ChangeAlways := chVisibleNonGeometry;
311 AddField(FFdDiffuseColor);
312
313 FFdSpecularColor := TMFColor.Create(Self, True, 'specularColor', [TPhongMaterialInfo.DefaultSpecularColor]);
314 FdSpecularColor.ChangeAlways := chVisibleNonGeometry;
315 AddField(FFdSpecularColor);
316
317 FFdEmissiveColor := TMFColor.Create(Self, True, 'emissiveColor', [TPhongMaterialInfo.DefaultEmissiveColor]);
318 FdEmissiveColor.ChangeAlways := chVisibleNonGeometry;
319 AddField(FFdEmissiveColor);
320
321 FFdShininess := TMFFloat.Create(Self, True, 'shininess', [TPhongMaterialInfo.DefaultShininess]);
322 FdShininess.ChangeAlways := chVisibleNonGeometry;
323 AddField(FFdShininess);
324
325 FFdTransparency := TMFFloat.Create(Self, True, 'transparency', [TMaterialInfo.DefaultTransparency]);
326 FdTransparency.ChangeAlways := chVisibleNonGeometry;
327 AddField(FFdTransparency);
328
329 FFdMirror := TMFFloat.Create(Self, True, 'mirror', [0.0]);
330 FdMirror.ChangeAlways := chVisibleNonGeometry;
331 AddField(FFdMirror);
332
333 FFdReflSpecular := TMFColor.Create(Self, True, 'reflSpecular', []);
334 FdReflSpecular.ChangeAlways := chVisibleNonGeometry;
335 AddField(FFdReflSpecular);
336
337 FFdReflDiffuse := TMFColor.Create(Self, True, 'reflDiffuse', []);
338 FdReflDiffuse.ChangeAlways := chVisibleNonGeometry;
339 AddField(FFdReflDiffuse);
340
341 FFdTransSpecular := TMFColor.Create(Self, True, 'transSpecular', []);
342 FdTransSpecular.ChangeAlways := chVisibleNonGeometry;
343 AddField(FFdTransSpecular);
344
345 FFdTransDiffuse := TMFColor.Create(Self, True, 'transDiffuse', []);
346 FdTransDiffuse.ChangeAlways := chVisibleNonGeometry;
347 AddField(FFdTransDiffuse);
348
349 FFdReflSpecularExp := TMFFloat.Create(Self, True, 'reflSpecularExp', [TPhongMaterialInfo.DefaultReflSpecularExp]);
350 FdReflSpecularExp.ChangeAlways := chVisibleNonGeometry;
351 AddField(FFdReflSpecularExp);
352
353 FFdTransSpecularExp := TMFFloat.Create(Self, True, 'transSpecularExp', [TPhongMaterialInfo.DefaultTransSpecularExp]);
354 FdTransSpecularExp.ChangeAlways := chVisibleNonGeometry;
355 AddField(FFdTransSpecularExp);
356
357 FFdFogImmune := TSFBool.Create(Self, True, 'fogImmune', false);
358 FdFogImmune.ChangeAlways := chVisibleNonGeometry;
359 AddField(FFdFogImmune);
360 end;
361
362 {$endif read_implementation}