Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_hanimmotion.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 GetChannels: String;
28 procedure SetChannels(const Value: String);
29 function GetDescription: String;
30 procedure SetDescription(const Value: String);
31 function GetEnabled: Boolean;
32 procedure SetEnabled(const Value: Boolean);
33 function GetEndFrame: Integer;
34 procedure SetEndFrame(const Value: Integer);
35 function GetFrameDuration: TFloatTime;
36 procedure SetFrameDuration(const Value: TFloatTime);
37 function GetFrameIncrement: Integer;
38 procedure SetFrameIncrement(const Value: Integer);
39 function GetFrameIndex: Integer;
40 procedure SetFrameIndex(const Value: Integer);
41 function GetJoints: String;
42 procedure SetJoints(const Value: String);
43 function GetLoa: Integer;
44 procedure SetLoa(const Value: Integer);
45 function GetLoop: Boolean;
46 procedure SetLoop(const Value: Boolean);
47 function GetNameField: String;
48 procedure SetNameField(const Value: String);
49 function GetStartFrame: Integer;
50 procedure SetStartFrame(const Value: Integer);
51 public
52 { Create node fields and events. }
53 procedure CreateNode; override;
54 class function ClassX3DType: String; override;
55
56 strict private FEventNext: TSFBoolEvent;
57 { }
58 public property EventNext: TSFBoolEvent read FEventNext;
59
60 strict private FEventPrevious: TSFBoolEvent;
61 { }
62 public property EventPrevious: TSFBoolEvent read FEventPrevious;
63
64 strict private FFdChannels: TSFString;
65 { Internal wrapper for property @code(Channels). This wrapper API may change, we advise to access simpler @code(Channels) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdChannels: TSFString read FFdChannels;
67 { }
68 property Channels: String read GetChannels write SetChannels;
69
70 strict private FFdChannelsEnabled: TMFBool;
71 { Internal wrapper for property @code(ChannelsEnabled). This wrapper API may change, we advise to access simpler @code(ChannelsEnabled) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdChannelsEnabled: TMFBool read FFdChannelsEnabled;
73 { }
74 procedure SetChannelsEnabled(const Value: array of boolean); overload;
75 { }
76 procedure SetChannelsEnabled(const Value: TBooleanList); overload;
77
78 strict private FFdDescription: TSFString;
79 { 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). }
80 public property FdDescription: TSFString read FFdDescription;
81 { }
82 property Description: String read GetDescription write SetDescription;
83
84 strict private FFdEnabled: TSFBool;
85 { Internal wrapper for property @code(Enabled). This wrapper API may change, we advise to access simpler @code(Enabled) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdEnabled: TSFBool read FFdEnabled;
87 { }
88 property Enabled: Boolean read GetEnabled write SetEnabled;
89
90 strict private FFdEndFrame: TSFInt32;
91 { Internal wrapper for property @code(EndFrame). This wrapper API may change, we advise to access simpler @code(EndFrame) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdEndFrame: TSFInt32 read FFdEndFrame;
93 { }
94 property EndFrame: Integer read GetEndFrame write SetEndFrame;
95
96 strict private FFdFrameDuration: TSFTime;
97 { Internal wrapper for property @code(FrameDuration). This wrapper API may change, we advise to access simpler @code(FrameDuration) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
98 public property FdFrameDuration: TSFTime read FFdFrameDuration;
99 { }
100 property FrameDuration: TFloatTime read GetFrameDuration write SetFrameDuration;
101
102 strict private FFdFrameIncrement: TSFInt32;
103 { Internal wrapper for property @code(FrameIncrement). This wrapper API may change, we advise to access simpler @code(FrameIncrement) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
104 public property FdFrameIncrement: TSFInt32 read FFdFrameIncrement;
105 { }
106 property FrameIncrement: Integer read GetFrameIncrement write SetFrameIncrement;
107
108 strict private FFdFrameIndex: TSFInt32;
109 { Internal wrapper for property @code(FrameIndex). This wrapper API may change, we advise to access simpler @code(FrameIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
110 public property FdFrameIndex: TSFInt32 read FFdFrameIndex;
111 { }
112 property FrameIndex: Integer read GetFrameIndex write SetFrameIndex;
113
114 strict private FFdJoints: TSFString;
115 { Internal wrapper for property @code(Joints). This wrapper API may change, we advise to access simpler @code(Joints) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdJoints: TSFString read FFdJoints;
117 { }
118 property Joints: String read GetJoints write SetJoints;
119
120 strict private FFdLoa: TSFInt32;
121 { Internal wrapper for property @code(Loa). This wrapper API may change, we advise to access simpler @code(Loa) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdLoa: TSFInt32 read FFdLoa;
123 { }
124 property Loa: Integer read GetLoa write SetLoa;
125
126 strict private FFdLoop: TSFBool;
127 { Internal wrapper for property @code(Loop). This wrapper API may change, we advise to access simpler @code(Loop) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdLoop: TSFBool read FFdLoop;
129 { }
130 property Loop: Boolean read GetLoop write SetLoop;
131
132 strict private FFdName: TSFString;
133 { 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). }
134 public property FdName: TSFString read FFdName;
135 { }
136 property NameField: String read GetNameField write SetNameField;
137
138 strict private FFdStartFrame: TSFInt32;
139 { Internal wrapper for property @code(StartFrame). This wrapper API may change, we advise to access simpler @code(StartFrame) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
140 public property FdStartFrame: TSFInt32 read FFdStartFrame;
141 { }
142 property StartFrame: Integer read GetStartFrame write SetStartFrame;
143
144 strict private FFdValues: TMFFloat;
145 { Internal wrapper for property @code(Values). This wrapper API may change, we advise to access simpler @code(Values) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
146 public property FdValues: TMFFloat read FFdValues;
147 { }
148 procedure SetValues(const Value: array of Single); overload;
149 { }
150 procedure SetValues(const Value: TSingleList); overload;
151
152 strict private FEventCycleTime: TSFTimeEvent;
153 { }
154 public property EventCycleTime: TSFTimeEvent read FEventCycleTime;
155
156 strict private FEventElapsedTime: TSFTimeEvent;
157 { }
158 public property EventElapsedTime: TSFTimeEvent read FEventElapsedTime;
159
160 strict private FEventFrameCount: TSFInt32Event;
161 { }
162 public property EventFrameCount: TSFInt32Event read FEventFrameCount;
163
164 {$endif read_interface}
165
166 {$ifdef read_implementation}
167
168 { THAnimMotionNode ----------------------------------------------- }
169
170 function THAnimMotionNode.GetChannels: String;
171 begin
172 Result := FdChannels.Value;
173 end;
174
175 procedure THAnimMotionNode.SetChannels(const Value: String);
176 begin
177 FdChannels.Send(Value);
178 end;
179
180 procedure THAnimMotionNode.SetChannelsEnabled(const Value: array of boolean);
181 begin
182 FdChannelsEnabled.Send(Value);
183 end;
184
185 procedure THAnimMotionNode.SetChannelsEnabled(const Value: TBooleanList);
186 begin
187 FdChannelsEnabled.Send(Value);
188 end;
189
190 function THAnimMotionNode.GetDescription: String;
191 begin
192 Result := FdDescription.Value;
193 end;
194
195 procedure THAnimMotionNode.SetDescription(const Value: String);
196 begin
197 FdDescription.Send(Value);
198 end;
199
200 function THAnimMotionNode.GetEnabled: Boolean;
201 begin
202 Result := FdEnabled.Value;
203 end;
204
205 procedure THAnimMotionNode.SetEnabled(const Value: Boolean);
206 begin
207 FdEnabled.Send(Value);
208 end;
209
210 function THAnimMotionNode.GetEndFrame: Integer;
211 begin
212 Result := FdEndFrame.Value;
213 end;
214
215 procedure THAnimMotionNode.SetEndFrame(const Value: Integer);
216 begin
217 FdEndFrame.Send(Value);
218 end;
219
220 function THAnimMotionNode.GetFrameDuration: TFloatTime;
221 begin
222 Result := FdFrameDuration.Value;
223 end;
224
225 procedure THAnimMotionNode.SetFrameDuration(const Value: TFloatTime);
226 begin
227 FdFrameDuration.Send(Value);
228 end;
229
230 function THAnimMotionNode.GetFrameIncrement: Integer;
231 begin
232 Result := FdFrameIncrement.Value;
233 end;
234
235 procedure THAnimMotionNode.SetFrameIncrement(const Value: Integer);
236 begin
237 FdFrameIncrement.Send(Value);
238 end;
239
240 function THAnimMotionNode.GetFrameIndex: Integer;
241 begin
242 Result := FdFrameIndex.Value;
243 end;
244
245 procedure THAnimMotionNode.SetFrameIndex(const Value: Integer);
246 begin
247 FdFrameIndex.Send(Value);
248 end;
249
250 function THAnimMotionNode.GetJoints: String;
251 begin
252 Result := FdJoints.Value;
253 end;
254
255 procedure THAnimMotionNode.SetJoints(const Value: String);
256 begin
257 FdJoints.Send(Value);
258 end;
259
260 function THAnimMotionNode.GetLoa: Integer;
261 begin
262 Result := FdLoa.Value;
263 end;
264
265 procedure THAnimMotionNode.SetLoa(const Value: Integer);
266 begin
267 FdLoa.Send(Value);
268 end;
269
270 function THAnimMotionNode.GetLoop: Boolean;
271 begin
272 Result := FdLoop.Value;
273 end;
274
275 procedure THAnimMotionNode.SetLoop(const Value: Boolean);
276 begin
277 FdLoop.Send(Value);
278 end;
279
280 function THAnimMotionNode.GetNameField: String;
281 begin
282 Result := FdName.Value;
283 end;
284
285 procedure THAnimMotionNode.SetNameField(const Value: String);
286 begin
287 FdName.Send(Value);
288 end;
289
290 function THAnimMotionNode.GetStartFrame: Integer;
291 begin
292 Result := FdStartFrame.Value;
293 end;
294
295 procedure THAnimMotionNode.SetStartFrame(const Value: Integer);
296 begin
297 FdStartFrame.Send(Value);
298 end;
299
300 procedure THAnimMotionNode.SetValues(const Value: array of Single);
301 begin
302 FdValues.Send(Value);
303 end;
304
305 procedure THAnimMotionNode.SetValues(const Value: TSingleList);
306 begin
307 FdValues.Send(Value);
308 end;
309
310 class function THAnimMotionNode.ClassX3DType: String;
311 begin
312 Result := 'HAnimMotion';
313 end;
314
315 procedure THAnimMotionNode.CreateNode;
316 begin
317 inherited;
318
319 FEventNext := TSFBoolEvent.Create(Self, 'next', true);
320 AddEvent(FEventNext);
321
322 FEventPrevious := TSFBoolEvent.Create(Self, 'previous', true);
323 AddEvent(FEventPrevious);
324
325 FFdChannels := TSFString.Create(Self, True, 'channels', '');
326 FdChannels.ChangeAlways := chVisibleNonGeometry;
327 AddField(FFdChannels);
328
329 FFdChannelsEnabled := TMFBool.Create(Self, True, 'channelsEnabled', []);
330 FdChannelsEnabled.ChangeAlways := chVisibleNonGeometry;
331 AddField(FFdChannelsEnabled);
332
333 FFdDescription := TSFString.Create(Self, True, 'description', '');
334 FdDescription.ChangeAlways := chVisibleNonGeometry;
335 AddField(FFdDescription);
336
337 FFdEnabled := TSFBool.Create(Self, True, 'enabled', true);
338 FdEnabled.ChangeAlways := chVisibleNonGeometry;
339 AddField(FFdEnabled);
340
341 FFdEndFrame := TSFInt32.Create(Self, True, 'endFrame', 0);
342 FdEndFrame.ChangeAlways := chVisibleNonGeometry;
343 FdEndFrame.MustBeNonnegative := true;
344 AddField(FFdEndFrame);
345
346 FFdFrameDuration := TSFTime.Create(Self, True, 'frameDuration', 0.1);
347 FdFrameDuration.ChangeAlways := chVisibleNonGeometry;
348 AddField(FFdFrameDuration);
349
350 FFdFrameIncrement := TSFInt32.Create(Self, True, 'frameIncrement', 1);
351 FdFrameIncrement.ChangeAlways := chVisibleNonGeometry;
352 AddField(FFdFrameIncrement);
353
354 FFdFrameIndex := TSFInt32.Create(Self, True, 'frameIndex', 0);
355 FdFrameIndex.ChangeAlways := chVisibleNonGeometry;
356 FdFrameIndex.MustBeNonnegative := true;
357 AddField(FFdFrameIndex);
358
359 FFdJoints := TSFString.Create(Self, True, 'joints', '');
360 FdJoints.ChangeAlways := chVisibleNonGeometry;
361 AddField(FFdJoints);
362
363 FFdLoa := TSFInt32.Create(Self, True, 'loa', -1);
364 FdLoa.ChangeAlways := chVisibleNonGeometry;
365 AddField(FFdLoa);
366
367 FFdLoop := TSFBool.Create(Self, True, 'loop', false);
368 FdLoop.ChangeAlways := chVisibleNonGeometry;
369 AddField(FFdLoop);
370
371 FFdName := TSFString.Create(Self, True, 'name', '');
372 FdName.ChangeAlways := chVisibleNonGeometry;
373 AddField(FFdName);
374
375 FFdStartFrame := TSFInt32.Create(Self, True, 'startFrame', 0);
376 FdStartFrame.ChangeAlways := chVisibleNonGeometry;
377 FdStartFrame.MustBeNonnegative := true;
378 AddField(FFdStartFrame);
379
380 FFdValues := TMFFloat.Create(Self, True, 'values', []);
381 FdValues.ChangeAlways := chVisibleNonGeometry;
382 AddField(FFdValues);
383
384 FEventCycleTime := TSFTimeEvent.Create(Self, 'cycleTime', false);
385 AddEvent(FEventCycleTime);
386
387 FEventElapsedTime := TSFTimeEvent.Create(Self, 'elapsedTime', false);
388 AddEvent(FEventElapsedTime);
389
390 FEventFrameCount := TSFInt32Event.Create(Self, 'frameCount', false);
391 AddEvent(FEventFrameCount);
392 end;
393
394 {$endif read_implementation}