Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_coordinatedamper.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 public
27 { Create node fields and events. }
28 procedure CreateNode; override;
29 class function ClassX3DType: String; override;
30
31 strict private FEventSet_destination: TMFVec3fEvent;
32 { }
33 public property EventSet_destination: TMFVec3fEvent read FEventSet_destination;
34
35 strict private FEventSet_value: TMFVec3fEvent;
36 { }
37 public property EventSet_value: TMFVec3fEvent read FEventSet_value;
38
39 strict private FEventValue_changed: TMFVec3fEvent;
40 { }
41 public property EventValue_changed: TMFVec3fEvent read FEventValue_changed;
42
43 strict private FFdInitialDestination: TMFVec3f;
44 { Internal wrapper for property @code(InitialDestination). This wrapper API may change, we advise to access simpler @code(InitialDestination) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
45 public property FdInitialDestination: TMFVec3f read FFdInitialDestination;
46 { }
47 procedure SetInitialDestination(const Value: array of TVector3); overload;
48 { }
49 procedure SetInitialDestination(const Value: TVector3List); overload;
50
51 strict private FFdInitialValue: TMFVec3f;
52 { Internal wrapper for property @code(InitialValue). This wrapper API may change, we advise to access simpler @code(InitialValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
53 public property FdInitialValue: TMFVec3f read FFdInitialValue;
54 { }
55 procedure SetInitialValue(const Value: array of TVector3); overload;
56 { }
57 procedure SetInitialValue(const Value: TVector3List); overload;
58
59 {$endif read_interface}
60
61 {$ifdef read_implementation}
62
63 { TCoordinateDamperNode ----------------------------------------------- }
64
65 procedure TCoordinateDamperNode.SetInitialDestination(const Value: array of TVector3);
66 begin
67 FdInitialDestination.Send(Value);
68 end;
69
70 procedure TCoordinateDamperNode.SetInitialDestination(const Value: TVector3List);
71 begin
72 FdInitialDestination.Send(Value);
73 end;
74
75 procedure TCoordinateDamperNode.SetInitialValue(const Value: array of TVector3);
76 begin
77 FdInitialValue.Send(Value);
78 end;
79
80 procedure TCoordinateDamperNode.SetInitialValue(const Value: TVector3List);
81 begin
82 FdInitialValue.Send(Value);
83 end;
84
85 class function TCoordinateDamperNode.ClassX3DType: String;
86 begin
87 Result := 'CoordinateDamper';
88 end;
89
90 procedure TCoordinateDamperNode.CreateNode;
91 begin
92 inherited;
93
94 FEventSet_destination := TMFVec3fEvent.Create(Self, 'set_destination', true);
95 AddEvent(FEventSet_destination);
96
97 FEventSet_value := TMFVec3fEvent.Create(Self, 'set_value', true);
98 AddEvent(FEventSet_value);
99
100 FEventValue_changed := TMFVec3fEvent.Create(Self, 'value_changed', false);
101 AddEvent(FEventValue_changed);
102
103 FFdInitialDestination := TMFVec3f.Create(Self, False, 'initialDestination', [Vector3(0, 0, 0)]);
104 FdInitialDestination.ChangeAlways := chVisibleNonGeometry;
105 AddField(FFdInitialDestination);
106
107 FFdInitialValue := TMFVec3f.Create(Self, False, 'initialValue', [Vector3(0, 0, 0)]);
108 FdInitialValue.ChangeAlways := chVisibleNonGeometry;
109 AddField(FFdInitialValue);
110 end;
111
112 {$endif read_implementation}