Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_universaljoint.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 GetStopBounce1: Single;
34 procedure SetStopBounce1(const Value: Single);
35 function GetStop1ErrorCorrection: Single;
36 procedure SetStop1ErrorCorrection(const Value: Single);
37 function GetStop2Bounce: Single;
38 procedure SetStop2Bounce(const Value: Single);
39 function GetStop2ErrorCorrection: Single;
40 procedure SetStop2ErrorCorrection(const Value: Single);
41 public
42 { Create node fields and events. }
43 procedure CreateNode; override;
44 class function ClassX3DType: String; override;
45
46 strict private FFdAnchorPoint: TSFVec3f;
47 { 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). }
48 public property FdAnchorPoint: TSFVec3f read FFdAnchorPoint;
49 { }
50 property AnchorPoint: TVector3 read GetAnchorPoint write SetAnchorPoint;
51
52 strict private FFdAxis1: TSFVec3f;
53 { 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). }
54 public property FdAxis1: TSFVec3f read FFdAxis1;
55 { }
56 property Axis1: TVector3 read GetAxis1 write SetAxis1;
57
58 strict private FFdAxis2: TSFVec3f;
59 { 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). }
60 public property FdAxis2: TSFVec3f read FFdAxis2;
61 { }
62 property Axis2: TVector3 read GetAxis2 write SetAxis2;
63
64 strict private FFdStopBounce1: TSFFloat;
65 { 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). }
66 public property FdStopBounce1: TSFFloat read FFdStopBounce1;
67 { }
68 property StopBounce1: Single read GetStopBounce1 write SetStopBounce1;
69
70 strict private FFdStop1ErrorCorrection: TSFFloat;
71 { 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). }
72 public property FdStop1ErrorCorrection: TSFFloat read FFdStop1ErrorCorrection;
73 { }
74 property Stop1ErrorCorrection: Single read GetStop1ErrorCorrection write SetStop1ErrorCorrection;
75
76 strict private FFdStop2Bounce: TSFFloat;
77 { 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). }
78 public property FdStop2Bounce: TSFFloat read FFdStop2Bounce;
79 { }
80 property Stop2Bounce: Single read GetStop2Bounce write SetStop2Bounce;
81
82 strict private FFdStop2ErrorCorrection: TSFFloat;
83 { 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). }
84 public property FdStop2ErrorCorrection: TSFFloat read FFdStop2ErrorCorrection;
85 { }
86 property Stop2ErrorCorrection: Single read GetStop2ErrorCorrection write SetStop2ErrorCorrection;
87
88 strict private FEventBody1AnchorPoint: TSFVec3fEvent;
89 { }
90 public property EventBody1AnchorPoint: TSFVec3fEvent read FEventBody1AnchorPoint;
91
92 strict private FEventBody1Axis: TSFVec3fEvent;
93 { }
94 public property EventBody1Axis: TSFVec3fEvent read FEventBody1Axis;
95
96 strict private FEventBody2AnchorPoint: TSFVec3fEvent;
97 { }
98 public property EventBody2AnchorPoint: TSFVec3fEvent read FEventBody2AnchorPoint;
99
100 strict private FEventBody2Axis: TSFVec3fEvent;
101 { }
102 public property EventBody2Axis: TSFVec3fEvent read FEventBody2Axis;
103
104 {$endif read_interface}
105
106 {$ifdef read_implementation}
107
108 { TUniversalJointNode ----------------------------------------------- }
109
110 function TUniversalJointNode.GetAnchorPoint: TVector3;
111 begin
112 Result := FdAnchorPoint.Value;
113 end;
114
115 procedure TUniversalJointNode.SetAnchorPoint(const Value: TVector3);
116 begin
117 FdAnchorPoint.Send(Value);
118 end;
119
120 function TUniversalJointNode.GetAxis1: TVector3;
121 begin
122 Result := FdAxis1.Value;
123 end;
124
125 procedure TUniversalJointNode.SetAxis1(const Value: TVector3);
126 begin
127 FdAxis1.Send(Value);
128 end;
129
130 function TUniversalJointNode.GetAxis2: TVector3;
131 begin
132 Result := FdAxis2.Value;
133 end;
134
135 procedure TUniversalJointNode.SetAxis2(const Value: TVector3);
136 begin
137 FdAxis2.Send(Value);
138 end;
139
140 function TUniversalJointNode.GetStopBounce1: Single;
141 begin
142 Result := FdStopBounce1.Value;
143 end;
144
145 procedure TUniversalJointNode.SetStopBounce1(const Value: Single);
146 begin
147 FdStopBounce1.Send(Value);
148 end;
149
150 function TUniversalJointNode.GetStop1ErrorCorrection: Single;
151 begin
152 Result := FdStop1ErrorCorrection.Value;
153 end;
154
155 procedure TUniversalJointNode.SetStop1ErrorCorrection(const Value: Single);
156 begin
157 FdStop1ErrorCorrection.Send(Value);
158 end;
159
160 function TUniversalJointNode.GetStop2Bounce: Single;
161 begin
162 Result := FdStop2Bounce.Value;
163 end;
164
165 procedure TUniversalJointNode.SetStop2Bounce(const Value: Single);
166 begin
167 FdStop2Bounce.Send(Value);
168 end;
169
170 function TUniversalJointNode.GetStop2ErrorCorrection: Single;
171 begin
172 Result := FdStop2ErrorCorrection.Value;
173 end;
174
175 procedure TUniversalJointNode.SetStop2ErrorCorrection(const Value: Single);
176 begin
177 FdStop2ErrorCorrection.Send(Value);
178 end;
179
180 class function TUniversalJointNode.ClassX3DType: String;
181 begin
182 Result := 'UniversalJoint';
183 end;
184
185 procedure TUniversalJointNode.CreateNode;
186 begin
187 inherited;
188
189 FFdAnchorPoint := TSFVec3f.Create(Self, True, 'anchorPoint', Vector3(0, 0, 0));
190 FdAnchorPoint.ChangeAlways := chVisibleNonGeometry;
191 AddField(FFdAnchorPoint);
192
193 FFdAxis1 := TSFVec3f.Create(Self, True, 'axis1', Vector3(0, 0, 0));
194 FdAxis1.ChangeAlways := chVisibleNonGeometry;
195 AddField(FFdAxis1);
196
197 FFdAxis2 := TSFVec3f.Create(Self, True, 'axis2', Vector3(0, 0, 0));
198 FdAxis2.ChangeAlways := chVisibleNonGeometry;
199 AddField(FFdAxis2);
200
201 FFdStopBounce1 := TSFFloat.Create(Self, True, 'stopBounce1', 0);
202 FdStopBounce1.ChangeAlways := chVisibleNonGeometry;
203 FdStopBounce1.MustBeNonnegative := true;
204 AddField(FFdStopBounce1);
205
206 FFdStop1ErrorCorrection := TSFFloat.Create(Self, True, 'stop1ErrorCorrection', 0.8);
207 FdStop1ErrorCorrection.ChangeAlways := chVisibleNonGeometry;
208 FdStop1ErrorCorrection.MustBeNonnegative := true;
209 AddField(FFdStop1ErrorCorrection);
210
211 FFdStop2Bounce := TSFFloat.Create(Self, True, 'stop2Bounce', 0);
212 FdStop2Bounce.ChangeAlways := chVisibleNonGeometry;
213 FdStop2Bounce.MustBeNonnegative := true;
214 AddField(FFdStop2Bounce);
215
216 FFdStop2ErrorCorrection := TSFFloat.Create(Self, True, 'stop2ErrorCorrection', 0.8);
217 FdStop2ErrorCorrection.ChangeAlways := chVisibleNonGeometry;
218 FdStop2ErrorCorrection.MustBeNonnegative := true;
219 AddField(FFdStop2ErrorCorrection);
220
221 FEventBody1AnchorPoint := TSFVec3fEvent.Create(Self, 'body1AnchorPoint', false);
222 AddEvent(FEventBody1AnchorPoint);
223
224 FEventBody1Axis := TSFVec3fEvent.Create(Self, 'body1Axis', false);
225 AddEvent(FEventBody1Axis);
226
227 FEventBody2AnchorPoint := TSFVec3fEvent.Create(Self, 'body2AnchorPoint', false);
228 AddEvent(FEventBody2AnchorPoint);
229
230 FEventBody2Axis := TSFVec3fEvent.Create(Self, 'body2Axis', false);
231 AddEvent(FEventBody2Axis);
232 end;
233
234 {$endif read_implementation}