Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_renderedtexture.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 GetBackground: TAbstractBackgroundNode;
28 procedure SetBackground(const Value: TAbstractBackgroundNode);
29 function GetFog: TFogNode;
30 procedure SetFog(const Value: TFogNode);
31 function GetEnvironment: TEnvironmentNode;
32 procedure SetEnvironment(const Value: TEnvironmentNode);
33 function GetScene: TAbstractNode;
34 procedure SetScene(const Value: TAbstractNode);
35 function GetUpdate: TTextureUpdate;
36 procedure SetUpdate(const Value: TTextureUpdate);
37 function GetViewpoint: TX3DNode;
38 procedure SetViewpoint(const Value: TX3DNode);
39 function GetTextureProperties: TTexturePropertiesNode;
40 procedure SetTextureProperties(const Value: TTexturePropertiesNode);
41 function GetRepeatS: Boolean;
42 procedure SetRepeatS(const Value: Boolean);
43 function GetRepeatT: Boolean;
44 procedure SetRepeatT(const Value: Boolean);
45 function GetRepeatR: Boolean;
46 procedure SetRepeatR(const Value: Boolean);
47 function GetFrameBufferMode: String;
48 procedure SetFrameBufferMode(const Value: String);
49 function GetTriggerName: String;
50 procedure SetTriggerName(const Value: String);
51 public
52 { Create node fields and events. }
53 procedure CreateNode; override;
54 class function ClassX3DType: String; override;
55
56 strict private FFdBackground: TSFNode;
57 { Internal wrapper for property @code(Background). This wrapper API may change, we advise to access simpler @code(Background) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
58 public property FdBackground: TSFNode read FFdBackground;
59 { }
60 property Background: TAbstractBackgroundNode read GetBackground write SetBackground;
61
62 strict private FFdFog: TSFNode;
63 { Internal wrapper for property @code(Fog). This wrapper API may change, we advise to access simpler @code(Fog) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
64 public property FdFog: TSFNode read FFdFog;
65 { }
66 property Fog: TFogNode read GetFog write SetFog;
67
68 strict private FFdEnvironment: TSFNode;
69 { Internal wrapper for property @code(Environment). This wrapper API may change, we advise to access simpler @code(Environment) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
70 public property FdEnvironment: TSFNode read FFdEnvironment;
71 { }
72 property Environment: TEnvironmentNode read GetEnvironment write SetEnvironment;
73
74 strict private FFdScene: TSFNode;
75 { Internal wrapper for property @code(Scene). This wrapper API may change, we advise to access simpler @code(Scene) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
76 public property FdScene: TSFNode read FFdScene;
77 { }
78 property Scene: TAbstractNode read GetScene write SetScene;
79
80 strict private FFdDimensions: TMFInt32;
81 { Internal wrapper for property @code(Dimensions). This wrapper API may change, we advise to access simpler @code(Dimensions) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
82 public property FdDimensions: TMFInt32 read FFdDimensions;
83 { }
84 procedure SetDimensions(const Value: array of Int32); overload;
85 { }
86 procedure SetDimensions(const Value: TInt32List); overload;
87
88 strict private FFdUpdate: TSFStringEnum;
89 { Internal wrapper for property @code(Update). This wrapper API may change, we advise to access simpler @code(Update) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
90 public property FdUpdate: TSFStringEnum read FFdUpdate;
91 { When to update the texture contents. }
92 property Update: TTextureUpdate read GetUpdate write SetUpdate;
93
94 strict private FFdViewpoint: TSFNode;
95 { Internal wrapper for property @code(Viewpoint). This wrapper API may change, we advise to access simpler @code(Viewpoint) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
96 public property FdViewpoint: TSFNode read FFdViewpoint;
97 { }
98 property Viewpoint: TX3DNode read GetViewpoint write SetViewpoint;
99
100 strict private FFdTextureProperties: TSFNode;
101 { Internal wrapper for property @code(TextureProperties). This wrapper API may change, we advise to access simpler @code(TextureProperties) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
102 public property FdTextureProperties: TSFNode read FFdTextureProperties;
103 { }
104 property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;
105
106 strict private FFdRepeatS: TSFBool;
107 { Internal wrapper for property @code(RepeatS). This wrapper API may change, we advise to access simpler @code(RepeatS) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
108 public property FdRepeatS: TSFBool read FFdRepeatS;
109 { }
110 property RepeatS: Boolean read GetRepeatS write SetRepeatS;
111
112 strict private FFdRepeatT: TSFBool;
113 { Internal wrapper for property @code(RepeatT). This wrapper API may change, we advise to access simpler @code(RepeatT) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
114 public property FdRepeatT: TSFBool read FFdRepeatT;
115 { }
116 property RepeatT: Boolean read GetRepeatT write SetRepeatT;
117
118 strict private FFdRepeatR: TSFBool;
119 { Internal wrapper for property @code(RepeatR). This wrapper API may change, we advise to access simpler @code(RepeatR) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
120 public property FdRepeatR: TSFBool read FFdRepeatR;
121 { }
122 property RepeatR: Boolean read GetRepeatR write SetRepeatR;
123
124 strict private FFdDepthMap: TMFBool;
125 { Internal wrapper for property @code(DepthMap). This wrapper API may change, we advise to access simpler @code(DepthMap) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
126 public property FdDepthMap: TMFBool read FFdDepthMap;
127 { }
128 procedure SetDepthMap(const Value: array of boolean); overload;
129 { }
130 procedure SetDepthMap(const Value: TBooleanList); overload;
131
132 strict private FFdZOffset: TMFInt32;
133 { Internal wrapper for property @code(ZOffset). This wrapper API may change, we advise to access simpler @code(ZOffset) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
134 public property FdZOffset: TMFInt32 read FFdZOffset;
135 { }
136 procedure SetZOffset(const Value: array of Int32); overload;
137 { }
138 procedure SetZOffset(const Value: TInt32List); overload;
139
140 strict private FFdTargets: TMFNode;
141 { Internal wrapper for property @code(Targets). This wrapper API may change, we advise to access simpler @code(Targets) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
142 public property FdTargets: TMFNode read FFdTargets;
143 { }
144 procedure SetTargets(const Value: array of TAbstractTextureNode);
145
146 strict private FEventViewing: TSFMatrix4fEvent;
147 { }
148 public property EventViewing: TSFMatrix4fEvent read FEventViewing;
149
150 strict private FEventProjection: TSFMatrix4fEvent;
151 { }
152 public property EventProjection: TSFMatrix4fEvent read FEventProjection;
153
154 strict private FFdFrameBufferMode: TSFString;
155 { Internal wrapper for property @code(FrameBufferMode). This wrapper API may change, we advise to access simpler @code(FrameBufferMode) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
156 public property FdFrameBufferMode: TSFString read FFdFrameBufferMode;
157 { }
158 property FrameBufferMode: String read GetFrameBufferMode write SetFrameBufferMode;
159
160 strict private FFdExcludeNodes: TMFNode;
161 { Internal wrapper for property @code(ExcludeNodes). This wrapper API may change, we advise to access simpler @code(ExcludeNodes) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
162 public property FdExcludeNodes: TMFNode read FFdExcludeNodes;
163 { }
164 procedure SetExcludeNodes(const Value: array of TAbstractNode);
165
166 strict private FFdTriggerName: TSFString;
167 { Internal wrapper for property @code(TriggerName). This wrapper API may change, we advise to access simpler @code(TriggerName) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
168 public property FdTriggerName: TSFString read FFdTriggerName;
169 { }
170 property TriggerName: String read GetTriggerName write SetTriggerName;
171
172 strict private FEventImage_changed: TSFImageEvent;
173 { }
174 public property EventImage_changed: TSFImageEvent read FEventImage_changed;
175
176 strict private FEventRendering: TSFBoolEvent;
177 { }
178 public property EventRendering: TSFBoolEvent read FEventRendering;
179
180 {$endif read_interface}
181
182 {$ifdef read_implementation}
183
184 { TRenderedTextureNode ----------------------------------------------- }
185
186 function TRenderedTextureNode.GetBackground: TAbstractBackgroundNode;
187 begin
188 if FdBackground.Value is TAbstractBackgroundNode then
189 Result := TAbstractBackgroundNode(FdBackground.Value)
190 else
191 Result := nil;
192 end;
193
194 procedure TRenderedTextureNode.SetBackground(const Value: TAbstractBackgroundNode);
195 begin
196 FdBackground.Send(Value);
197 end;
198
199 function TRenderedTextureNode.GetFog: TFogNode;
200 begin
201 if FdFog.Value is TFogNode then
202 Result := TFogNode(FdFog.Value)
203 else
204 Result := nil;
205 end;
206
207 procedure TRenderedTextureNode.SetFog(const Value: TFogNode);
208 begin
209 FdFog.Send(Value);
210 end;
211
212 function TRenderedTextureNode.GetEnvironment: TEnvironmentNode;
213 begin
214 if FdEnvironment.Value is TEnvironmentNode then
215 Result := TEnvironmentNode(FdEnvironment.Value)
216 else
217 Result := nil;
218 end;
219
220 procedure TRenderedTextureNode.SetEnvironment(const Value: TEnvironmentNode);
221 begin
222 FdEnvironment.Send(Value);
223 end;
224
225 function TRenderedTextureNode.GetScene: TAbstractNode;
226 begin
227 if FdScene.Value is TAbstractNode then
228 Result := TAbstractNode(FdScene.Value)
229 else
230 Result := nil;
231 end;
232
233 procedure TRenderedTextureNode.SetScene(const Value: TAbstractNode);
234 begin
235 FdScene.Send(Value);
236 end;
237
238 procedure TRenderedTextureNode.SetDimensions(const Value: array of Int32);
239 begin
240 FdDimensions.Send(Value);
241 end;
242
243 procedure TRenderedTextureNode.SetDimensions(const Value: TInt32List);
244 begin
245 FdDimensions.Send(Value);
246 end;
247
248 function TRenderedTextureNode.GetUpdate: TTextureUpdate;
249 begin
250 Result := TTextureUpdate(FdUpdate.EnumValue);
251 end;
252
253 procedure TRenderedTextureNode.SetUpdate(const Value: TTextureUpdate);
254 begin
255 FdUpdate.SendEnumValue(Ord(Value));
256 end;
257
258 function TRenderedTextureNode.GetViewpoint: TX3DNode;
259 begin
260 if FdViewpoint.Value is TX3DNode then
261 Result := TX3DNode(FdViewpoint.Value)
262 else
263 Result := nil;
264 end;
265
266 procedure TRenderedTextureNode.SetViewpoint(const Value: TX3DNode);
267 begin
268 FdViewpoint.Send(Value);
269 end;
270
271 function TRenderedTextureNode.GetTextureProperties: TTexturePropertiesNode;
272 begin
273 if FdTextureProperties.Value is TTexturePropertiesNode then
274 Result := TTexturePropertiesNode(FdTextureProperties.Value)
275 else
276 Result := nil;
277 end;
278
279 procedure TRenderedTextureNode.SetTextureProperties(const Value: TTexturePropertiesNode);
280 begin
281 FdTextureProperties.Send(Value);
282 end;
283
284 function TRenderedTextureNode.GetRepeatS: Boolean;
285 begin
286 Result := FdRepeatS.Value;
287 end;
288
289 procedure TRenderedTextureNode.SetRepeatS(const Value: Boolean);
290 begin
291 FdRepeatS.Send(Value);
292 end;
293
294 function TRenderedTextureNode.GetRepeatT: Boolean;
295 begin
296 Result := FdRepeatT.Value;
297 end;
298
299 procedure TRenderedTextureNode.SetRepeatT(const Value: Boolean);
300 begin
301 FdRepeatT.Send(Value);
302 end;
303
304 function TRenderedTextureNode.GetRepeatR: Boolean;
305 begin
306 Result := FdRepeatR.Value;
307 end;
308
309 procedure TRenderedTextureNode.SetRepeatR(const Value: Boolean);
310 begin
311 FdRepeatR.Send(Value);
312 end;
313
314 procedure TRenderedTextureNode.SetDepthMap(const Value: array of boolean);
315 begin
316 FdDepthMap.Send(Value);
317 end;
318
319 procedure TRenderedTextureNode.SetDepthMap(const Value: TBooleanList);
320 begin
321 FdDepthMap.Send(Value);
322 end;
323
324 procedure TRenderedTextureNode.SetZOffset(const Value: array of Int32);
325 begin
326 FdZOffset.Send(Value);
327 end;
328
329 procedure TRenderedTextureNode.SetZOffset(const Value: TInt32List);
330 begin
331 FdZOffset.Send(Value);
332 end;
333
334 procedure TRenderedTextureNode.SetTargets(const Value: array of TAbstractTextureNode);
335 var
336 L: Integer;
337 A: array of TX3DNode;
338 begin
339 L := High(Value) + 1;
340 SetLength(A, L);
341 if L > 0 then
342 Move(Value[0], A[0], L * SizeOf(TAbstractTextureNode));
343 FdTargets.Send(A);
344 end;
345
346 function TRenderedTextureNode.GetFrameBufferMode: String;
347 begin
348 Result := FdFrameBufferMode.Value;
349 end;
350
351 procedure TRenderedTextureNode.SetFrameBufferMode(const Value: String);
352 begin
353 FdFrameBufferMode.Send(Value);
354 end;
355
356 procedure TRenderedTextureNode.SetExcludeNodes(const Value: array of TAbstractNode);
357 var
358 L: Integer;
359 A: array of TX3DNode;
360 begin
361 L := High(Value) + 1;
362 SetLength(A, L);
363 if L > 0 then
364 Move(Value[0], A[0], L * SizeOf(TAbstractNode));
365 FdExcludeNodes.Send(A);
366 end;
367
368 function TRenderedTextureNode.GetTriggerName: String;
369 begin
370 Result := FdTriggerName.Value;
371 end;
372
373 procedure TRenderedTextureNode.SetTriggerName(const Value: String);
374 begin
375 FdTriggerName.Send(Value);
376 end;
377
378 class function TRenderedTextureNode.ClassX3DType: String;
379 begin
380 Result := 'RenderedTexture';
381 end;
382
383 procedure TRenderedTextureNode.CreateNode;
384 begin
385 inherited;
386
387 FFdBackground := TSFNode.Create(Self, True, 'background', [TAbstractBackgroundNode]);
388 FdBackground.ChangeAlways := chGeneratedTextureUpdateNeeded;
389 AddField(FFdBackground);
390
391 FFdFog := TSFNode.Create(Self, True, 'fog', [TFogNode]);
392 FdFog.ChangeAlways := chGeneratedTextureUpdateNeeded;
393 AddField(FFdFog);
394
395 FFdEnvironment := TSFNode.Create(Self, True, 'environment', [TEnvironmentNode]);
396 FdEnvironment.ChangeAlways := chGeneratedTextureUpdateNeeded;
397 AddField(FFdEnvironment);
398
399 FFdScene := TSFNode.Create(Self, True, 'scene', [TAbstractNode]);
400 FdScene.ChangeAlways := chGeneratedTextureUpdateNeeded;
401 AddField(FFdScene);
402
403 FFdDimensions := TMFInt32.Create(Self, True, 'dimensions', [DefaultRenderedTextureWidth, DefaultRenderedTextureHeight, 4, 1, 1]);
404 FdDimensions.ChangeAlways := chTextureRendererProperties;
405 AddField(FFdDimensions);
406
407 FFdUpdate := TSFStringEnum.Create(Self, True, 'update', @TextureUpdateNames, Ord(High(TextureUpdateNames)) + 1, Ord(upNone));
408 FdUpdate.ChangeAlways := chRedisplay;
409 AddField(FFdUpdate);
410
411 FFdViewpoint := TSFNode.Create(Self, True, 'viewpoint', [TAbstractViewpointNode, TViewpointMirrorNode]);
412 FdViewpoint.ChangeAlways := chGeneratedTextureUpdateNeeded;
413 AddField(FFdViewpoint);
414
415 FFdTextureProperties := TSFNode.Create(Self, False, 'textureProperties', [TTexturePropertiesNode]);
416 FdTextureProperties.ChangeAlways := chTextureRendererProperties;
417 AddField(FFdTextureProperties);
418
419 FFdRepeatS := TSFBool.Create(Self, False, 'repeatS', true);
420 FdRepeatS.ChangeAlways := chTextureRendererProperties;
421 AddField(FFdRepeatS);
422
423 FFdRepeatT := TSFBool.Create(Self, False, 'repeatT', true);
424 FdRepeatT.ChangeAlways := chTextureRendererProperties;
425 AddField(FFdRepeatT);
426
427 FFdRepeatR := TSFBool.Create(Self, False, 'repeatR', true);
428 FdRepeatR.ChangeAlways := chTextureRendererProperties;
429 AddField(FFdRepeatR);
430
431 FFdDepthMap := TMFBool.Create(Self, True, 'depthMap', []);
432 FdDepthMap.ChangeAlways := chTextureRendererProperties;
433 AddField(FFdDepthMap);
434
435 FFdZOffset := TMFInt32.Create(Self, True, 'zOffset', []);
436 FdZOffset.ChangeAlways := chTextureRendererProperties;
437 AddField(FFdZOffset);
438
439 FFdTargets := TMFNode.Create(Self, True, 'targets', [TAbstractTextureNode]);
440 FdTargets.ChangeAlways := chTextureRendererProperties;
441 AddField(FFdTargets);
442
443 FEventViewing := TSFMatrix4fEvent.Create(Self, 'viewing', false);
444 AddEvent(FEventViewing);
445
446 FEventProjection := TSFMatrix4fEvent.Create(Self, 'projection', false);
447 AddEvent(FEventProjection);
448
449 FFdFrameBufferMode := TSFString.Create(Self, True, 'frameBufferMode', 'AUTO');
450 FdFrameBufferMode.ChangeAlways := chTextureRendererProperties;
451 AddField(FFdFrameBufferMode);
452
453 FFdExcludeNodes := TMFNode.Create(Self, False, 'excludeNodes', [TAbstractNode]);
454 FdExcludeNodes.ChangeAlways := chGeneratedTextureUpdateNeeded;
455 AddField(FFdExcludeNodes);
456
457 FFdTriggerName := TSFString.Create(Self, False, 'triggerName', 'Render');
458 FdTriggerName.ChangeAlways := chNone;
459 AddField(FFdTriggerName);
460
461 FEventImage_changed := TSFImageEvent.Create(Self, 'image_changed', false);
462 AddEvent(FEventImage_changed);
463
464 FEventRendering := TSFBoolEvent.Create(Self, 'rendering', false);
465 AddEvent(FEventRendering);
466 end;
467
468 {$endif read_implementation}