Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_twosidedmaterial.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 GetAmbientIntensity: Single;
28 procedure SetAmbientIntensity(const Value: Single);
29 function GetBackAmbientIntensity: Single;
30 procedure SetBackAmbientIntensity(const Value: Single);
31 function GetBackDiffuseColor: TCastleColorRGB;
32 procedure SetBackDiffuseColor(const Value: TCastleColorRGB);
33 function GetBackEmissiveColor: TCastleColorRGB;
34 procedure SetBackEmissiveColor(const Value: TCastleColorRGB);
35 function GetBackShininess: Single;
36 procedure SetBackShininess(const Value: Single);
37 function GetBackSpecularColor: TCastleColorRGB;
38 procedure SetBackSpecularColor(const Value: TCastleColorRGB);
39 function GetBackTransparency: Single;
40 procedure SetBackTransparency(const Value: Single);
41 function GetDiffuseColor: TCastleColorRGB;
42 procedure SetDiffuseColor(const Value: TCastleColorRGB);
43 function GetEmissiveColor: TCastleColorRGB;
44 procedure SetEmissiveColor(const Value: TCastleColorRGB);
45 function GetShininess: Single;
46 procedure SetShininess(const Value: Single);
47 function GetSeparateBackColor: Boolean;
48 procedure SetSeparateBackColor(const Value: Boolean);
49 function GetSpecularColor: TCastleColorRGB;
50 procedure SetSpecularColor(const Value: TCastleColorRGB);
51 function GetTransparency: Single;
52 procedure SetTransparency(const Value: Single);
53 public
54 { Create node fields and events. }
55 procedure CreateNode; override;
56 class function ClassX3DType: String; override;
57
58 strict private FFdAmbientIntensity: TSFFloat;
59 { Internal wrapper for property @code(AmbientIntensity). This wrapper API may change, we advise to access simpler @code(AmbientIntensity) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdAmbientIntensity: TSFFloat read FFdAmbientIntensity;
61 { }
62 property AmbientIntensity: Single read GetAmbientIntensity write SetAmbientIntensity;
63
64 strict private FFdBackAmbientIntensity: TSFFloat;
65 { Internal wrapper for property @code(BackAmbientIntensity). This wrapper API may change, we advise to access simpler @code(BackAmbientIntensity) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdBackAmbientIntensity: TSFFloat read FFdBackAmbientIntensity;
67 { }
68 property BackAmbientIntensity: Single read GetBackAmbientIntensity write SetBackAmbientIntensity;
69
70 strict private FFdBackDiffuseColor: TSFColor;
71 { Internal wrapper for property @code(BackDiffuseColor). This wrapper API may change, we advise to access simpler @code(BackDiffuseColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdBackDiffuseColor: TSFColor read FFdBackDiffuseColor;
73 { }
74 property BackDiffuseColor: TCastleColorRGB read GetBackDiffuseColor write SetBackDiffuseColor;
75
76 strict private FFdBackEmissiveColor: TSFColor;
77 { Internal wrapper for property @code(BackEmissiveColor). This wrapper API may change, we advise to access simpler @code(BackEmissiveColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdBackEmissiveColor: TSFColor read FFdBackEmissiveColor;
79 { }
80 property BackEmissiveColor: TCastleColorRGB read GetBackEmissiveColor write SetBackEmissiveColor;
81
82 strict private FFdBackShininess: TSFFloat;
83 { Internal wrapper for property @code(BackShininess). This wrapper API may change, we advise to access simpler @code(BackShininess) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdBackShininess: TSFFloat read FFdBackShininess;
85 { }
86 property BackShininess: Single read GetBackShininess write SetBackShininess;
87
88 strict private FFdBackSpecularColor: TSFColor;
89 { Internal wrapper for property @code(BackSpecularColor). This wrapper API may change, we advise to access simpler @code(BackSpecularColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
90 public property FdBackSpecularColor: TSFColor read FFdBackSpecularColor;
91 { }
92 property BackSpecularColor: TCastleColorRGB read GetBackSpecularColor write SetBackSpecularColor;
93
94 strict private FFdBackTransparency: TSFFloat;
95 { Internal wrapper for property @code(BackTransparency). This wrapper API may change, we advise to access simpler @code(BackTransparency) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
96 public property FdBackTransparency: TSFFloat read FFdBackTransparency;
97 { }
98 property BackTransparency: Single read GetBackTransparency write SetBackTransparency;
99
100 strict private FFdDiffuseColor: TSFColor;
101 { 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). }
102 public property FdDiffuseColor: TSFColor read FFdDiffuseColor;
103 { }
104 property DiffuseColor: TCastleColorRGB read GetDiffuseColor write SetDiffuseColor;
105
106 strict private FFdEmissiveColor: TSFColor;
107 { 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). }
108 public property FdEmissiveColor: TSFColor read FFdEmissiveColor;
109 { }
110 property EmissiveColor: TCastleColorRGB read GetEmissiveColor write SetEmissiveColor;
111
112 strict private FFdShininess: TSFFloat;
113 { 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). }
114 public property FdShininess: TSFFloat read FFdShininess;
115 { }
116 property Shininess: Single read GetShininess write SetShininess;
117
118 strict private FFdSeparateBackColor: TSFBool;
119 { Internal wrapper for property @code(SeparateBackColor). This wrapper API may change, we advise to access simpler @code(SeparateBackColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
120 public property FdSeparateBackColor: TSFBool read FFdSeparateBackColor;
121 { }
122 property SeparateBackColor: Boolean read GetSeparateBackColor write SetSeparateBackColor;
123
124 strict private FFdSpecularColor: TSFColor;
125 { 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). }
126 public property FdSpecularColor: TSFColor read FFdSpecularColor;
127 { }
128 property SpecularColor: TCastleColorRGB read GetSpecularColor write SetSpecularColor;
129
130 strict private FFdTransparency: TSFFloat;
131 { 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). }
132 public property FdTransparency: TSFFloat read FFdTransparency;
133 { }
134 property Transparency: Single read GetTransparency write SetTransparency;
135
136 {$endif read_interface}
137
138 {$ifdef read_implementation}
139
140 { TTwoSidedMaterialNode ----------------------------------------------- }
141
142 function TTwoSidedMaterialNode.GetAmbientIntensity: Single;
143 begin
144 Result := FdAmbientIntensity.Value;
145 end;
146
147 procedure TTwoSidedMaterialNode.SetAmbientIntensity(const Value: Single);
148 begin
149 FdAmbientIntensity.Send(Value);
150 end;
151
152 function TTwoSidedMaterialNode.GetBackAmbientIntensity: Single;
153 begin
154 Result := FdBackAmbientIntensity.Value;
155 end;
156
157 procedure TTwoSidedMaterialNode.SetBackAmbientIntensity(const Value: Single);
158 begin
159 FdBackAmbientIntensity.Send(Value);
160 end;
161
162 function TTwoSidedMaterialNode.GetBackDiffuseColor: TCastleColorRGB;
163 begin
164 Result := FdBackDiffuseColor.Value;
165 end;
166
167 procedure TTwoSidedMaterialNode.SetBackDiffuseColor(const Value: TCastleColorRGB);
168 begin
169 FdBackDiffuseColor.Send(Value);
170 end;
171
172 function TTwoSidedMaterialNode.GetBackEmissiveColor: TCastleColorRGB;
173 begin
174 Result := FdBackEmissiveColor.Value;
175 end;
176
177 procedure TTwoSidedMaterialNode.SetBackEmissiveColor(const Value: TCastleColorRGB);
178 begin
179 FdBackEmissiveColor.Send(Value);
180 end;
181
182 function TTwoSidedMaterialNode.GetBackShininess: Single;
183 begin
184 Result := FdBackShininess.Value;
185 end;
186
187 procedure TTwoSidedMaterialNode.SetBackShininess(const Value: Single);
188 begin
189 FdBackShininess.Send(Value);
190 end;
191
192 function TTwoSidedMaterialNode.GetBackSpecularColor: TCastleColorRGB;
193 begin
194 Result := FdBackSpecularColor.Value;
195 end;
196
197 procedure TTwoSidedMaterialNode.SetBackSpecularColor(const Value: TCastleColorRGB);
198 begin
199 FdBackSpecularColor.Send(Value);
200 end;
201
202 function TTwoSidedMaterialNode.GetBackTransparency: Single;
203 begin
204 Result := FdBackTransparency.Value;
205 end;
206
207 procedure TTwoSidedMaterialNode.SetBackTransparency(const Value: Single);
208 begin
209 FdBackTransparency.Send(Value);
210 end;
211
212 function TTwoSidedMaterialNode.GetDiffuseColor: TCastleColorRGB;
213 begin
214 Result := FdDiffuseColor.Value;
215 end;
216
217 procedure TTwoSidedMaterialNode.SetDiffuseColor(const Value: TCastleColorRGB);
218 begin
219 FdDiffuseColor.Send(Value);
220 end;
221
222 function TTwoSidedMaterialNode.GetEmissiveColor: TCastleColorRGB;
223 begin
224 Result := FdEmissiveColor.Value;
225 end;
226
227 procedure TTwoSidedMaterialNode.SetEmissiveColor(const Value: TCastleColorRGB);
228 begin
229 FdEmissiveColor.Send(Value);
230 end;
231
232 function TTwoSidedMaterialNode.GetShininess: Single;
233 begin
234 Result := FdShininess.Value;
235 end;
236
237 procedure TTwoSidedMaterialNode.SetShininess(const Value: Single);
238 begin
239 FdShininess.Send(Value);
240 end;
241
242 function TTwoSidedMaterialNode.GetSeparateBackColor: Boolean;
243 begin
244 Result := FdSeparateBackColor.Value;
245 end;
246
247 procedure TTwoSidedMaterialNode.SetSeparateBackColor(const Value: Boolean);
248 begin
249 FdSeparateBackColor.Send(Value);
250 end;
251
252 function TTwoSidedMaterialNode.GetSpecularColor: TCastleColorRGB;
253 begin
254 Result := FdSpecularColor.Value;
255 end;
256
257 procedure TTwoSidedMaterialNode.SetSpecularColor(const Value: TCastleColorRGB);
258 begin
259 FdSpecularColor.Send(Value);
260 end;
261
262 function TTwoSidedMaterialNode.GetTransparency: Single;
263 begin
264 Result := FdTransparency.Value;
265 end;
266
267 procedure TTwoSidedMaterialNode.SetTransparency(const Value: Single);
268 begin
269 FdTransparency.Send(Value);
270 end;
271
272 class function TTwoSidedMaterialNode.ClassX3DType: String;
273 begin
274 Result := 'TwoSidedMaterial';
275 end;
276
277 procedure TTwoSidedMaterialNode.CreateNode;
278 begin
279 inherited;
280
281 FFdAmbientIntensity := TSFFloat.Create(Self, True, 'ambientIntensity', 0.2);
282 FdAmbientIntensity.ChangeAlways := chVisibleNonGeometry;
283 FdAmbientIntensity.MustBeNonnegative := true;
284 AddField(FFdAmbientIntensity);
285
286 FFdBackAmbientIntensity := TSFFloat.Create(Self, True, 'backAmbientIntensity', 0.2);
287 FdBackAmbientIntensity.ChangeAlways := chVisibleNonGeometry;
288 FdBackAmbientIntensity.MustBeNonnegative := true;
289 AddField(FFdBackAmbientIntensity);
290
291 FFdBackDiffuseColor := TSFColor.Create(Self, True, 'backDiffuseColor', Vector3(0.8, 0.8, 0.8));
292 FdBackDiffuseColor.ChangeAlways := chVisibleNonGeometry;
293 AddField(FFdBackDiffuseColor);
294
295 FFdBackEmissiveColor := TSFColor.Create(Self, True, 'backEmissiveColor', Vector3(0, 0, 0));
296 FdBackEmissiveColor.ChangeAlways := chVisibleNonGeometry;
297 AddField(FFdBackEmissiveColor);
298
299 FFdBackShininess := TSFFloat.Create(Self, True, 'backShininess', 0.2);
300 FdBackShininess.ChangeAlways := chVisibleNonGeometry;
301 FdBackShininess.MustBeNonnegative := true;
302 AddField(FFdBackShininess);
303
304 FFdBackSpecularColor := TSFColor.Create(Self, True, 'backSpecularColor', Vector3(0, 0, 0));
305 FdBackSpecularColor.ChangeAlways := chVisibleNonGeometry;
306 AddField(FFdBackSpecularColor);
307
308 FFdBackTransparency := TSFFloat.Create(Self, True, 'backTransparency', 0);
309 FdBackTransparency.ChangeAlways := chVisibleNonGeometry;
310 FdBackTransparency.MustBeNonnegative := true;
311 AddField(FFdBackTransparency);
312
313 FFdDiffuseColor := TSFColor.Create(Self, True, 'diffuseColor', Vector3(0.8, 0.8, 0.8));
314 FdDiffuseColor.ChangeAlways := chVisibleNonGeometry;
315 AddField(FFdDiffuseColor);
316
317 FFdEmissiveColor := TSFColor.Create(Self, True, 'emissiveColor', Vector3(0, 0, 0));
318 FdEmissiveColor.ChangeAlways := chVisibleNonGeometry;
319 AddField(FFdEmissiveColor);
320
321 FFdShininess := TSFFloat.Create(Self, True, 'shininess', 0.2);
322 FdShininess.ChangeAlways := chVisibleNonGeometry;
323 FdShininess.MustBeNonnegative := true;
324 AddField(FFdShininess);
325
326 FFdSeparateBackColor := TSFBool.Create(Self, True, 'separateBackColor', false);
327 FdSeparateBackColor.ChangeAlways := chVisibleNonGeometry;
328 AddField(FFdSeparateBackColor);
329
330 FFdSpecularColor := TSFColor.Create(Self, True, 'specularColor', Vector3(0, 0, 0));
331 FdSpecularColor.ChangeAlways := chVisibleNonGeometry;
332 AddField(FFdSpecularColor);
333
334 FFdTransparency := TSFFloat.Create(Self, True, 'transparency', 0);
335 FdTransparency.ChangeAlways := chVisibleNonGeometry;
336 FdTransparency.MustBeNonnegative := true;
337 AddField(FFdTransparency);
338 end;
339
340 {$endif read_implementation}