Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_sliderjoint.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 GetAxis: TVector3;
28 procedure SetAxis(const Value: TVector3);
29 function GetMaxSeparation: Single;
30 procedure SetMaxSeparation(const Value: Single);
31 function GetMinSeparation: Single;
32 procedure SetMinSeparation(const Value: Single);
33 function GetStopBounce: Single;
34 procedure SetStopBounce(const Value: Single);
35 function GetStopErrorCorrection: Single;
36 procedure SetStopErrorCorrection(const Value: Single);
37 public
38 { Create node fields and events. }
39 procedure CreateNode; override;
40 class function ClassX3DType: String; override;
41
42 strict private FFdAxis: TSFVec3f;
43 { Internal wrapper for property @code(Axis). This wrapper API may change, we advise to access simpler @code(Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdAxis: TSFVec3f read FFdAxis;
45 { }
46 property Axis: TVector3 read GetAxis write SetAxis;
47
48 strict private FFdMaxSeparation: TSFFloat;
49 { Internal wrapper for property @code(MaxSeparation). This wrapper API may change, we advise to access simpler @code(MaxSeparation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdMaxSeparation: TSFFloat read FFdMaxSeparation;
51 { }
52 property MaxSeparation: Single read GetMaxSeparation write SetMaxSeparation;
53
54 strict private FFdMinSeparation: TSFFloat;
55 { Internal wrapper for property @code(MinSeparation). This wrapper API may change, we advise to access simpler @code(MinSeparation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdMinSeparation: TSFFloat read FFdMinSeparation;
57 { }
58 property MinSeparation: Single read GetMinSeparation write SetMinSeparation;
59
60 strict private FFdStopBounce: TSFFloat;
61 { Internal wrapper for property @code(StopBounce). This wrapper API may change, we advise to access simpler @code(StopBounce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdStopBounce: TSFFloat read FFdStopBounce;
63 { }
64 property StopBounce: Single read GetStopBounce write SetStopBounce;
65
66 strict private FFdStopErrorCorrection: TSFFloat;
67 { Internal wrapper for property @code(StopErrorCorrection). This wrapper API may change, we advise to access simpler @code(StopErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdStopErrorCorrection: TSFFloat read FFdStopErrorCorrection;
69 { }
70 property StopErrorCorrection: Single read GetStopErrorCorrection write SetStopErrorCorrection;
71
72 strict private FEventSeparation: TSFFloatEvent;
73 { }
74 public property EventSeparation: TSFFloatEvent read FEventSeparation;
75
76 strict private FEventSeparationRate: TSFFloatEvent;
77 { }
78 public property EventSeparationRate: TSFFloatEvent read FEventSeparationRate;
79
80 {$endif read_interface}
81
82 {$ifdef read_implementation}
83
84 { TSliderJointNode ----------------------------------------------- }
85
86 function TSliderJointNode.GetAxis: TVector3;
87 begin
88 Result := FdAxis.Value;
89 end;
90
91 procedure TSliderJointNode.SetAxis(const Value: TVector3);
92 begin
93 FdAxis.Send(Value);
94 end;
95
96 function TSliderJointNode.GetMaxSeparation: Single;
97 begin
98 Result := FdMaxSeparation.Value;
99 end;
100
101 procedure TSliderJointNode.SetMaxSeparation(const Value: Single);
102 begin
103 FdMaxSeparation.Send(Value);
104 end;
105
106 function TSliderJointNode.GetMinSeparation: Single;
107 begin
108 Result := FdMinSeparation.Value;
109 end;
110
111 procedure TSliderJointNode.SetMinSeparation(const Value: Single);
112 begin
113 FdMinSeparation.Send(Value);
114 end;
115
116 function TSliderJointNode.GetStopBounce: Single;
117 begin
118 Result := FdStopBounce.Value;
119 end;
120
121 procedure TSliderJointNode.SetStopBounce(const Value: Single);
122 begin
123 FdStopBounce.Send(Value);
124 end;
125
126 function TSliderJointNode.GetStopErrorCorrection: Single;
127 begin
128 Result := FdStopErrorCorrection.Value;
129 end;
130
131 procedure TSliderJointNode.SetStopErrorCorrection(const Value: Single);
132 begin
133 FdStopErrorCorrection.Send(Value);
134 end;
135
136 class function TSliderJointNode.ClassX3DType: String;
137 begin
138 Result := 'SliderJoint';
139 end;
140
141 procedure TSliderJointNode.CreateNode;
142 begin
143 inherited;
144
145 FFdAxis := TSFVec3f.Create(Self, True, 'axis', Vector3(0, 1, 0));
146 FdAxis.ChangeAlways := chVisibleNonGeometry;
147 AddField(FFdAxis);
148
149 FFdMaxSeparation := TSFFloat.Create(Self, True, 'maxSeparation', 1);
150 FdMaxSeparation.ChangeAlways := chVisibleNonGeometry;
151 FdMaxSeparation.MustBeNonnegative := true;
152 AddField(FFdMaxSeparation);
153
154 FFdMinSeparation := TSFFloat.Create(Self, True, 'minSeparation', 0);
155 FdMinSeparation.ChangeAlways := chVisibleNonGeometry;
156 FdMinSeparation.MustBeNonnegative := true;
157 AddField(FFdMinSeparation);
158
159 FFdStopBounce := TSFFloat.Create(Self, True, 'stopBounce', 0);
160 FdStopBounce.ChangeAlways := chVisibleNonGeometry;
161 FdStopBounce.MustBeNonnegative := true;
162 AddField(FFdStopBounce);
163
164 FFdStopErrorCorrection := TSFFloat.Create(Self, True, 'stopErrorCorrection', 1);
165 FdStopErrorCorrection.ChangeAlways := chVisibleNonGeometry;
166 FdStopErrorCorrection.MustBeNonnegative := true;
167 AddField(FFdStopErrorCorrection);
168
169 FEventSeparation := TSFFloatEvent.Create(Self, 'separation', false);
170 AddEvent(FEventSeparation);
171
172 FEventSeparationRate := TSFFloatEvent.Create(Self, 'separationRate', false);
173 AddEvent(FEventSeparationRate);
174 end;
175
176 {$endif read_implementation}