Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_cylindersensor.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 GetAxisRotation: TVector4;
28 procedure SetAxisRotation(const Value: TVector4);
29 function GetDiskAngle: Single;
30 procedure SetDiskAngle(const Value: Single);
31 function GetMaxAngle: Single;
32 procedure SetMaxAngle(const Value: Single);
33 function GetMinAngle: Single;
34 procedure SetMinAngle(const Value: Single);
35 function GetOffset: Single;
36 procedure SetOffset(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 FFdAxisRotation: TSFRotation;
43 { Internal wrapper for property @code(AxisRotation). This wrapper API may change, we advise to access simpler @code(AxisRotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdAxisRotation: TSFRotation read FFdAxisRotation;
45 { }
46 property AxisRotation: TVector4 read GetAxisRotation write SetAxisRotation;
47
48 strict private FFdDiskAngle: TSFFloat;
49 { Internal wrapper for property @code(DiskAngle). This wrapper API may change, we advise to access simpler @code(DiskAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdDiskAngle: TSFFloat read FFdDiskAngle;
51 { }
52 property DiskAngle: Single read GetDiskAngle write SetDiskAngle;
53
54 strict private FFdMaxAngle: TSFFloat;
55 { Internal wrapper for property @code(MaxAngle). This wrapper API may change, we advise to access simpler @code(MaxAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdMaxAngle: TSFFloat read FFdMaxAngle;
57 { }
58 property MaxAngle: Single read GetMaxAngle write SetMaxAngle;
59
60 strict private FFdMinAngle: TSFFloat;
61 { Internal wrapper for property @code(MinAngle). This wrapper API may change, we advise to access simpler @code(MinAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdMinAngle: TSFFloat read FFdMinAngle;
63 { }
64 property MinAngle: Single read GetMinAngle write SetMinAngle;
65
66 strict private FFdOffset: TSFFloat;
67 { Internal wrapper for property @code(Offset). This wrapper API may change, we advise to access simpler @code(Offset) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdOffset: TSFFloat read FFdOffset;
69 { }
70 property Offset: Single read GetOffset write SetOffset;
71
72 strict private FEventRotation_changed: TSFRotationEvent;
73 { }
74 public property EventRotation_changed: TSFRotationEvent read FEventRotation_changed;
75
76 {$endif read_interface}
77
78 {$ifdef read_implementation}
79
80 { TCylinderSensorNode ----------------------------------------------- }
81
82 function TCylinderSensorNode.GetAxisRotation: TVector4;
83 begin
84 Result := FdAxisRotation.Value;
85 end;
86
87 procedure TCylinderSensorNode.SetAxisRotation(const Value: TVector4);
88 begin
89 FdAxisRotation.Send(Value);
90 end;
91
92 function TCylinderSensorNode.GetDiskAngle: Single;
93 begin
94 Result := FdDiskAngle.Value;
95 end;
96
97 procedure TCylinderSensorNode.SetDiskAngle(const Value: Single);
98 begin
99 FdDiskAngle.Send(Value);
100 end;
101
102 function TCylinderSensorNode.GetMaxAngle: Single;
103 begin
104 Result := FdMaxAngle.Value;
105 end;
106
107 procedure TCylinderSensorNode.SetMaxAngle(const Value: Single);
108 begin
109 FdMaxAngle.Send(Value);
110 end;
111
112 function TCylinderSensorNode.GetMinAngle: Single;
113 begin
114 Result := FdMinAngle.Value;
115 end;
116
117 procedure TCylinderSensorNode.SetMinAngle(const Value: Single);
118 begin
119 FdMinAngle.Send(Value);
120 end;
121
122 function TCylinderSensorNode.GetOffset: Single;
123 begin
124 Result := FdOffset.Value;
125 end;
126
127 procedure TCylinderSensorNode.SetOffset(const Value: Single);
128 begin
129 FdOffset.Send(Value);
130 end;
131
132 class function TCylinderSensorNode.ClassX3DType: String;
133 begin
134 Result := 'CylinderSensor';
135 end;
136
137 procedure TCylinderSensorNode.CreateNode;
138 begin
139 inherited;
140
141 FFdAxisRotation := TSFRotation.Create(Self, True, 'axisRotation', Vector3(0, 1, 0), 0);
142 FdAxisRotation.ChangeAlways := chVisibleNonGeometry;
143 AddField(FFdAxisRotation);
144
145 FFdDiskAngle := TSFFloat.Create(Self, True, 'diskAngle', Pi/12);
146 FdDiskAngle.ChangeAlways := chVisibleNonGeometry;
147 AddField(FFdDiskAngle);
148
149 FFdMaxAngle := TSFFloat.Create(Self, True, 'maxAngle', -1);
150 FdMaxAngle.ChangeAlways := chVisibleNonGeometry;
151 AddField(FFdMaxAngle);
152
153 FFdMinAngle := TSFFloat.Create(Self, True, 'minAngle', 0);
154 FdMinAngle.ChangeAlways := chVisibleNonGeometry;
155 AddField(FFdMinAngle);
156
157 FFdOffset := TSFFloat.Create(Self, True, 'offset', 0);
158 FdOffset.ChangeAlways := chVisibleNonGeometry;
159 AddField(FFdOffset);
160
161 FEventRotation_changed := TSFRotationEvent.Create(Self, 'rotation_changed', false);
162 AddEvent(FEventRotation_changed);
163 end;
164
165 {$endif read_implementation}