Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_doubleaxishingejoint.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 GetAnchorPoint: TVector3;
28 procedure SetAnchorPoint(const Value: TVector3);
29 function GetAxis1: TVector3;
30 procedure SetAxis1(const Value: TVector3);
31 function GetAxis2: TVector3;
32 procedure SetAxis2(const Value: TVector3);
33 function GetDesiredAngularVelocity1: Single;
34 procedure SetDesiredAngularVelocity1(const Value: Single);
35 function GetDesiredAngularVelocity2: Single;
36 procedure SetDesiredAngularVelocity2(const Value: Single);
37 function GetMaxAngle1: Single;
38 procedure SetMaxAngle1(const Value: Single);
39 function GetMaxTorque1: Single;
40 procedure SetMaxTorque1(const Value: Single);
41 function GetMaxTorque2: Single;
42 procedure SetMaxTorque2(const Value: Single);
43 function GetMinAngle1: Single;
44 procedure SetMinAngle1(const Value: Single);
45 function GetStopBounce1: Single;
46 procedure SetStopBounce1(const Value: Single);
47 function GetStopConstantForceMix1: Single;
48 procedure SetStopConstantForceMix1(const Value: Single);
49 function GetStopErrorCorrection1: Single;
50 procedure SetStopErrorCorrection1(const Value: Single);
51 function GetSuspensionErrorCorrection: Single;
52 procedure SetSuspensionErrorCorrection(const Value: Single);
53 function GetSuspensionForce: Single;
54 procedure SetSuspensionForce(const Value: Single);
55 public
56 { Create node fields and events. }
57 procedure CreateNode; override;
58 class function ClassX3DType: String; override;
59
60 strict private FFdAnchorPoint: TSFVec3f;
61 { Internal wrapper for property @code(AnchorPoint). This wrapper API may change, we advise to access simpler @code(AnchorPoint) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdAnchorPoint: TSFVec3f read FFdAnchorPoint;
63 { }
64 property AnchorPoint: TVector3 read GetAnchorPoint write SetAnchorPoint;
65
66 strict private FFdAxis1: TSFVec3f;
67 { Internal wrapper for property @code(Axis1). This wrapper API may change, we advise to access simpler @code(Axis1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdAxis1: TSFVec3f read FFdAxis1;
69 { }
70 property Axis1: TVector3 read GetAxis1 write SetAxis1;
71
72 strict private FFdAxis2: TSFVec3f;
73 { Internal wrapper for property @code(Axis2). This wrapper API may change, we advise to access simpler @code(Axis2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
74 public property FdAxis2: TSFVec3f read FFdAxis2;
75 { }
76 property Axis2: TVector3 read GetAxis2 write SetAxis2;
77
78 strict private FFdDesiredAngularVelocity1: TSFFloat;
79 { Internal wrapper for property @code(DesiredAngularVelocity1). This wrapper API may change, we advise to access simpler @code(DesiredAngularVelocity1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
80 public property FdDesiredAngularVelocity1: TSFFloat read FFdDesiredAngularVelocity1;
81 { }
82 property DesiredAngularVelocity1: Single read GetDesiredAngularVelocity1 write SetDesiredAngularVelocity1;
83
84 strict private FFdDesiredAngularVelocity2: TSFFloat;
85 { Internal wrapper for property @code(DesiredAngularVelocity2). This wrapper API may change, we advise to access simpler @code(DesiredAngularVelocity2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdDesiredAngularVelocity2: TSFFloat read FFdDesiredAngularVelocity2;
87 { }
88 property DesiredAngularVelocity2: Single read GetDesiredAngularVelocity2 write SetDesiredAngularVelocity2;
89
90 strict private FFdMaxAngle1: TSFFloat;
91 { Internal wrapper for property @code(MaxAngle1). This wrapper API may change, we advise to access simpler @code(MaxAngle1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdMaxAngle1: TSFFloat read FFdMaxAngle1;
93 { }
94 property MaxAngle1: Single read GetMaxAngle1 write SetMaxAngle1;
95
96 strict private FFdMaxTorque1: TSFFloat;
97 { Internal wrapper for property @code(MaxTorque1). This wrapper API may change, we advise to access simpler @code(MaxTorque1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
98 public property FdMaxTorque1: TSFFloat read FFdMaxTorque1;
99 { }
100 property MaxTorque1: Single read GetMaxTorque1 write SetMaxTorque1;
101
102 strict private FFdMaxTorque2: TSFFloat;
103 { Internal wrapper for property @code(MaxTorque2). This wrapper API may change, we advise to access simpler @code(MaxTorque2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
104 public property FdMaxTorque2: TSFFloat read FFdMaxTorque2;
105 { }
106 property MaxTorque2: Single read GetMaxTorque2 write SetMaxTorque2;
107
108 strict private FFdMinAngle1: TSFFloat;
109 { Internal wrapper for property @code(MinAngle1). This wrapper API may change, we advise to access simpler @code(MinAngle1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
110 public property FdMinAngle1: TSFFloat read FFdMinAngle1;
111 { }
112 property MinAngle1: Single read GetMinAngle1 write SetMinAngle1;
113
114 strict private FFdStopBounce1: TSFFloat;
115 { Internal wrapper for property @code(StopBounce1). This wrapper API may change, we advise to access simpler @code(StopBounce1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdStopBounce1: TSFFloat read FFdStopBounce1;
117 { }
118 property StopBounce1: Single read GetStopBounce1 write SetStopBounce1;
119
120 strict private FFdStopConstantForceMix1: TSFFloat;
121 { Internal wrapper for property @code(StopConstantForceMix1). This wrapper API may change, we advise to access simpler @code(StopConstantForceMix1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdStopConstantForceMix1: TSFFloat read FFdStopConstantForceMix1;
123 { }
124 property StopConstantForceMix1: Single read GetStopConstantForceMix1 write SetStopConstantForceMix1;
125
126 strict private FFdStopErrorCorrection1: TSFFloat;
127 { Internal wrapper for property @code(StopErrorCorrection1). This wrapper API may change, we advise to access simpler @code(StopErrorCorrection1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdStopErrorCorrection1: TSFFloat read FFdStopErrorCorrection1;
129 { }
130 property StopErrorCorrection1: Single read GetStopErrorCorrection1 write SetStopErrorCorrection1;
131
132 strict private FFdSuspensionErrorCorrection: TSFFloat;
133 { Internal wrapper for property @code(SuspensionErrorCorrection). This wrapper API may change, we advise to access simpler @code(SuspensionErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
134 public property FdSuspensionErrorCorrection: TSFFloat read FFdSuspensionErrorCorrection;
135 { }
136 property SuspensionErrorCorrection: Single read GetSuspensionErrorCorrection write SetSuspensionErrorCorrection;
137
138 strict private FFdSuspensionForce: TSFFloat;
139 { Internal wrapper for property @code(SuspensionForce). This wrapper API may change, we advise to access simpler @code(SuspensionForce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
140 public property FdSuspensionForce: TSFFloat read FFdSuspensionForce;
141 { }
142 property SuspensionForce: Single read GetSuspensionForce write SetSuspensionForce;
143
144 strict private FEventBody1AnchorPoint: TSFVec3fEvent;
145 { }
146 public property EventBody1AnchorPoint: TSFVec3fEvent read FEventBody1AnchorPoint;
147
148 strict private FEventBody1Axis: TSFVec3fEvent;
149 { }
150 public property EventBody1Axis: TSFVec3fEvent read FEventBody1Axis;
151
152 strict private FEventBody2AnchorPoint: TSFVec3fEvent;
153 { }
154 public property EventBody2AnchorPoint: TSFVec3fEvent read FEventBody2AnchorPoint;
155
156 strict private FEventBody2Axis: TSFVec3fEvent;
157 { }
158 public property EventBody2Axis: TSFVec3fEvent read FEventBody2Axis;
159
160 strict private FEventHinge1Angle: TSFFloatEvent;
161 { }
162 public property EventHinge1Angle: TSFFloatEvent read FEventHinge1Angle;
163
164 strict private FEventHinge1AngleRate: TSFFloatEvent;
165 { }
166 public property EventHinge1AngleRate: TSFFloatEvent read FEventHinge1AngleRate;
167
168 strict private FEventHinge2Angle: TSFFloatEvent;
169 { }
170 public property EventHinge2Angle: TSFFloatEvent read FEventHinge2Angle;
171
172 strict private FEventHinge2AngleRate: TSFFloatEvent;
173 { }
174 public property EventHinge2AngleRate: TSFFloatEvent read FEventHinge2AngleRate;
175
176 {$endif read_interface}
177
178 {$ifdef read_implementation}
179
180 { TDoubleAxisHingeJointNode ----------------------------------------------- }
181
182 function TDoubleAxisHingeJointNode.GetAnchorPoint: TVector3;
183 begin
184 Result := FdAnchorPoint.Value;
185 end;
186
187 procedure TDoubleAxisHingeJointNode.SetAnchorPoint(const Value: TVector3);
188 begin
189 FdAnchorPoint.Send(Value);
190 end;
191
192 function TDoubleAxisHingeJointNode.GetAxis1: TVector3;
193 begin
194 Result := FdAxis1.Value;
195 end;
196
197 procedure TDoubleAxisHingeJointNode.SetAxis1(const Value: TVector3);
198 begin
199 FdAxis1.Send(Value);
200 end;
201
202 function TDoubleAxisHingeJointNode.GetAxis2: TVector3;
203 begin
204 Result := FdAxis2.Value;
205 end;
206
207 procedure TDoubleAxisHingeJointNode.SetAxis2(const Value: TVector3);
208 begin
209 FdAxis2.Send(Value);
210 end;
211
212 function TDoubleAxisHingeJointNode.GetDesiredAngularVelocity1: Single;
213 begin
214 Result := FdDesiredAngularVelocity1.Value;
215 end;
216
217 procedure TDoubleAxisHingeJointNode.SetDesiredAngularVelocity1(const Value: Single);
218 begin
219 FdDesiredAngularVelocity1.Send(Value);
220 end;
221
222 function TDoubleAxisHingeJointNode.GetDesiredAngularVelocity2: Single;
223 begin
224 Result := FdDesiredAngularVelocity2.Value;
225 end;
226
227 procedure TDoubleAxisHingeJointNode.SetDesiredAngularVelocity2(const Value: Single);
228 begin
229 FdDesiredAngularVelocity2.Send(Value);
230 end;
231
232 function TDoubleAxisHingeJointNode.GetMaxAngle1: Single;
233 begin
234 Result := FdMaxAngle1.Value;
235 end;
236
237 procedure TDoubleAxisHingeJointNode.SetMaxAngle1(const Value: Single);
238 begin
239 FdMaxAngle1.Send(Value);
240 end;
241
242 function TDoubleAxisHingeJointNode.GetMaxTorque1: Single;
243 begin
244 Result := FdMaxTorque1.Value;
245 end;
246
247 procedure TDoubleAxisHingeJointNode.SetMaxTorque1(const Value: Single);
248 begin
249 FdMaxTorque1.Send(Value);
250 end;
251
252 function TDoubleAxisHingeJointNode.GetMaxTorque2: Single;
253 begin
254 Result := FdMaxTorque2.Value;
255 end;
256
257 procedure TDoubleAxisHingeJointNode.SetMaxTorque2(const Value: Single);
258 begin
259 FdMaxTorque2.Send(Value);
260 end;
261
262 function TDoubleAxisHingeJointNode.GetMinAngle1: Single;
263 begin
264 Result := FdMinAngle1.Value;
265 end;
266
267 procedure TDoubleAxisHingeJointNode.SetMinAngle1(const Value: Single);
268 begin
269 FdMinAngle1.Send(Value);
270 end;
271
272 function TDoubleAxisHingeJointNode.GetStopBounce1: Single;
273 begin
274 Result := FdStopBounce1.Value;
275 end;
276
277 procedure TDoubleAxisHingeJointNode.SetStopBounce1(const Value: Single);
278 begin
279 FdStopBounce1.Send(Value);
280 end;
281
282 function TDoubleAxisHingeJointNode.GetStopConstantForceMix1: Single;
283 begin
284 Result := FdStopConstantForceMix1.Value;
285 end;
286
287 procedure TDoubleAxisHingeJointNode.SetStopConstantForceMix1(const Value: Single);
288 begin
289 FdStopConstantForceMix1.Send(Value);
290 end;
291
292 function TDoubleAxisHingeJointNode.GetStopErrorCorrection1: Single;
293 begin
294 Result := FdStopErrorCorrection1.Value;
295 end;
296
297 procedure TDoubleAxisHingeJointNode.SetStopErrorCorrection1(const Value: Single);
298 begin
299 FdStopErrorCorrection1.Send(Value);
300 end;
301
302 function TDoubleAxisHingeJointNode.GetSuspensionErrorCorrection: Single;
303 begin
304 Result := FdSuspensionErrorCorrection.Value;
305 end;
306
307 procedure TDoubleAxisHingeJointNode.SetSuspensionErrorCorrection(const Value: Single);
308 begin
309 FdSuspensionErrorCorrection.Send(Value);
310 end;
311
312 function TDoubleAxisHingeJointNode.GetSuspensionForce: Single;
313 begin
314 Result := FdSuspensionForce.Value;
315 end;
316
317 procedure TDoubleAxisHingeJointNode.SetSuspensionForce(const Value: Single);
318 begin
319 FdSuspensionForce.Send(Value);
320 end;
321
322 class function TDoubleAxisHingeJointNode.ClassX3DType: String;
323 begin
324 Result := 'DoubleAxisHingeJoint';
325 end;
326
327 procedure TDoubleAxisHingeJointNode.CreateNode;
328 begin
329 inherited;
330
331 FFdAnchorPoint := TSFVec3f.Create(Self, True, 'anchorPoint', Vector3(0, 0, 0));
332 FdAnchorPoint.ChangeAlways := chVisibleNonGeometry;
333 AddField(FFdAnchorPoint);
334
335 FFdAxis1 := TSFVec3f.Create(Self, True, 'axis1', Vector3(0, 0, 0));
336 FdAxis1.ChangeAlways := chVisibleNonGeometry;
337 AddField(FFdAxis1);
338
339 FFdAxis2 := TSFVec3f.Create(Self, True, 'axis2', Vector3(0, 0, 0));
340 FdAxis2.ChangeAlways := chVisibleNonGeometry;
341 AddField(FFdAxis2);
342
343 FFdDesiredAngularVelocity1 := TSFFloat.Create(Self, True, 'desiredAngularVelocity1', 0);
344 FdDesiredAngularVelocity1.ChangeAlways := chVisibleNonGeometry;
345 AddField(FFdDesiredAngularVelocity1);
346
347 FFdDesiredAngularVelocity2 := TSFFloat.Create(Self, True, 'desiredAngularVelocity2', 0);
348 FdDesiredAngularVelocity2.ChangeAlways := chVisibleNonGeometry;
349 AddField(FFdDesiredAngularVelocity2);
350
351 FFdMaxAngle1 := TSFFloat.Create(Self, True, 'maxAngle1', Pi);
352 FdMaxAngle1.ChangeAlways := chVisibleNonGeometry;
353 AddField(FFdMaxAngle1);
354
355 FFdMaxTorque1 := TSFFloat.Create(Self, True, 'maxTorque1', 0);
356 FdMaxTorque1.ChangeAlways := chVisibleNonGeometry;
357 AddField(FFdMaxTorque1);
358
359 FFdMaxTorque2 := TSFFloat.Create(Self, True, 'maxTorque2', 0);
360 FdMaxTorque2.ChangeAlways := chVisibleNonGeometry;
361 AddField(FFdMaxTorque2);
362
363 FFdMinAngle1 := TSFFloat.Create(Self, True, 'minAngle1', -Pi);
364 FdMinAngle1.ChangeAlways := chVisibleNonGeometry;
365 AddField(FFdMinAngle1);
366
367 FFdStopBounce1 := TSFFloat.Create(Self, True, 'stopBounce1', 0);
368 FdStopBounce1.ChangeAlways := chVisibleNonGeometry;
369 FdStopBounce1.MustBeNonnegative := true;
370 AddField(FFdStopBounce1);
371
372 FFdStopConstantForceMix1 := TSFFloat.Create(Self, True, 'stopConstantForceMix1', 0.001);
373 FdStopConstantForceMix1.ChangeAlways := chVisibleNonGeometry;
374 FdStopConstantForceMix1.MustBeNonnegative := true;
375 AddField(FFdStopConstantForceMix1);
376
377 FFdStopErrorCorrection1 := TSFFloat.Create(Self, True, 'stopErrorCorrection1', 0.8);
378 FdStopErrorCorrection1.ChangeAlways := chVisibleNonGeometry;
379 FdStopErrorCorrection1.MustBeNonnegative := true;
380 AddField(FFdStopErrorCorrection1);
381
382 FFdSuspensionErrorCorrection := TSFFloat.Create(Self, True, 'suspensionErrorCorrection', 0.8);
383 FdSuspensionErrorCorrection.ChangeAlways := chVisibleNonGeometry;
384 FdSuspensionErrorCorrection.MustBeNonnegative := true;
385 AddField(FFdSuspensionErrorCorrection);
386
387 FFdSuspensionForce := TSFFloat.Create(Self, True, 'suspensionForce', 0);
388 FdSuspensionForce.ChangeAlways := chVisibleNonGeometry;
389 FdSuspensionForce.MustBeNonnegative := true;
390 AddField(FFdSuspensionForce);
391
392 FEventBody1AnchorPoint := TSFVec3fEvent.Create(Self, 'body1AnchorPoint', false);
393 AddEvent(FEventBody1AnchorPoint);
394
395 FEventBody1Axis := TSFVec3fEvent.Create(Self, 'body1Axis', false);
396 AddEvent(FEventBody1Axis);
397
398 FEventBody2AnchorPoint := TSFVec3fEvent.Create(Self, 'body2AnchorPoint', false);
399 AddEvent(FEventBody2AnchorPoint);
400
401 FEventBody2Axis := TSFVec3fEvent.Create(Self, 'body2Axis', false);
402 AddEvent(FEventBody2Axis);
403
404 FEventHinge1Angle := TSFFloatEvent.Create(Self, 'hinge1Angle', false);
405 AddEvent(FEventHinge1Angle);
406
407 FEventHinge1AngleRate := TSFFloatEvent.Create(Self, 'hinge1AngleRate', false);
408 AddEvent(FEventHinge1AngleRate);
409
410 FEventHinge2Angle := TSFFloatEvent.Create(Self, 'hinge2Angle', false);
411 AddEvent(FEventHinge2Angle);
412
413 FEventHinge2AngleRate := TSFFloatEvent.Create(Self, 'hinge2AngleRate', false);
414 AddEvent(FEventHinge2AngleRate);
415 end;
416
417 {$endif read_implementation}