Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_motorjoint.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 GetAxis1Angle: Single;
28 procedure SetAxis1Angle(const Value: Single);
29 function GetAxis1Torque: Single;
30 procedure SetAxis1Torque(const Value: Single);
31 function GetAxis2Angle: Single;
32 procedure SetAxis2Angle(const Value: Single);
33 function GetAxis2Torque: Single;
34 procedure SetAxis2Torque(const Value: Single);
35 function GetAxis3Angle: Single;
36 procedure SetAxis3Angle(const Value: Single);
37 function GetAxis3Torque: Single;
38 procedure SetAxis3Torque(const Value: Single);
39 function GetEnabledAxes: Integer;
40 procedure SetEnabledAxes(const Value: Integer);
41 function GetMotor1Axis: TVector3;
42 procedure SetMotor1Axis(const Value: TVector3);
43 function GetMotor2Axis: TVector3;
44 procedure SetMotor2Axis(const Value: TVector3);
45 function GetMotor3Axis: TVector3;
46 procedure SetMotor3Axis(const Value: TVector3);
47 function GetStop1Bounce: Single;
48 procedure SetStop1Bounce(const Value: Single);
49 function GetStop1ErrorCorrection: Single;
50 procedure SetStop1ErrorCorrection(const Value: Single);
51 function GetStop2Bounce: Single;
52 procedure SetStop2Bounce(const Value: Single);
53 function GetStop2ErrorCorrection: Single;
54 procedure SetStop2ErrorCorrection(const Value: Single);
55 function GetStop3Bounce: Single;
56 procedure SetStop3Bounce(const Value: Single);
57 function GetStop3ErrorCorrection: Single;
58 procedure SetStop3ErrorCorrection(const Value: Single);
59 function GetAutoCalc: Boolean;
60 procedure SetAutoCalc(const Value: Boolean);
61 public
62 { Create node fields and events. }
63 procedure CreateNode; override;
64 class function ClassX3DType: String; override;
65
66 strict private FFdAxis1Angle: TSFFloat;
67 { Internal wrapper for property @code(Axis1Angle). This wrapper API may change, we advise to access simpler @code(Axis1Angle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdAxis1Angle: TSFFloat read FFdAxis1Angle;
69 { }
70 property Axis1Angle: Single read GetAxis1Angle write SetAxis1Angle;
71
72 strict private FFdAxis1Torque: TSFFloat;
73 { Internal wrapper for property @code(Axis1Torque). This wrapper API may change, we advise to access simpler @code(Axis1Torque) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
74 public property FdAxis1Torque: TSFFloat read FFdAxis1Torque;
75 { }
76 property Axis1Torque: Single read GetAxis1Torque write SetAxis1Torque;
77
78 strict private FFdAxis2Angle: TSFFloat;
79 { Internal wrapper for property @code(Axis2Angle). This wrapper API may change, we advise to access simpler @code(Axis2Angle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
80 public property FdAxis2Angle: TSFFloat read FFdAxis2Angle;
81 { }
82 property Axis2Angle: Single read GetAxis2Angle write SetAxis2Angle;
83
84 strict private FFdAxis2Torque: TSFFloat;
85 { Internal wrapper for property @code(Axis2Torque). This wrapper API may change, we advise to access simpler @code(Axis2Torque) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdAxis2Torque: TSFFloat read FFdAxis2Torque;
87 { }
88 property Axis2Torque: Single read GetAxis2Torque write SetAxis2Torque;
89
90 strict private FFdAxis3Angle: TSFFloat;
91 { Internal wrapper for property @code(Axis3Angle). This wrapper API may change, we advise to access simpler @code(Axis3Angle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdAxis3Angle: TSFFloat read FFdAxis3Angle;
93 { }
94 property Axis3Angle: Single read GetAxis3Angle write SetAxis3Angle;
95
96 strict private FFdAxis3Torque: TSFFloat;
97 { Internal wrapper for property @code(Axis3Torque). This wrapper API may change, we advise to access simpler @code(Axis3Torque) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
98 public property FdAxis3Torque: TSFFloat read FFdAxis3Torque;
99 { }
100 property Axis3Torque: Single read GetAxis3Torque write SetAxis3Torque;
101
102 strict private FFdEnabledAxes: TSFInt32;
103 { Internal wrapper for property @code(EnabledAxes). This wrapper API may change, we advise to access simpler @code(EnabledAxes) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
104 public property FdEnabledAxes: TSFInt32 read FFdEnabledAxes;
105 { }
106 property EnabledAxes: Integer read GetEnabledAxes write SetEnabledAxes;
107
108 strict private FFdMotor1Axis: TSFVec3f;
109 { Internal wrapper for property @code(Motor1Axis). This wrapper API may change, we advise to access simpler @code(Motor1Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
110 public property FdMotor1Axis: TSFVec3f read FFdMotor1Axis;
111 { }
112 property Motor1Axis: TVector3 read GetMotor1Axis write SetMotor1Axis;
113
114 strict private FFdMotor2Axis: TSFVec3f;
115 { Internal wrapper for property @code(Motor2Axis). This wrapper API may change, we advise to access simpler @code(Motor2Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdMotor2Axis: TSFVec3f read FFdMotor2Axis;
117 { }
118 property Motor2Axis: TVector3 read GetMotor2Axis write SetMotor2Axis;
119
120 strict private FFdMotor3Axis: TSFVec3f;
121 { Internal wrapper for property @code(Motor3Axis). This wrapper API may change, we advise to access simpler @code(Motor3Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdMotor3Axis: TSFVec3f read FFdMotor3Axis;
123 { }
124 property Motor3Axis: TVector3 read GetMotor3Axis write SetMotor3Axis;
125
126 strict private FFdStop1Bounce: TSFFloat;
127 { Internal wrapper for property @code(Stop1Bounce). This wrapper API may change, we advise to access simpler @code(Stop1Bounce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdStop1Bounce: TSFFloat read FFdStop1Bounce;
129 { }
130 property Stop1Bounce: Single read GetStop1Bounce write SetStop1Bounce;
131
132 strict private FFdStop1ErrorCorrection: TSFFloat;
133 { Internal wrapper for property @code(Stop1ErrorCorrection). This wrapper API may change, we advise to access simpler @code(Stop1ErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
134 public property FdStop1ErrorCorrection: TSFFloat read FFdStop1ErrorCorrection;
135 { }
136 property Stop1ErrorCorrection: Single read GetStop1ErrorCorrection write SetStop1ErrorCorrection;
137
138 strict private FFdStop2Bounce: TSFFloat;
139 { Internal wrapper for property @code(Stop2Bounce). This wrapper API may change, we advise to access simpler @code(Stop2Bounce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
140 public property FdStop2Bounce: TSFFloat read FFdStop2Bounce;
141 { }
142 property Stop2Bounce: Single read GetStop2Bounce write SetStop2Bounce;
143
144 strict private FFdStop2ErrorCorrection: TSFFloat;
145 { Internal wrapper for property @code(Stop2ErrorCorrection). This wrapper API may change, we advise to access simpler @code(Stop2ErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
146 public property FdStop2ErrorCorrection: TSFFloat read FFdStop2ErrorCorrection;
147 { }
148 property Stop2ErrorCorrection: Single read GetStop2ErrorCorrection write SetStop2ErrorCorrection;
149
150 strict private FFdStop3Bounce: TSFFloat;
151 { Internal wrapper for property @code(Stop3Bounce). This wrapper API may change, we advise to access simpler @code(Stop3Bounce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
152 public property FdStop3Bounce: TSFFloat read FFdStop3Bounce;
153 { }
154 property Stop3Bounce: Single read GetStop3Bounce write SetStop3Bounce;
155
156 strict private FFdStop3ErrorCorrection: TSFFloat;
157 { Internal wrapper for property @code(Stop3ErrorCorrection). This wrapper API may change, we advise to access simpler @code(Stop3ErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
158 public property FdStop3ErrorCorrection: TSFFloat read FFdStop3ErrorCorrection;
159 { }
160 property Stop3ErrorCorrection: Single read GetStop3ErrorCorrection write SetStop3ErrorCorrection;
161
162 strict private FEventMotor1Angle: TSFFloatEvent;
163 { }
164 public property EventMotor1Angle: TSFFloatEvent read FEventMotor1Angle;
165
166 strict private FEventMotor1AngleRate: TSFFloatEvent;
167 { }
168 public property EventMotor1AngleRate: TSFFloatEvent read FEventMotor1AngleRate;
169
170 strict private FEventMotor2Angle: TSFFloatEvent;
171 { }
172 public property EventMotor2Angle: TSFFloatEvent read FEventMotor2Angle;
173
174 strict private FEventMotor2AngleRate: TSFFloatEvent;
175 { }
176 public property EventMotor2AngleRate: TSFFloatEvent read FEventMotor2AngleRate;
177
178 strict private FEventMotor3Angle: TSFFloatEvent;
179 { }
180 public property EventMotor3Angle: TSFFloatEvent read FEventMotor3Angle;
181
182 strict private FEventMotor3AngleRate: TSFFloatEvent;
183 { }
184 public property EventMotor3AngleRate: TSFFloatEvent read FEventMotor3AngleRate;
185
186 strict private FFdAutoCalc: TSFBool;
187 { Internal wrapper for property @code(AutoCalc). This wrapper API may change, we advise to access simpler @code(AutoCalc) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
188 public property FdAutoCalc: TSFBool read FFdAutoCalc;
189 { }
190 property AutoCalc: Boolean read GetAutoCalc write SetAutoCalc;
191
192 {$endif read_interface}
193
194 {$ifdef read_implementation}
195
196 { TMotorJointNode ----------------------------------------------- }
197
198 function TMotorJointNode.GetAxis1Angle: Single;
199 begin
200 Result := FdAxis1Angle.Value;
201 end;
202
203 procedure TMotorJointNode.SetAxis1Angle(const Value: Single);
204 begin
205 FdAxis1Angle.Send(Value);
206 end;
207
208 function TMotorJointNode.GetAxis1Torque: Single;
209 begin
210 Result := FdAxis1Torque.Value;
211 end;
212
213 procedure TMotorJointNode.SetAxis1Torque(const Value: Single);
214 begin
215 FdAxis1Torque.Send(Value);
216 end;
217
218 function TMotorJointNode.GetAxis2Angle: Single;
219 begin
220 Result := FdAxis2Angle.Value;
221 end;
222
223 procedure TMotorJointNode.SetAxis2Angle(const Value: Single);
224 begin
225 FdAxis2Angle.Send(Value);
226 end;
227
228 function TMotorJointNode.GetAxis2Torque: Single;
229 begin
230 Result := FdAxis2Torque.Value;
231 end;
232
233 procedure TMotorJointNode.SetAxis2Torque(const Value: Single);
234 begin
235 FdAxis2Torque.Send(Value);
236 end;
237
238 function TMotorJointNode.GetAxis3Angle: Single;
239 begin
240 Result := FdAxis3Angle.Value;
241 end;
242
243 procedure TMotorJointNode.SetAxis3Angle(const Value: Single);
244 begin
245 FdAxis3Angle.Send(Value);
246 end;
247
248 function TMotorJointNode.GetAxis3Torque: Single;
249 begin
250 Result := FdAxis3Torque.Value;
251 end;
252
253 procedure TMotorJointNode.SetAxis3Torque(const Value: Single);
254 begin
255 FdAxis3Torque.Send(Value);
256 end;
257
258 function TMotorJointNode.GetEnabledAxes: Integer;
259 begin
260 Result := FdEnabledAxes.Value;
261 end;
262
263 procedure TMotorJointNode.SetEnabledAxes(const Value: Integer);
264 begin
265 FdEnabledAxes.Send(Value);
266 end;
267
268 function TMotorJointNode.GetMotor1Axis: TVector3;
269 begin
270 Result := FdMotor1Axis.Value;
271 end;
272
273 procedure TMotorJointNode.SetMotor1Axis(const Value: TVector3);
274 begin
275 FdMotor1Axis.Send(Value);
276 end;
277
278 function TMotorJointNode.GetMotor2Axis: TVector3;
279 begin
280 Result := FdMotor2Axis.Value;
281 end;
282
283 procedure TMotorJointNode.SetMotor2Axis(const Value: TVector3);
284 begin
285 FdMotor2Axis.Send(Value);
286 end;
287
288 function TMotorJointNode.GetMotor3Axis: TVector3;
289 begin
290 Result := FdMotor3Axis.Value;
291 end;
292
293 procedure TMotorJointNode.SetMotor3Axis(const Value: TVector3);
294 begin
295 FdMotor3Axis.Send(Value);
296 end;
297
298 function TMotorJointNode.GetStop1Bounce: Single;
299 begin
300 Result := FdStop1Bounce.Value;
301 end;
302
303 procedure TMotorJointNode.SetStop1Bounce(const Value: Single);
304 begin
305 FdStop1Bounce.Send(Value);
306 end;
307
308 function TMotorJointNode.GetStop1ErrorCorrection: Single;
309 begin
310 Result := FdStop1ErrorCorrection.Value;
311 end;
312
313 procedure TMotorJointNode.SetStop1ErrorCorrection(const Value: Single);
314 begin
315 FdStop1ErrorCorrection.Send(Value);
316 end;
317
318 function TMotorJointNode.GetStop2Bounce: Single;
319 begin
320 Result := FdStop2Bounce.Value;
321 end;
322
323 procedure TMotorJointNode.SetStop2Bounce(const Value: Single);
324 begin
325 FdStop2Bounce.Send(Value);
326 end;
327
328 function TMotorJointNode.GetStop2ErrorCorrection: Single;
329 begin
330 Result := FdStop2ErrorCorrection.Value;
331 end;
332
333 procedure TMotorJointNode.SetStop2ErrorCorrection(const Value: Single);
334 begin
335 FdStop2ErrorCorrection.Send(Value);
336 end;
337
338 function TMotorJointNode.GetStop3Bounce: Single;
339 begin
340 Result := FdStop3Bounce.Value;
341 end;
342
343 procedure TMotorJointNode.SetStop3Bounce(const Value: Single);
344 begin
345 FdStop3Bounce.Send(Value);
346 end;
347
348 function TMotorJointNode.GetStop3ErrorCorrection: Single;
349 begin
350 Result := FdStop3ErrorCorrection.Value;
351 end;
352
353 procedure TMotorJointNode.SetStop3ErrorCorrection(const Value: Single);
354 begin
355 FdStop3ErrorCorrection.Send(Value);
356 end;
357
358 function TMotorJointNode.GetAutoCalc: Boolean;
359 begin
360 Result := FdAutoCalc.Value;
361 end;
362
363 procedure TMotorJointNode.SetAutoCalc(const Value: Boolean);
364 begin
365 FdAutoCalc.Send(Value);
366 end;
367
368 class function TMotorJointNode.ClassX3DType: String;
369 begin
370 Result := 'MotorJoint';
371 end;
372
373 procedure TMotorJointNode.CreateNode;
374 begin
375 inherited;
376
377 FFdAxis1Angle := TSFFloat.Create(Self, True, 'axis1Angle', 0);
378 FdAxis1Angle.ChangeAlways := chVisibleNonGeometry;
379 AddField(FFdAxis1Angle);
380
381 FFdAxis1Torque := TSFFloat.Create(Self, True, 'axis1Torque', 0);
382 FdAxis1Torque.ChangeAlways := chVisibleNonGeometry;
383 AddField(FFdAxis1Torque);
384
385 FFdAxis2Angle := TSFFloat.Create(Self, True, 'axis2Angle', 0);
386 FdAxis2Angle.ChangeAlways := chVisibleNonGeometry;
387 AddField(FFdAxis2Angle);
388
389 FFdAxis2Torque := TSFFloat.Create(Self, True, 'axis2Torque', 0);
390 FdAxis2Torque.ChangeAlways := chVisibleNonGeometry;
391 AddField(FFdAxis2Torque);
392
393 FFdAxis3Angle := TSFFloat.Create(Self, True, 'axis3Angle', 0);
394 FdAxis3Angle.ChangeAlways := chVisibleNonGeometry;
395 AddField(FFdAxis3Angle);
396
397 FFdAxis3Torque := TSFFloat.Create(Self, True, 'axis3Torque', 0);
398 FdAxis3Torque.ChangeAlways := chVisibleNonGeometry;
399 AddField(FFdAxis3Torque);
400
401 FFdEnabledAxes := TSFInt32.Create(Self, True, 'enabledAxes', 1);
402 FdEnabledAxes.ChangeAlways := chVisibleNonGeometry;
403 AddField(FFdEnabledAxes);
404
405 FFdMotor1Axis := TSFVec3f.Create(Self, True, 'motor1Axis', Vector3(0, 0, 0));
406 FdMotor1Axis.ChangeAlways := chVisibleNonGeometry;
407 AddField(FFdMotor1Axis);
408
409 FFdMotor2Axis := TSFVec3f.Create(Self, True, 'motor2Axis', Vector3(0, 0, 0));
410 FdMotor2Axis.ChangeAlways := chVisibleNonGeometry;
411 AddField(FFdMotor2Axis);
412
413 FFdMotor3Axis := TSFVec3f.Create(Self, True, 'motor3Axis', Vector3(0, 0, 0));
414 FdMotor3Axis.ChangeAlways := chVisibleNonGeometry;
415 AddField(FFdMotor3Axis);
416
417 FFdStop1Bounce := TSFFloat.Create(Self, True, 'stop1Bounce', 0);
418 FdStop1Bounce.ChangeAlways := chVisibleNonGeometry;
419 FdStop1Bounce.MustBeNonnegative := true;
420 AddField(FFdStop1Bounce);
421
422 FFdStop1ErrorCorrection := TSFFloat.Create(Self, True, 'stop1ErrorCorrection', 0.8);
423 FdStop1ErrorCorrection.ChangeAlways := chVisibleNonGeometry;
424 FdStop1ErrorCorrection.MustBeNonnegative := true;
425 AddField(FFdStop1ErrorCorrection);
426
427 FFdStop2Bounce := TSFFloat.Create(Self, True, 'stop2Bounce', 0);
428 FdStop2Bounce.ChangeAlways := chVisibleNonGeometry;
429 FdStop2Bounce.MustBeNonnegative := true;
430 AddField(FFdStop2Bounce);
431
432 FFdStop2ErrorCorrection := TSFFloat.Create(Self, True, 'stop2ErrorCorrection', 0.8);
433 FdStop2ErrorCorrection.ChangeAlways := chVisibleNonGeometry;
434 FdStop2ErrorCorrection.MustBeNonnegative := true;
435 AddField(FFdStop2ErrorCorrection);
436
437 FFdStop3Bounce := TSFFloat.Create(Self, True, 'stop3Bounce', 0);
438 FdStop3Bounce.ChangeAlways := chVisibleNonGeometry;
439 FdStop3Bounce.MustBeNonnegative := true;
440 AddField(FFdStop3Bounce);
441
442 FFdStop3ErrorCorrection := TSFFloat.Create(Self, True, 'stop3ErrorCorrection', 0.8);
443 FdStop3ErrorCorrection.ChangeAlways := chVisibleNonGeometry;
444 FdStop3ErrorCorrection.MustBeNonnegative := true;
445 AddField(FFdStop3ErrorCorrection);
446
447 FEventMotor1Angle := TSFFloatEvent.Create(Self, 'motor1Angle', false);
448 AddEvent(FEventMotor1Angle);
449
450 FEventMotor1AngleRate := TSFFloatEvent.Create(Self, 'motor1AngleRate', false);
451 AddEvent(FEventMotor1AngleRate);
452
453 FEventMotor2Angle := TSFFloatEvent.Create(Self, 'motor2Angle', false);
454 AddEvent(FEventMotor2Angle);
455
456 FEventMotor2AngleRate := TSFFloatEvent.Create(Self, 'motor2AngleRate', false);
457 AddEvent(FEventMotor2AngleRate);
458
459 FEventMotor3Angle := TSFFloatEvent.Create(Self, 'motor3Angle', false);
460 AddEvent(FEventMotor3Angle);
461
462 FEventMotor3AngleRate := TSFFloatEvent.Create(Self, 'motor3AngleRate', false);
463 AddEvent(FEventMotor3AngleRate);
464
465 FFdAutoCalc := TSFBool.Create(Self, False, 'autoCalc', false);
466 FdAutoCalc.ChangeAlways := chVisibleNonGeometry;
467 AddField(FFdAutoCalc);
468 end;
469
470 {$endif read_implementation}