Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_signalpdu.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 GetAddress: String;
28 procedure SetAddress(const Value: String);
29 function GetApplicationID: Integer;
30 procedure SetApplicationID(const Value: Integer);
31 function GetDataLength: Integer;
32 procedure SetDataLength(const Value: Integer);
33 function GetEncodingScheme: Integer;
34 procedure SetEncodingScheme(const Value: Integer);
35 function GetEntityID: Integer;
36 procedure SetEntityID(const Value: Integer);
37 function GetMulticastRelayHost: String;
38 procedure SetMulticastRelayHost(const Value: String);
39 function GetMulticastRelayPort: Integer;
40 procedure SetMulticastRelayPort(const Value: Integer);
41 function GetNetworkMode: TDISNetworkMode;
42 procedure SetNetworkMode(const Value: TDISNetworkMode);
43 function GetPort: Integer;
44 procedure SetPort(const Value: Integer);
45 function GetRadioID: Integer;
46 procedure SetRadioID(const Value: Integer);
47 function GetReadInterval: Single;
48 procedure SetReadInterval(const Value: Single);
49 function GetRtpHeaderExpected: Boolean;
50 procedure SetRtpHeaderExpected(const Value: Boolean);
51 function GetSampleRate: Integer;
52 procedure SetSampleRate(const Value: Integer);
53 function GetSamples: Integer;
54 procedure SetSamples(const Value: Integer);
55 function GetSiteID: Integer;
56 procedure SetSiteID(const Value: Integer);
57 function GetTdlType: Integer;
58 procedure SetTdlType(const Value: Integer);
59 function GetWhichGeometry: Integer;
60 procedure SetWhichGeometry(const Value: Integer);
61 function GetWriteInterval: Single;
62 procedure SetWriteInterval(const Value: Single);
63 function GetBBox: TBox3D;
64 procedure SetBBox(const Value: TBox3D);
65 public
66 { Create node fields and events. }
67 procedure CreateNode; override;
68 class function ClassX3DType: String; override;
69
70 strict private FFdAddress: TSFString;
71 { Internal wrapper for property @code(Address). This wrapper API may change, we advise to access simpler @code(Address) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdAddress: TSFString read FFdAddress;
73 { }
74 property Address: String read GetAddress write SetAddress;
75
76 strict private FFdApplicationID: TSFInt32;
77 { Internal wrapper for property @code(ApplicationID). This wrapper API may change, we advise to access simpler @code(ApplicationID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdApplicationID: TSFInt32 read FFdApplicationID;
79 { }
80 property ApplicationID: Integer read GetApplicationID write SetApplicationID;
81
82 strict private FFdData: TMFInt32;
83 { Internal wrapper for property @code(Data). This wrapper API may change, we advise to access simpler @code(Data) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdData: TMFInt32 read FFdData;
85 { }
86 procedure SetData(const Value: array of Int32); overload;
87 { }
88 procedure SetData(const Value: TInt32List); overload;
89
90 strict private FFdDataLength: TSFInt32;
91 { Internal wrapper for property @code(DataLength). This wrapper API may change, we advise to access simpler @code(DataLength) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdDataLength: TSFInt32 read FFdDataLength;
93 { }
94 property DataLength: Integer read GetDataLength write SetDataLength;
95
96 strict private FFdEncodingScheme: TSFInt32;
97 { Internal wrapper for property @code(EncodingScheme). This wrapper API may change, we advise to access simpler @code(EncodingScheme) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
98 public property FdEncodingScheme: TSFInt32 read FFdEncodingScheme;
99 { }
100 property EncodingScheme: Integer read GetEncodingScheme write SetEncodingScheme;
101
102 strict private FFdEntityID: TSFInt32;
103 { Internal wrapper for property @code(EntityID). This wrapper API may change, we advise to access simpler @code(EntityID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
104 public property FdEntityID: TSFInt32 read FFdEntityID;
105 { }
106 property EntityID: Integer read GetEntityID write SetEntityID;
107
108 strict private FFdMulticastRelayHost: TSFString;
109 { Internal wrapper for property @code(MulticastRelayHost). This wrapper API may change, we advise to access simpler @code(MulticastRelayHost) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
110 public property FdMulticastRelayHost: TSFString read FFdMulticastRelayHost;
111 { }
112 property MulticastRelayHost: String read GetMulticastRelayHost write SetMulticastRelayHost;
113
114 strict private FFdMulticastRelayPort: TSFInt32;
115 { Internal wrapper for property @code(MulticastRelayPort). This wrapper API may change, we advise to access simpler @code(MulticastRelayPort) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdMulticastRelayPort: TSFInt32 read FFdMulticastRelayPort;
117 { }
118 property MulticastRelayPort: Integer read GetMulticastRelayPort write SetMulticastRelayPort;
119
120 strict private FFdNetworkMode: TSFStringEnum;
121 { Internal wrapper for property @code(NetworkMode). This wrapper API may change, we advise to access simpler @code(NetworkMode) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdNetworkMode: TSFStringEnum read FFdNetworkMode;
123 { }
124 property NetworkMode: TDISNetworkMode read GetNetworkMode write SetNetworkMode;
125
126 strict private FFdPort: TSFInt32;
127 { Internal wrapper for property @code(Port). This wrapper API may change, we advise to access simpler @code(Port) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdPort: TSFInt32 read FFdPort;
129 { }
130 property Port: Integer read GetPort write SetPort;
131
132 strict private FFdRadioID: TSFInt32;
133 { Internal wrapper for property @code(RadioID). This wrapper API may change, we advise to access simpler @code(RadioID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
134 public property FdRadioID: TSFInt32 read FFdRadioID;
135 { }
136 property RadioID: Integer read GetRadioID write SetRadioID;
137
138 strict private FFdReadInterval: TSFFloat;
139 { Internal wrapper for property @code(ReadInterval). This wrapper API may change, we advise to access simpler @code(ReadInterval) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
140 public property FdReadInterval: TSFFloat read FFdReadInterval;
141 { }
142 property ReadInterval: Single read GetReadInterval write SetReadInterval;
143
144 strict private FFdRtpHeaderExpected: TSFBool;
145 { Internal wrapper for property @code(RtpHeaderExpected). This wrapper API may change, we advise to access simpler @code(RtpHeaderExpected) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
146 public property FdRtpHeaderExpected: TSFBool read FFdRtpHeaderExpected;
147 { }
148 property RtpHeaderExpected: Boolean read GetRtpHeaderExpected write SetRtpHeaderExpected;
149
150 strict private FFdSampleRate: TSFInt32;
151 { Internal wrapper for property @code(SampleRate). This wrapper API may change, we advise to access simpler @code(SampleRate) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
152 public property FdSampleRate: TSFInt32 read FFdSampleRate;
153 { }
154 property SampleRate: Integer read GetSampleRate write SetSampleRate;
155
156 strict private FFdSamples: TSFInt32;
157 { Internal wrapper for property @code(Samples). This wrapper API may change, we advise to access simpler @code(Samples) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
158 public property FdSamples: TSFInt32 read FFdSamples;
159 { }
160 property Samples: Integer read GetSamples write SetSamples;
161
162 strict private FFdSiteID: TSFInt32;
163 { Internal wrapper for property @code(SiteID). This wrapper API may change, we advise to access simpler @code(SiteID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
164 public property FdSiteID: TSFInt32 read FFdSiteID;
165 { }
166 property SiteID: Integer read GetSiteID write SetSiteID;
167
168 strict private FFdTdlType: TSFInt32;
169 { Internal wrapper for property @code(TdlType). This wrapper API may change, we advise to access simpler @code(TdlType) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
170 public property FdTdlType: TSFInt32 read FFdTdlType;
171 { }
172 property TdlType: Integer read GetTdlType write SetTdlType;
173
174 strict private FFdWhichGeometry: TSFInt32;
175 { Internal wrapper for property @code(WhichGeometry). This wrapper API may change, we advise to access simpler @code(WhichGeometry) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
176 public property FdWhichGeometry: TSFInt32 read FFdWhichGeometry;
177 { }
178 property WhichGeometry: Integer read GetWhichGeometry write SetWhichGeometry;
179
180 strict private FFdWriteInterval: TSFFloat;
181 { Internal wrapper for property @code(WriteInterval). This wrapper API may change, we advise to access simpler @code(WriteInterval) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
182 public property FdWriteInterval: TSFFloat read FFdWriteInterval;
183 { }
184 property WriteInterval: Single read GetWriteInterval write SetWriteInterval;
185
186 strict private FEventIsNetworkReader: TSFBoolEvent;
187 { }
188 public property EventIsNetworkReader: TSFBoolEvent read FEventIsNetworkReader;
189
190 strict private FEventIsNetworkWriter: TSFBoolEvent;
191 { }
192 public property EventIsNetworkWriter: TSFBoolEvent read FEventIsNetworkWriter;
193
194 strict private FEventIsRtpHeaderHeard: TSFBoolEvent;
195 { }
196 public property EventIsRtpHeaderHeard: TSFBoolEvent read FEventIsRtpHeaderHeard;
197
198 strict private FEventIsStandAlone: TSFBoolEvent;
199 { }
200 public property EventIsStandAlone: TSFBoolEvent read FEventIsStandAlone;
201
202 strict private FEventTimestamp: TSFTimeEvent;
203 { }
204 public property EventTimestamp: TSFTimeEvent read FEventTimestamp;
205
206 strict private FFdBboxCenter: TSFVec3f;
207 { Internal wrapper for property @code(BboxCenter). This wrapper API may change, we advise to access simpler @code(BboxCenter) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
208 public property FdBboxCenter: TSFVec3f read FFdBboxCenter;
209 { }
210 property BBox: TBox3D read GetBBox write SetBBox;
211
212 strict private FFdBboxSize: TSFVec3f;
213 { Internal wrapper for property @code(BboxSize). This wrapper API may change, we advise to access simpler @code(BboxSize) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
214 public property FdBboxSize: TSFVec3f read FFdBboxSize;
215
216 {$endif read_interface}
217
218 {$ifdef read_implementation}
219
220 { TSignalPduNode ----------------------------------------------- }
221
222 function TSignalPduNode.GetAddress: String;
223 begin
224 Result := FdAddress.Value;
225 end;
226
227 procedure TSignalPduNode.SetAddress(const Value: String);
228 begin
229 FdAddress.Send(Value);
230 end;
231
232 function TSignalPduNode.GetApplicationID: Integer;
233 begin
234 Result := FdApplicationID.Value;
235 end;
236
237 procedure TSignalPduNode.SetApplicationID(const Value: Integer);
238 begin
239 FdApplicationID.Send(Value);
240 end;
241
242 procedure TSignalPduNode.SetData(const Value: array of Int32);
243 begin
244 FdData.Send(Value);
245 end;
246
247 procedure TSignalPduNode.SetData(const Value: TInt32List);
248 begin
249 FdData.Send(Value);
250 end;
251
252 function TSignalPduNode.GetDataLength: Integer;
253 begin
254 Result := FdDataLength.Value;
255 end;
256
257 procedure TSignalPduNode.SetDataLength(const Value: Integer);
258 begin
259 FdDataLength.Send(Value);
260 end;
261
262 function TSignalPduNode.GetEncodingScheme: Integer;
263 begin
264 Result := FdEncodingScheme.Value;
265 end;
266
267 procedure TSignalPduNode.SetEncodingScheme(const Value: Integer);
268 begin
269 FdEncodingScheme.Send(Value);
270 end;
271
272 function TSignalPduNode.GetEntityID: Integer;
273 begin
274 Result := FdEntityID.Value;
275 end;
276
277 procedure TSignalPduNode.SetEntityID(const Value: Integer);
278 begin
279 FdEntityID.Send(Value);
280 end;
281
282 function TSignalPduNode.GetMulticastRelayHost: String;
283 begin
284 Result := FdMulticastRelayHost.Value;
285 end;
286
287 procedure TSignalPduNode.SetMulticastRelayHost(const Value: String);
288 begin
289 FdMulticastRelayHost.Send(Value);
290 end;
291
292 function TSignalPduNode.GetMulticastRelayPort: Integer;
293 begin
294 Result := FdMulticastRelayPort.Value;
295 end;
296
297 procedure TSignalPduNode.SetMulticastRelayPort(const Value: Integer);
298 begin
299 FdMulticastRelayPort.Send(Value);
300 end;
301
302 function TSignalPduNode.GetNetworkMode: TDISNetworkMode;
303 begin
304 Result := TDISNetworkMode(FdNetworkMode.EnumValue);
305 end;
306
307 procedure TSignalPduNode.SetNetworkMode(const Value: TDISNetworkMode);
308 begin
309 FdNetworkMode.SendEnumValue(Ord(Value));
310 end;
311
312 function TSignalPduNode.GetPort: Integer;
313 begin
314 Result := FdPort.Value;
315 end;
316
317 procedure TSignalPduNode.SetPort(const Value: Integer);
318 begin
319 FdPort.Send(Value);
320 end;
321
322 function TSignalPduNode.GetRadioID: Integer;
323 begin
324 Result := FdRadioID.Value;
325 end;
326
327 procedure TSignalPduNode.SetRadioID(const Value: Integer);
328 begin
329 FdRadioID.Send(Value);
330 end;
331
332 function TSignalPduNode.GetReadInterval: Single;
333 begin
334 Result := FdReadInterval.Value;
335 end;
336
337 procedure TSignalPduNode.SetReadInterval(const Value: Single);
338 begin
339 FdReadInterval.Send(Value);
340 end;
341
342 function TSignalPduNode.GetRtpHeaderExpected: Boolean;
343 begin
344 Result := FdRtpHeaderExpected.Value;
345 end;
346
347 procedure TSignalPduNode.SetRtpHeaderExpected(const Value: Boolean);
348 begin
349 FdRtpHeaderExpected.Send(Value);
350 end;
351
352 function TSignalPduNode.GetSampleRate: Integer;
353 begin
354 Result := FdSampleRate.Value;
355 end;
356
357 procedure TSignalPduNode.SetSampleRate(const Value: Integer);
358 begin
359 FdSampleRate.Send(Value);
360 end;
361
362 function TSignalPduNode.GetSamples: Integer;
363 begin
364 Result := FdSamples.Value;
365 end;
366
367 procedure TSignalPduNode.SetSamples(const Value: Integer);
368 begin
369 FdSamples.Send(Value);
370 end;
371
372 function TSignalPduNode.GetSiteID: Integer;
373 begin
374 Result := FdSiteID.Value;
375 end;
376
377 procedure TSignalPduNode.SetSiteID(const Value: Integer);
378 begin
379 FdSiteID.Send(Value);
380 end;
381
382 function TSignalPduNode.GetTdlType: Integer;
383 begin
384 Result := FdTdlType.Value;
385 end;
386
387 procedure TSignalPduNode.SetTdlType(const Value: Integer);
388 begin
389 FdTdlType.Send(Value);
390 end;
391
392 function TSignalPduNode.GetWhichGeometry: Integer;
393 begin
394 Result := FdWhichGeometry.Value;
395 end;
396
397 procedure TSignalPduNode.SetWhichGeometry(const Value: Integer);
398 begin
399 FdWhichGeometry.Send(Value);
400 end;
401
402 function TSignalPduNode.GetWriteInterval: Single;
403 begin
404 Result := FdWriteInterval.Value;
405 end;
406
407 procedure TSignalPduNode.SetWriteInterval(const Value: Single);
408 begin
409 FdWriteInterval.Send(Value);
410 end;
411
412 function TSignalPduNode.GetBBox: TBox3D;
413 begin
414 Result := TBox3D.FromCenterSize(FdBBoxCenter.Value, FdBBoxSize.Value);
415 end;
416
417 procedure TSignalPduNode.SetBBox(const Value: TBox3D);
418 var
419 ValueCenter, ValueSize: TVector3;
420 begin
421 Value.ToCenterSize(ValueCenter, ValueSize);
422 FdBBoxCenter.Send(ValueCenter);
423 FdBBoxSize.Send(ValueSize);
424 end;
425
426 class function TSignalPduNode.ClassX3DType: String;
427 begin
428 Result := 'SignalPdu';
429 end;
430
431 procedure TSignalPduNode.CreateNode;
432 begin
433 inherited;
434
435 FFdAddress := TSFString.Create(Self, True, 'address', 'localhost');
436 FdAddress.ChangeAlways := chVisibleNonGeometry;
437 AddField(FFdAddress);
438
439 FFdApplicationID := TSFInt32.Create(Self, True, 'applicationID', 1);
440 FdApplicationID.ChangeAlways := chVisibleNonGeometry;
441 AddField(FFdApplicationID);
442
443 FFdData := TMFInt32.Create(Self, True, 'data', []);
444 FdData.ChangeAlways := chVisibleNonGeometry;
445 AddField(FFdData);
446
447 FFdDataLength := TSFInt32.Create(Self, True, 'dataLength', 0);
448 FdDataLength.ChangeAlways := chVisibleNonGeometry;
449 AddField(FFdDataLength);
450
451 FFdEncodingScheme := TSFInt32.Create(Self, True, 'encodingScheme', 0);
452 FdEncodingScheme.ChangeAlways := chVisibleNonGeometry;
453 AddField(FFdEncodingScheme);
454
455 FFdEntityID := TSFInt32.Create(Self, True, 'entityID', 0);
456 FdEntityID.ChangeAlways := chVisibleNonGeometry;
457 AddField(FFdEntityID);
458
459 FFdMulticastRelayHost := TSFString.Create(Self, True, 'multicastRelayHost', '');
460 FdMulticastRelayHost.ChangeAlways := chVisibleNonGeometry;
461 AddField(FFdMulticastRelayHost);
462
463 FFdMulticastRelayPort := TSFInt32.Create(Self, True, 'multicastRelayPort', 0);
464 FdMulticastRelayPort.ChangeAlways := chVisibleNonGeometry;
465 AddField(FFdMulticastRelayPort);
466
467 FFdNetworkMode := TSFStringEnum.Create(Self, True, 'networkMode', @DISNetworkModeNames, Ord(High(DISNetworkModeNames)) + 1, Ord(nmStandAlone));
468 FdNetworkMode.ChangeAlways := chVisibleNonGeometry;
469 AddField(FFdNetworkMode);
470
471 FFdPort := TSFInt32.Create(Self, True, 'port', 0);
472 FdPort.ChangeAlways := chVisibleNonGeometry;
473 AddField(FFdPort);
474
475 FFdRadioID := TSFInt32.Create(Self, True, 'radioID', 0);
476 FdRadioID.ChangeAlways := chVisibleNonGeometry;
477 AddField(FFdRadioID);
478
479 FFdReadInterval := TSFFloat.Create(Self, True, 'readInterval', 0.1);
480 FdReadInterval.ChangeAlways := chVisibleNonGeometry;
481 FdReadInterval.MustBeNonnegative := true;
482 AddField(FFdReadInterval);
483
484 FFdRtpHeaderExpected := TSFBool.Create(Self, True, 'rtpHeaderExpected', false);
485 FdRtpHeaderExpected.ChangeAlways := chVisibleNonGeometry;
486 AddField(FFdRtpHeaderExpected);
487
488 FFdSampleRate := TSFInt32.Create(Self, True, 'sampleRate', 0);
489 FdSampleRate.ChangeAlways := chVisibleNonGeometry;
490 AddField(FFdSampleRate);
491
492 FFdSamples := TSFInt32.Create(Self, True, 'samples', 0);
493 FdSamples.ChangeAlways := chVisibleNonGeometry;
494 AddField(FFdSamples);
495
496 FFdSiteID := TSFInt32.Create(Self, True, 'siteID', 0);
497 FdSiteID.ChangeAlways := chVisibleNonGeometry;
498 AddField(FFdSiteID);
499
500 FFdTdlType := TSFInt32.Create(Self, True, 'tdlType', 0);
501 FdTdlType.ChangeAlways := chVisibleNonGeometry;
502 AddField(FFdTdlType);
503
504 FFdWhichGeometry := TSFInt32.Create(Self, True, 'whichGeometry', 1);
505 FdWhichGeometry.ChangeAlways := chVisibleNonGeometry;
506 AddField(FFdWhichGeometry);
507
508 FFdWriteInterval := TSFFloat.Create(Self, True, 'writeInterval', 1.0);
509 FdWriteInterval.ChangeAlways := chVisibleNonGeometry;
510 FdWriteInterval.MustBeNonnegative := true;
511 AddField(FFdWriteInterval);
512
513 FEventIsNetworkReader := TSFBoolEvent.Create(Self, 'isNetworkReader', false);
514 AddEvent(FEventIsNetworkReader);
515
516 FEventIsNetworkWriter := TSFBoolEvent.Create(Self, 'isNetworkWriter', false);
517 AddEvent(FEventIsNetworkWriter);
518
519 FEventIsRtpHeaderHeard := TSFBoolEvent.Create(Self, 'isRtpHeaderHeard', false);
520 AddEvent(FEventIsRtpHeaderHeard);
521
522 FEventIsStandAlone := TSFBoolEvent.Create(Self, 'isStandAlone', false);
523 AddEvent(FEventIsStandAlone);
524
525 FEventTimestamp := TSFTimeEvent.Create(Self, 'timestamp', false);
526 AddEvent(FEventTimestamp);
527
528 FFdBboxCenter := TSFVec3f.Create(Self, False, 'bboxCenter', Vector3(0, 0, 0));
529 FdBboxCenter.ChangeAlways := chVisibleNonGeometry;
530 AddField(FFdBboxCenter);
531
532 FFdBboxSize := TSFVec3f.Create(Self, False, 'bboxSize', Vector3(-1, -1, -1));
533 FdBboxSize.ChangeAlways := chVisibleNonGeometry;
534 AddField(FFdBboxSize);
535 end;
536
537 {$endif read_implementation}