Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_extrusion.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 GetBeginCap: Boolean;
28 procedure SetBeginCap(const Value: Boolean);
29 function GetCcw: Boolean;
30 procedure SetCcw(const Value: Boolean);
31 function GetConvex: Boolean;
32 procedure SetConvex(const Value: Boolean);
33 function GetCreaseAngle: Single;
34 procedure SetCreaseAngle(const Value: Single);
35 function GetEndCap: Boolean;
36 procedure SetEndCap(const Value: Boolean);
37 function GetTexCoord: TX3DNode;
38 procedure SetTexCoord(const Value: TX3DNode);
39 public
40 { Create node fields and events. }
41 procedure CreateNode; override;
42 class function ClassX3DType: String; override;
43
44 strict private FEventSet_crossSection: TMFVec2fEvent;
45 { }
46 public property EventSet_crossSection: TMFVec2fEvent read FEventSet_crossSection;
47
48 strict private FEventSet_orientation: TMFRotationEvent;
49 { }
50 public property EventSet_orientation: TMFRotationEvent read FEventSet_orientation;
51
52 strict private FEventSet_scale: TMFVec2fEvent;
53 { }
54 public property EventSet_scale: TMFVec2fEvent read FEventSet_scale;
55
56 strict private FEventSet_spine: TMFVec3fEvent;
57 { }
58 public property EventSet_spine: TMFVec3fEvent read FEventSet_spine;
59
60 strict private FFdBeginCap: TSFBool;
61 { Internal wrapper for property @code(BeginCap). This wrapper API may change, we advise to access simpler @code(BeginCap) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdBeginCap: TSFBool read FFdBeginCap;
63 { }
64 property BeginCap: Boolean read GetBeginCap write SetBeginCap;
65
66 strict private FFdCcw: TSFBool;
67 { Internal wrapper for property @code(Ccw). This wrapper API may change, we advise to access simpler @code(Ccw) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdCcw: TSFBool read FFdCcw;
69 { }
70 property Ccw: Boolean read GetCcw write SetCcw;
71
72 strict private FFdConvex: TSFBool;
73 { Internal wrapper for property @code(Convex). This wrapper API may change, we advise to access simpler @code(Convex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
74 public property FdConvex: TSFBool read FFdConvex;
75 { }
76 property Convex: Boolean read GetConvex write SetConvex;
77
78 strict private FFdCreaseAngle: TSFFloat;
79 { Internal wrapper for property @code(CreaseAngle). This wrapper API may change, we advise to access simpler @code(CreaseAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
80 public property FdCreaseAngle: TSFFloat read FFdCreaseAngle;
81 { }
82 property CreaseAngle: Single read GetCreaseAngle write SetCreaseAngle;
83
84 strict private FFdCrossSection: TMFVec2f;
85 { Internal wrapper for property @code(CrossSection). This wrapper API may change, we advise to access simpler @code(CrossSection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdCrossSection: TMFVec2f read FFdCrossSection;
87 { }
88 procedure SetCrossSection(const Value: array of TVector2); overload;
89 { }
90 procedure SetCrossSection(const Value: TVector2List); overload;
91
92 strict private FFdEndCap: TSFBool;
93 { Internal wrapper for property @code(EndCap). This wrapper API may change, we advise to access simpler @code(EndCap) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
94 public property FdEndCap: TSFBool read FFdEndCap;
95 { }
96 property EndCap: Boolean read GetEndCap write SetEndCap;
97
98 strict private FFdOrientation: TMFRotation;
99 { Internal wrapper for property @code(Orientation). This wrapper API may change, we advise to access simpler @code(Orientation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
100 public property FdOrientation: TMFRotation read FFdOrientation;
101 { }
102 procedure SetOrientation(const Value: array of TVector4); overload;
103 { }
104 procedure SetOrientation(const Value: TVector4List); overload;
105
106 strict private FFdScale: TMFVec2f;
107 { Internal wrapper for property @code(Scale). This wrapper API may change, we advise to access simpler @code(Scale) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
108 public property FdScale: TMFVec2f read FFdScale;
109 { }
110 procedure SetScale(const Value: array of TVector2); overload;
111 { }
112 procedure SetScale(const Value: TVector2List); overload;
113
114 strict private FFdSolid: TSFBool;
115 { Internal wrapper for property @code(Solid). This wrapper API may change, we advise to access simpler @code(Solid) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdSolid: TSFBool read FFdSolid;
117
118 strict private FFdSpine: TMFVec3f;
119 { Internal wrapper for property @code(Spine). This wrapper API may change, we advise to access simpler @code(Spine) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
120 public property FdSpine: TMFVec3f read FFdSpine;
121 { }
122 procedure SetSpine(const Value: array of TVector3); overload;
123 { }
124 procedure SetSpine(const Value: TVector3List); overload;
125
126 strict private FFdTexCoord: TSFNode;
127 { Internal wrapper for property @code(TexCoord). This wrapper API may change, we advise to access simpler @code(TexCoord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdTexCoord: TSFNode read FFdTexCoord;
129 { }
130 property TexCoord: TX3DNode read GetTexCoord write SetTexCoord;
131
132 {$endif read_interface}
133
134 {$ifdef read_implementation}
135
136 { TExtrusionNode ----------------------------------------------- }
137
138 function TExtrusionNode.GetBeginCap: Boolean;
139 begin
140 Result := FdBeginCap.Value;
141 end;
142
143 procedure TExtrusionNode.SetBeginCap(const Value: Boolean);
144 begin
145 FdBeginCap.Send(Value);
146 end;
147
148 function TExtrusionNode.GetCcw: Boolean;
149 begin
150 Result := FdCcw.Value;
151 end;
152
153 procedure TExtrusionNode.SetCcw(const Value: Boolean);
154 begin
155 FdCcw.Send(Value);
156 end;
157
158 function TExtrusionNode.GetConvex: Boolean;
159 begin
160 Result := FdConvex.Value;
161 end;
162
163 procedure TExtrusionNode.SetConvex(const Value: Boolean);
164 begin
165 FdConvex.Send(Value);
166 end;
167
168 function TExtrusionNode.GetCreaseAngle: Single;
169 begin
170 Result := FdCreaseAngle.Value;
171 end;
172
173 procedure TExtrusionNode.SetCreaseAngle(const Value: Single);
174 begin
175 FdCreaseAngle.Send(Value);
176 end;
177
178 procedure TExtrusionNode.SetCrossSection(const Value: array of TVector2);
179 begin
180 FdCrossSection.Send(Value);
181 end;
182
183 procedure TExtrusionNode.SetCrossSection(const Value: TVector2List);
184 begin
185 FdCrossSection.Send(Value);
186 end;
187
188 function TExtrusionNode.GetEndCap: Boolean;
189 begin
190 Result := FdEndCap.Value;
191 end;
192
193 procedure TExtrusionNode.SetEndCap(const Value: Boolean);
194 begin
195 FdEndCap.Send(Value);
196 end;
197
198 procedure TExtrusionNode.SetOrientation(const Value: array of TVector4);
199 begin
200 FdOrientation.Send(Value);
201 end;
202
203 procedure TExtrusionNode.SetOrientation(const Value: TVector4List);
204 begin
205 FdOrientation.Send(Value);
206 end;
207
208 procedure TExtrusionNode.SetScale(const Value: array of TVector2);
209 begin
210 FdScale.Send(Value);
211 end;
212
213 procedure TExtrusionNode.SetScale(const Value: TVector2List);
214 begin
215 FdScale.Send(Value);
216 end;
217
218 procedure TExtrusionNode.SetSpine(const Value: array of TVector3);
219 begin
220 FdSpine.Send(Value);
221 end;
222
223 procedure TExtrusionNode.SetSpine(const Value: TVector3List);
224 begin
225 FdSpine.Send(Value);
226 end;
227
228 function TExtrusionNode.GetTexCoord: TX3DNode;
229 begin
230 if FdTexCoord.Value is TX3DNode then
231 Result := TX3DNode(FdTexCoord.Value)
232 else
233 Result := nil;
234 end;
235
236 procedure TExtrusionNode.SetTexCoord(const Value: TX3DNode);
237 begin
238 FdTexCoord.Send(Value);
239 end;
240
241 class function TExtrusionNode.ClassX3DType: String;
242 begin
243 Result := 'Extrusion';
244 end;
245
246 procedure TExtrusionNode.CreateNode;
247 begin
248 inherited;
249
250 FEventSet_crossSection := TMFVec2fEvent.Create(Self, 'set_crossSection', true);
251 AddEvent(FEventSet_crossSection);
252
253 FEventSet_orientation := TMFRotationEvent.Create(Self, 'set_orientation', true);
254 AddEvent(FEventSet_orientation);
255
256 FEventSet_scale := TMFVec2fEvent.Create(Self, 'set_scale', true);
257 AddEvent(FEventSet_scale);
258
259 FEventSet_spine := TMFVec3fEvent.Create(Self, 'set_spine', true);
260 AddEvent(FEventSet_spine);
261
262 FFdBeginCap := TSFBool.Create(Self, False, 'beginCap', true);
263 FdBeginCap.ChangeAlways := chGeometry;
264 AddField(FFdBeginCap);
265
266 FFdCcw := TSFBool.Create(Self, False, 'ccw', true);
267 FdCcw.ChangeAlways := chGeometry;
268 AddField(FFdCcw);
269
270 FFdConvex := TSFBool.Create(Self, False, 'convex', true);
271 FdConvex.ChangeAlways := chGeometry;
272 AddField(FFdConvex);
273
274 FFdCreaseAngle := TSFFloat.Create(Self, False, 'creaseAngle', 0);
275 FdCreaseAngle.ChangeAlways := chGeometry;
276 FdCreaseAngle.Angle := true;
277 FdCreaseAngle.MustBeNonnegative := true;
278 AddField(FFdCreaseAngle);
279
280 FFdCrossSection := TMFVec2f.Create(Self, False, 'crossSection', [ Vector2(1, 1), Vector2(1, -1), Vector2(-1, -1), Vector2(-1, 1), Vector2(1, 1) ]);
281 FdCrossSection.ChangeAlways := chGeometry;
282 AddField(FFdCrossSection);
283
284 FFdEndCap := TSFBool.Create(Self, False, 'endCap', true);
285 FdEndCap.ChangeAlways := chGeometry;
286 AddField(FFdEndCap);
287
288 FFdOrientation := TMFRotation.Create(Self, False, 'orientation', [ Vector4(0, 0, 1, 0) ]);
289 FdOrientation.ChangeAlways := chGeometry;
290 AddField(FFdOrientation);
291
292 FFdScale := TMFVec2f.Create(Self, False, 'scale', [ Vector2(1, 1) ]);
293 FdScale.ChangeAlways := chGeometry;
294 AddField(FFdScale);
295
296 FFdSolid := TSFBool.Create(Self, False, 'solid', true);
297 FdSolid.ChangeAlways := chGeometry;
298 AddField(FFdSolid);
299
300 FFdSpine := TMFVec3f.Create(Self, False, 'spine', [ Vector3(0, 0, 0), Vector3(0, 1, 0) ]);
301 FdSpine.ChangeAlways := chGeometry;
302 AddField(FFdSpine);
303
304 FFdTexCoord := TSFNode.Create(Self, True, 'texCoord', [TTextureCoordinateGeneratorNode, TProjectedTextureCoordinateNode, TMultiGeneratedTextureCoordinateNode]);
305 FdTexCoord.ChangeAlways := chGeometry;
306 FdTexCoord.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations;
307 AddField(FFdTexCoord);
308 end;
309
310 {$endif read_implementation}