Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_sound.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 GetDirection: TVector3;
28 procedure SetDirection(const Value: TVector3);
29 function GetIntensity: Single;
30 procedure SetIntensity(const Value: Single);
31 function GetLocation: TVector3;
32 procedure SetLocation(const Value: TVector3);
33 function GetMaxBack: Single;
34 procedure SetMaxBack(const Value: Single);
35 function GetMaxFront: Single;
36 procedure SetMaxFront(const Value: Single);
37 function GetMinBack: Single;
38 procedure SetMinBack(const Value: Single);
39 function GetMinFront: Single;
40 procedure SetMinFront(const Value: Single);
41 function GetPriority: Single;
42 procedure SetPriority(const Value: Single);
43 function GetSource: TX3DNode;
44 procedure SetSource(const Value: TX3DNode);
45 function GetSpatialize: Boolean;
46 procedure SetSpatialize(const Value: Boolean);
47 public
48 { Create node fields and events. }
49 procedure CreateNode; override;
50 class function ClassX3DType: String; override;
51
52 strict private FFdDirection: TSFVec3f;
53 { Internal wrapper for property @code(Direction). This wrapper API may change, we advise to access simpler @code(Direction) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdDirection: TSFVec3f read FFdDirection;
55 { }
56 property Direction: TVector3 read GetDirection write SetDirection;
57
58 strict private FFdIntensity: TSFFloat;
59 { Internal wrapper for property @code(Intensity). This wrapper API may change, we advise to access simpler @code(Intensity) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdIntensity: TSFFloat read FFdIntensity;
61 { }
62 property Intensity: Single read GetIntensity write SetIntensity;
63
64 strict private FFdLocation: TSFVec3f;
65 { Internal wrapper for property @code(Location). This wrapper API may change, we advise to access simpler @code(Location) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdLocation: TSFVec3f read FFdLocation;
67 { }
68 property Location: TVector3 read GetLocation write SetLocation;
69
70 strict private FFdMaxBack: TSFFloat;
71 { Internal wrapper for property @code(MaxBack). This wrapper API may change, we advise to access simpler @code(MaxBack) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdMaxBack: TSFFloat read FFdMaxBack;
73 { }
74 property MaxBack: Single read GetMaxBack write SetMaxBack;
75
76 strict private FFdMaxFront: TSFFloat;
77 { Internal wrapper for property @code(MaxFront). This wrapper API may change, we advise to access simpler @code(MaxFront) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdMaxFront: TSFFloat read FFdMaxFront;
79 { }
80 property MaxFront: Single read GetMaxFront write SetMaxFront;
81
82 strict private FFdMinBack: TSFFloat;
83 { Internal wrapper for property @code(MinBack). This wrapper API may change, we advise to access simpler @code(MinBack) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdMinBack: TSFFloat read FFdMinBack;
85 { }
86 property MinBack: Single read GetMinBack write SetMinBack;
87
88 strict private FFdMinFront: TSFFloat;
89 { Internal wrapper for property @code(MinFront). This wrapper API may change, we advise to access simpler @code(MinFront) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
90 public property FdMinFront: TSFFloat read FFdMinFront;
91 { }
92 property MinFront: Single read GetMinFront write SetMinFront;
93
94 strict private FFdPriority: TSFFloat;
95 { Internal wrapper for property @code(Priority). This wrapper API may change, we advise to access simpler @code(Priority) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
96 public property FdPriority: TSFFloat read FFdPriority;
97 { }
98 property Priority: Single read GetPriority write SetPriority;
99
100 strict private FFdSource: TSFNode;
101 { Internal wrapper for property @code(Source). This wrapper API may change, we advise to access simpler @code(Source) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
102 public property FdSource: TSFNode read FFdSource;
103 { }
104 property Source: TX3DNode read GetSource write SetSource;
105
106 strict private FFdSpatialize: TSFBool;
107 { Internal wrapper for property @code(Spatialize). This wrapper API may change, we advise to access simpler @code(Spatialize) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
108 public property FdSpatialize: TSFBool read FFdSpatialize;
109 { }
110 property Spatialize: Boolean read GetSpatialize write SetSpatialize;
111
112 {$endif read_interface}
113
114 {$ifdef read_implementation}
115
116 { TSoundNode ----------------------------------------------- }
117
118 function TSoundNode.GetDirection: TVector3;
119 begin
120 Result := FdDirection.Value;
121 end;
122
123 procedure TSoundNode.SetDirection(const Value: TVector3);
124 begin
125 FdDirection.Send(Value);
126 end;
127
128 function TSoundNode.GetIntensity: Single;
129 begin
130 Result := FdIntensity.Value;
131 end;
132
133 procedure TSoundNode.SetIntensity(const Value: Single);
134 begin
135 FdIntensity.Send(Value);
136 end;
137
138 function TSoundNode.GetLocation: TVector3;
139 begin
140 Result := FdLocation.Value;
141 end;
142
143 procedure TSoundNode.SetLocation(const Value: TVector3);
144 begin
145 FdLocation.Send(Value);
146 end;
147
148 function TSoundNode.GetMaxBack: Single;
149 begin
150 Result := FdMaxBack.Value;
151 end;
152
153 procedure TSoundNode.SetMaxBack(const Value: Single);
154 begin
155 FdMaxBack.Send(Value);
156 end;
157
158 function TSoundNode.GetMaxFront: Single;
159 begin
160 Result := FdMaxFront.Value;
161 end;
162
163 procedure TSoundNode.SetMaxFront(const Value: Single);
164 begin
165 FdMaxFront.Send(Value);
166 end;
167
168 function TSoundNode.GetMinBack: Single;
169 begin
170 Result := FdMinBack.Value;
171 end;
172
173 procedure TSoundNode.SetMinBack(const Value: Single);
174 begin
175 FdMinBack.Send(Value);
176 end;
177
178 function TSoundNode.GetMinFront: Single;
179 begin
180 Result := FdMinFront.Value;
181 end;
182
183 procedure TSoundNode.SetMinFront(const Value: Single);
184 begin
185 FdMinFront.Send(Value);
186 end;
187
188 function TSoundNode.GetPriority: Single;
189 begin
190 Result := FdPriority.Value;
191 end;
192
193 procedure TSoundNode.SetPriority(const Value: Single);
194 begin
195 FdPriority.Send(Value);
196 end;
197
198 function TSoundNode.GetSource: TX3DNode;
199 begin
200 if FdSource.Value is TX3DNode then
201 Result := TX3DNode(FdSource.Value)
202 else
203 Result := nil;
204 end;
205
206 procedure TSoundNode.SetSource(const Value: TX3DNode);
207 begin
208 FdSource.Send(Value);
209 end;
210
211 function TSoundNode.GetSpatialize: Boolean;
212 begin
213 Result := FdSpatialize.Value;
214 end;
215
216 procedure TSoundNode.SetSpatialize(const Value: Boolean);
217 begin
218 FdSpatialize.Send(Value);
219 end;
220
221 class function TSoundNode.ClassX3DType: String;
222 begin
223 Result := 'Sound';
224 end;
225
226 procedure TSoundNode.CreateNode;
227 begin
228 inherited;
229
230 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 0, 1));
231 FdDirection.ChangeAlways := chVisibleNonGeometry;
232 AddField(FFdDirection);
233
234 FFdIntensity := TSFFloat.Create(Self, True, 'intensity', 1);
235 FdIntensity.ChangeAlways := chVisibleNonGeometry;
236 FdIntensity.MustBeNonnegative := true;
237 AddField(FFdIntensity);
238
239 FFdLocation := TSFVec3f.Create(Self, True, 'location', Vector3(0, 0, 0));
240 FdLocation.ChangeAlways := chVisibleNonGeometry;
241 AddField(FFdLocation);
242
243 FFdMaxBack := TSFFloat.Create(Self, True, 'maxBack', 10);
244 FdMaxBack.ChangeAlways := chVisibleNonGeometry;
245 FdMaxBack.MustBeNonnegative := true;
246 AddField(FFdMaxBack);
247
248 FFdMaxFront := TSFFloat.Create(Self, True, 'maxFront', 10);
249 FdMaxFront.ChangeAlways := chVisibleNonGeometry;
250 FdMaxFront.MustBeNonnegative := true;
251 AddField(FFdMaxFront);
252
253 FFdMinBack := TSFFloat.Create(Self, True, 'minBack', 1);
254 FdMinBack.ChangeAlways := chVisibleNonGeometry;
255 FdMinBack.MustBeNonnegative := true;
256 AddField(FFdMinBack);
257
258 FFdMinFront := TSFFloat.Create(Self, True, 'minFront', 1);
259 FdMinFront.ChangeAlways := chVisibleNonGeometry;
260 FdMinFront.MustBeNonnegative := true;
261 AddField(FFdMinFront);
262
263 FFdPriority := TSFFloat.Create(Self, True, 'priority', 0);
264 FdPriority.ChangeAlways := chVisibleNonGeometry;
265 FdPriority.MustBeNonnegative := true;
266 AddField(FFdPriority);
267
268 FFdSource := TSFNode.Create(Self, True, 'source', [TAbstractSoundSourceNode, TMovieTextureNode]);
269 FdSource.ChangeAlways := chVisibleNonGeometry;
270 AddField(FFdSource);
271
272 FFdSpatialize := TSFBool.Create(Self, False, 'spatialize', true);
273 FdSpatialize.ChangeAlways := chVisibleNonGeometry;
274 AddField(FFdSpatialize);
275 end;
276
277 {$endif read_implementation}