Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_hanimjoint.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 GetCenter: TVector3;
28 procedure SetCenter(const Value: TVector3);
29 function GetDescription: String;
30 procedure SetDescription(const Value: String);
31 function GetLimitOrientation: TVector4;
32 procedure SetLimitOrientation(const Value: TVector4);
33 function GetNameField: String;
34 procedure SetNameField(const Value: String);
35 function GetRotation: TVector4;
36 procedure SetRotation(const Value: TVector4);
37 function GetScale: TVector3;
38 procedure SetScale(const Value: TVector3);
39 function GetScaleOrientation: TVector4;
40 procedure SetScaleOrientation(const Value: TVector4);
41 function GetTranslation: TVector3;
42 procedure SetTranslation(const Value: TVector3);
43 public
44 { Create node fields and events. }
45 procedure CreateNode; override;
46 class function ClassX3DType: String; override;
47
48 strict private FFdCenter: TSFVec3f;
49 { Internal wrapper for property @code(Center). This wrapper API may change, we advise to access simpler @code(Center) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdCenter: TSFVec3f read FFdCenter;
51 { }
52 property Center: TVector3 read GetCenter write SetCenter;
53
54 strict private FFdDescription: TSFString;
55 { Internal wrapper for property @code(Description). This wrapper API may change, we advise to access simpler @code(Description) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdDescription: TSFString read FFdDescription;
57 { }
58 property Description: String read GetDescription write SetDescription;
59
60 strict private FFdDisplacers: TMFNode;
61 { Internal wrapper for property @code(Displacers). This wrapper API may change, we advise to access simpler @code(Displacers) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdDisplacers: TMFNode read FFdDisplacers;
63 { }
64 procedure SetDisplacers(const Value: array of THAnimDisplacerNode);
65
66 strict private FFdLimitOrientation: TSFRotation;
67 { Internal wrapper for property @code(LimitOrientation). This wrapper API may change, we advise to access simpler @code(LimitOrientation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdLimitOrientation: TSFRotation read FFdLimitOrientation;
69 { }
70 property LimitOrientation: TVector4 read GetLimitOrientation write SetLimitOrientation;
71
72 strict private FFdLlimit: TMFFloat;
73 { Internal wrapper for property @code(Llimit). This wrapper API may change, we advise to access simpler @code(Llimit) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
74 public property FdLlimit: TMFFloat read FFdLlimit;
75 { }
76 procedure SetLlimit(const Value: array of Single); overload;
77 { }
78 procedure SetLlimit(const Value: TSingleList); overload;
79
80 strict private FFdName: TSFString;
81 { Internal wrapper for property @code(NameField). This wrapper API may change, we advise to access simpler @code(NameField) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
82 public property FdName: TSFString read FFdName;
83 { }
84 property NameField: String read GetNameField write SetNameField;
85
86 strict private FFdRotation: TSFRotation;
87 { Internal wrapper for property @code(Rotation). This wrapper API may change, we advise to access simpler @code(Rotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
88 public property FdRotation: TSFRotation read FFdRotation;
89 { }
90 property Rotation: TVector4 read GetRotation write SetRotation;
91
92 strict private FFdScale: TSFVec3f;
93 { 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). }
94 public property FdScale: TSFVec3f read FFdScale;
95 { }
96 property Scale: TVector3 read GetScale write SetScale;
97
98 strict private FFdScaleOrientation: TSFRotation;
99 { Internal wrapper for property @code(ScaleOrientation). This wrapper API may change, we advise to access simpler @code(ScaleOrientation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
100 public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;
101 { }
102 property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation;
103
104 strict private FFdSkinCoordIndex: TMFInt32;
105 { Internal wrapper for property @code(SkinCoordIndex). This wrapper API may change, we advise to access simpler @code(SkinCoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
106 public property FdSkinCoordIndex: TMFInt32 read FFdSkinCoordIndex;
107 { }
108 procedure SetSkinCoordIndex(const Value: array of Int32); overload;
109 { }
110 procedure SetSkinCoordIndex(const Value: TInt32List); overload;
111
112 strict private FFdSkinCoordWeight: TMFFloat;
113 { Internal wrapper for property @code(SkinCoordWeight). This wrapper API may change, we advise to access simpler @code(SkinCoordWeight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
114 public property FdSkinCoordWeight: TMFFloat read FFdSkinCoordWeight;
115 { }
116 procedure SetSkinCoordWeight(const Value: array of Single); overload;
117 { }
118 procedure SetSkinCoordWeight(const Value: TSingleList); overload;
119
120 strict private FFdStiffness: TMFFloat;
121 { Internal wrapper for property @code(Stiffness). This wrapper API may change, we advise to access simpler @code(Stiffness) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdStiffness: TMFFloat read FFdStiffness;
123 { }
124 procedure SetStiffness(const Value: array of Single); overload;
125 { }
126 procedure SetStiffness(const Value: TSingleList); overload;
127
128 strict private FFdTranslation: TSFVec3f;
129 { Internal wrapper for property @code(Translation). This wrapper API may change, we advise to access simpler @code(Translation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
130 public property FdTranslation: TSFVec3f read FFdTranslation;
131 { }
132 property Translation: TVector3 read GetTranslation write SetTranslation;
133
134 strict private FFdUlimit: TMFFloat;
135 { Internal wrapper for property @code(Ulimit). This wrapper API may change, we advise to access simpler @code(Ulimit) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
136 public property FdUlimit: TMFFloat read FFdUlimit;
137 { }
138 procedure SetUlimit(const Value: array of Single); overload;
139 { }
140 procedure SetUlimit(const Value: TSingleList); overload;
141
142 {$endif read_interface}
143
144 {$ifdef read_implementation}
145
146 { THAnimJointNode ----------------------------------------------- }
147
148 function THAnimJointNode.GetCenter: TVector3;
149 begin
150 Result := FdCenter.Value;
151 end;
152
153 procedure THAnimJointNode.SetCenter(const Value: TVector3);
154 begin
155 FdCenter.Send(Value);
156 end;
157
158 function THAnimJointNode.GetDescription: String;
159 begin
160 Result := FdDescription.Value;
161 end;
162
163 procedure THAnimJointNode.SetDescription(const Value: String);
164 begin
165 FdDescription.Send(Value);
166 end;
167
168 procedure THAnimJointNode.SetDisplacers(const Value: array of THAnimDisplacerNode);
169 var
170 L: Integer;
171 A: array of TX3DNode;
172 begin
173 L := High(Value) + 1;
174 SetLength(A, L);
175 if L > 0 then
176 Move(Value[0], A[0], L * SizeOf(THAnimDisplacerNode));
177 FdDisplacers.Send(A);
178 end;
179
180 function THAnimJointNode.GetLimitOrientation: TVector4;
181 begin
182 Result := FdLimitOrientation.Value;
183 end;
184
185 procedure THAnimJointNode.SetLimitOrientation(const Value: TVector4);
186 begin
187 FdLimitOrientation.Send(Value);
188 end;
189
190 procedure THAnimJointNode.SetLlimit(const Value: array of Single);
191 begin
192 FdLlimit.Send(Value);
193 end;
194
195 procedure THAnimJointNode.SetLlimit(const Value: TSingleList);
196 begin
197 FdLlimit.Send(Value);
198 end;
199
200 function THAnimJointNode.GetNameField: String;
201 begin
202 Result := FdName.Value;
203 end;
204
205 procedure THAnimJointNode.SetNameField(const Value: String);
206 begin
207 FdName.Send(Value);
208 end;
209
210 function THAnimJointNode.GetRotation: TVector4;
211 begin
212 Result := FdRotation.Value;
213 end;
214
215 procedure THAnimJointNode.SetRotation(const Value: TVector4);
216 begin
217 FdRotation.Send(Value);
218 end;
219
220 function THAnimJointNode.GetScale: TVector3;
221 begin
222 Result := FdScale.Value;
223 end;
224
225 procedure THAnimJointNode.SetScale(const Value: TVector3);
226 begin
227 FdScale.Send(Value);
228 end;
229
230 function THAnimJointNode.GetScaleOrientation: TVector4;
231 begin
232 Result := FdScaleOrientation.Value;
233 end;
234
235 procedure THAnimJointNode.SetScaleOrientation(const Value: TVector4);
236 begin
237 FdScaleOrientation.Send(Value);
238 end;
239
240 procedure THAnimJointNode.SetSkinCoordIndex(const Value: array of Int32);
241 begin
242 FdSkinCoordIndex.Send(Value);
243 end;
244
245 procedure THAnimJointNode.SetSkinCoordIndex(const Value: TInt32List);
246 begin
247 FdSkinCoordIndex.Send(Value);
248 end;
249
250 procedure THAnimJointNode.SetSkinCoordWeight(const Value: array of Single);
251 begin
252 FdSkinCoordWeight.Send(Value);
253 end;
254
255 procedure THAnimJointNode.SetSkinCoordWeight(const Value: TSingleList);
256 begin
257 FdSkinCoordWeight.Send(Value);
258 end;
259
260 procedure THAnimJointNode.SetStiffness(const Value: array of Single);
261 begin
262 FdStiffness.Send(Value);
263 end;
264
265 procedure THAnimJointNode.SetStiffness(const Value: TSingleList);
266 begin
267 FdStiffness.Send(Value);
268 end;
269
270 function THAnimJointNode.GetTranslation: TVector3;
271 begin
272 Result := FdTranslation.Value;
273 end;
274
275 procedure THAnimJointNode.SetTranslation(const Value: TVector3);
276 begin
277 FdTranslation.Send(Value);
278 end;
279
280 procedure THAnimJointNode.SetUlimit(const Value: array of Single);
281 begin
282 FdUlimit.Send(Value);
283 end;
284
285 procedure THAnimJointNode.SetUlimit(const Value: TSingleList);
286 begin
287 FdUlimit.Send(Value);
288 end;
289
290 class function THAnimJointNode.ClassX3DType: String;
291 begin
292 Result := 'HAnimJoint';
293 end;
294
295 procedure THAnimJointNode.CreateNode;
296 begin
297 inherited;
298
299 FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0));
300 FdCenter.ChangeAlways := chTransform;
301 AddField(FFdCenter);
302
303 FFdDescription := TSFString.Create(Self, True, 'description', '');
304 FdDescription.ChangeAlways := chNone;
305 AddField(FFdDescription);
306
307 FFdDisplacers := TMFNode.Create(Self, True, 'displacers', [THAnimDisplacerNode]);
308 FdDisplacers.ChangeAlways := chVisibleNonGeometry;
309 AddField(FFdDisplacers);
310
311 FFdLimitOrientation := TSFRotation.Create(Self, True, 'limitOrientation', Vector3(0, 0, 1), 0);
312 FdLimitOrientation.ChangeAlways := chVisibleNonGeometry;
313 AddField(FFdLimitOrientation);
314
315 FFdLlimit := TMFFloat.Create(Self, True, 'llimit', []);
316 FdLlimit.ChangeAlways := chVisibleNonGeometry;
317 AddField(FFdLlimit);
318
319 FFdName := TSFString.Create(Self, True, 'name', '');
320 FdName.ChangeAlways := chVisibleNonGeometry;
321 AddField(FFdName);
322
323 FFdRotation := TSFRotation.Create(Self, True, 'rotation', Vector3(0, 0, 1), 0);
324 FdRotation.ChangeAlways := chTransform;
325 AddField(FFdRotation);
326
327 FFdScale := TSFVec3f.Create(Self, True, 'scale', Vector3(1, 1, 1));
328 FdScale.ChangeAlways := chTransform;
329 AddField(FFdScale);
330
331 FFdScaleOrientation := TSFRotation.Create(Self, True, 'scaleOrientation', Vector3(0, 0, 1), 0);
332 FdScaleOrientation.ChangeAlways := chTransform;
333 AddField(FFdScaleOrientation);
334
335 FFdSkinCoordIndex := TMFInt32.Create(Self, True, 'skinCoordIndex', []);
336 FdSkinCoordIndex.ChangeAlways := chVisibleNonGeometry;
337 AddField(FFdSkinCoordIndex);
338
339 FFdSkinCoordWeight := TMFFloat.Create(Self, True, 'skinCoordWeight', []);
340 FdSkinCoordWeight.ChangeAlways := chVisibleNonGeometry;
341 AddField(FFdSkinCoordWeight);
342
343 FFdStiffness := TMFFloat.Create(Self, True, 'stiffness', [0, 0, 0]);
344 FdStiffness.ChangeAlways := chVisibleNonGeometry;
345 AddField(FFdStiffness);
346
347 FFdTranslation := TSFVec3f.Create(Self, True, 'translation', Vector3(0, 0, 0));
348 FdTranslation.ChangeAlways := chTransform;
349 AddField(FFdTranslation);
350
351 FFdUlimit := TMFFloat.Create(Self, True, 'ulimit', []);
352 FdUlimit.ChangeAlways := chVisibleNonGeometry;
353 AddField(FFdUlimit);
354 end;
355
356 {$endif read_implementation}