Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_polylineemitter.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 GetCoord: TAbstractCoordinateNode;
28 procedure SetCoord(const Value: TAbstractCoordinateNode);
29 function GetDirection: TVector3;
30 procedure SetDirection(const Value: TVector3);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FEventSet_coordIndex: TMFInt32Event;
37 { }
38 public property EventSet_coordIndex: TMFInt32Event read FEventSet_coordIndex;
39
40 strict private FFdCoord: TSFNode;
41 { Internal wrapper for property @code(Coord). This wrapper API may change, we advise to access simpler @code(Coord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdCoord: TSFNode read FFdCoord;
43 { }
44 property Coord: TAbstractCoordinateNode read GetCoord write SetCoord;
45
46 strict private FFdDirection: TSFVec3f;
47 { Internal wrapper for property @code(Direction). This wrapper API may change, we advise to access simpler @code(Direction) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdDirection: TSFVec3f read FFdDirection;
49 { }
50 property Direction: TVector3 read GetDirection write SetDirection;
51
52 strict private FFdCoordIndex: TMFInt32;
53 { 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). }
54 public property FdCoordIndex: TMFInt32 read FFdCoordIndex;
55 { }
56 procedure SetCoordIndex(const Value: array of Int32); overload;
57 { }
58 procedure SetCoordIndex(const Value: TInt32List); overload;
59
60 {$endif read_interface}
61
62 {$ifdef read_implementation}
63
64 { TPolylineEmitterNode ----------------------------------------------- }
65
66 function TPolylineEmitterNode.GetCoord: TAbstractCoordinateNode;
67 begin
68 if FdCoord.Value is TAbstractCoordinateNode then
69 Result := TAbstractCoordinateNode(FdCoord.Value)
70 else
71 Result := nil;
72 end;
73
74 procedure TPolylineEmitterNode.SetCoord(const Value: TAbstractCoordinateNode);
75 begin
76 FdCoord.Send(Value);
77 end;
78
79 function TPolylineEmitterNode.GetDirection: TVector3;
80 begin
81 Result := FdDirection.Value;
82 end;
83
84 procedure TPolylineEmitterNode.SetDirection(const Value: TVector3);
85 begin
86 FdDirection.Send(Value);
87 end;
88
89 procedure TPolylineEmitterNode.SetCoordIndex(const Value: array of Int32);
90 begin
91 FdCoordIndex.Send(Value);
92 end;
93
94 procedure TPolylineEmitterNode.SetCoordIndex(const Value: TInt32List);
95 begin
96 FdCoordIndex.Send(Value);
97 end;
98
99 class function TPolylineEmitterNode.ClassX3DType: String;
100 begin
101 Result := 'PolylineEmitter';
102 end;
103
104 procedure TPolylineEmitterNode.CreateNode;
105 begin
106 inherited;
107
108 FEventSet_coordIndex := TMFInt32Event.Create(Self, 'set_coordIndex', true);
109 AddEvent(FEventSet_coordIndex);
110
111 FFdCoord := TSFNode.Create(Self, True, 'coord', [TAbstractCoordinateNode]);
112 FdCoord.ChangeAlways := chVisibleNonGeometry;
113 AddField(FFdCoord);
114
115 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 1, 0));
116 FdDirection.ChangeAlways := chVisibleNonGeometry;
117 AddField(FFdDirection);
118
119 FFdCoordIndex := TMFInt32.Create(Self, False, 'coordIndex', [-1]);
120 FdCoordIndex.ChangeAlways := chVisibleNonGeometry;
121 AddField(FFdCoordIndex);
122 end;
123
124 {$endif read_implementation}