Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_surfaceemitter.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 GetSurface: TAbstractGeometryNode;
28 procedure SetSurface(const Value: TAbstractGeometryNode);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FEventSet_coordIndex: TMFInt32Event;
35 { }
36 public property EventSet_coordIndex: TMFInt32Event read FEventSet_coordIndex;
37
38 strict private FFdCoordIndex: TMFInt32;
39 { Internal wrapper for property @code(CoordIndex). This wrapper API may change, we advise to access simpler @code(CoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
40 public property FdCoordIndex: TMFInt32 read FFdCoordIndex;
41 { }
42 procedure SetCoordIndex(const Value: array of Int32); overload;
43 { }
44 procedure SetCoordIndex(const Value: TInt32List); overload;
45
46 strict private FFdSurface: TSFNode;
47 { Internal wrapper for property @code(Surface). This wrapper API may change, we advise to access simpler @code(Surface) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdSurface: TSFNode read FFdSurface;
49 { }
50 property Surface: TAbstractGeometryNode read GetSurface write SetSurface;
51
52 {$endif read_interface}
53
54 {$ifdef read_implementation}
55
56 { TSurfaceEmitterNode ----------------------------------------------- }
57
58 procedure TSurfaceEmitterNode.SetCoordIndex(const Value: array of Int32);
59 begin
60 FdCoordIndex.Send(Value);
61 end;
62
63 procedure TSurfaceEmitterNode.SetCoordIndex(const Value: TInt32List);
64 begin
65 FdCoordIndex.Send(Value);
66 end;
67
68 function TSurfaceEmitterNode.GetSurface: TAbstractGeometryNode;
69 begin
70 if FdSurface.Value is TAbstractGeometryNode then
71 Result := TAbstractGeometryNode(FdSurface.Value)
72 else
73 Result := nil;
74 end;
75
76 procedure TSurfaceEmitterNode.SetSurface(const Value: TAbstractGeometryNode);
77 begin
78 FdSurface.Send(Value);
79 end;
80
81 class function TSurfaceEmitterNode.ClassX3DType: String;
82 begin
83 Result := 'SurfaceEmitter';
84 end;
85
86 procedure TSurfaceEmitterNode.CreateNode;
87 begin
88 inherited;
89
90 FEventSet_coordIndex := TMFInt32Event.Create(Self, 'set_coordIndex', true);
91 AddEvent(FEventSet_coordIndex);
92
93 FFdCoordIndex := TMFInt32.Create(Self, False, 'coordIndex', [ -1]);
94 FdCoordIndex.ChangeAlways := chVisibleNonGeometry;
95 AddField(FFdCoordIndex);
96
97 FFdSurface := TSFNode.Create(Self, False, 'surface', [TAbstractGeometryNode]);
98 FdSurface.ChangeAlways := chVisibleNonGeometry;
99 AddField(FFdSurface);
100 end;
101
102 {$endif read_implementation}