Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dnurbssurfacegeometrynode.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 GetControlPoint: TAbstractCoordinateNode;
28 procedure SetControlPoint(const Value: TAbstractCoordinateNode);
29 function GetTexCoord: TX3DNode;
30 procedure SetTexCoord(const Value: TX3DNode);
31 function GetUTessellation: Integer;
32 procedure SetUTessellation(const Value: Integer);
33 function GetVTessellation: Integer;
34 procedure SetVTessellation(const Value: Integer);
35 function GetUClosed: Boolean;
36 procedure SetUClosed(const Value: Boolean);
37 function GetUDimension: Integer;
38 procedure SetUDimension(const Value: Integer);
39 function GetUOrder: Integer;
40 procedure SetUOrder(const Value: Integer);
41 function GetVClosed: Boolean;
42 procedure SetVClosed(const Value: Boolean);
43 function GetVDimension: Integer;
44 procedure SetVDimension(const Value: Integer);
45 function GetVOrder: Integer;
46 procedure SetVOrder(const Value: Integer);
47 public
48 { Create node fields and events. }
49 procedure CreateNode; override;
50 class function ClassX3DType: String; override;
51
52 strict private FFdControlPoint: TSFNode;
53 { Internal wrapper for property @code(ControlPoint). This wrapper API may change, we advise to access simpler @code(ControlPoint) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdControlPoint: TSFNode read FFdControlPoint;
55 { }
56 property ControlPoint: TAbstractCoordinateNode read GetControlPoint write SetControlPoint;
57
58 strict private FFdTexCoord: TSFNode;
59 { Internal wrapper for property @code(TexCoord). This wrapper API may change, we advise to access simpler @code(TexCoord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdTexCoord: TSFNode read FFdTexCoord;
61 { }
62 property TexCoord: TX3DNode read GetTexCoord write SetTexCoord;
63
64 strict private FFdUTessellation: TSFInt32;
65 { Internal wrapper for property @code(UTessellation). This wrapper API may change, we advise to access simpler @code(UTessellation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdUTessellation: TSFInt32 read FFdUTessellation;
67 { }
68 property UTessellation: Integer read GetUTessellation write SetUTessellation;
69
70 strict private FFdVTessellation: TSFInt32;
71 { Internal wrapper for property @code(VTessellation). This wrapper API may change, we advise to access simpler @code(VTessellation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdVTessellation: TSFInt32 read FFdVTessellation;
73 { }
74 property VTessellation: Integer read GetVTessellation write SetVTessellation;
75
76 strict private FFdWeight: TMFDouble;
77 { Internal wrapper for property @code(Weight). This wrapper API may change, we advise to access simpler @code(Weight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdWeight: TMFDouble read FFdWeight;
79 { }
80 procedure SetWeight(const Value: array of Double); overload;
81 { }
82 procedure SetWeight(const Value: TDoubleList); overload;
83
84 strict private FFdSolid: TSFBool;
85 { Internal wrapper for property @code(Solid). This wrapper API may change, we advise to access simpler @code(Solid) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdSolid: TSFBool read FFdSolid;
87
88 strict private FFdUClosed: TSFBool;
89 { Internal wrapper for property @code(UClosed). This wrapper API may change, we advise to access simpler @code(UClosed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
90 public property FdUClosed: TSFBool read FFdUClosed;
91 { }
92 property UClosed: Boolean read GetUClosed write SetUClosed;
93
94 strict private FFdUDimension: TSFInt32;
95 { Internal wrapper for property @code(UDimension). This wrapper API may change, we advise to access simpler @code(UDimension) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
96 public property FdUDimension: TSFInt32 read FFdUDimension;
97 { }
98 property UDimension: Integer read GetUDimension write SetUDimension;
99
100 strict private FFdUKnot: TMFDouble;
101 { Internal wrapper for property @code(UKnot). This wrapper API may change, we advise to access simpler @code(UKnot) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
102 public property FdUKnot: TMFDouble read FFdUKnot;
103 { }
104 procedure SetUKnot(const Value: array of Double); overload;
105 { }
106 procedure SetUKnot(const Value: TDoubleList); overload;
107
108 strict private FFdUOrder: TSFInt32;
109 { Internal wrapper for property @code(UOrder). This wrapper API may change, we advise to access simpler @code(UOrder) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
110 public property FdUOrder: TSFInt32 read FFdUOrder;
111 { }
112 property UOrder: Integer read GetUOrder write SetUOrder;
113
114 strict private FFdVClosed: TSFBool;
115 { Internal wrapper for property @code(VClosed). This wrapper API may change, we advise to access simpler @code(VClosed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
116 public property FdVClosed: TSFBool read FFdVClosed;
117 { }
118 property VClosed: Boolean read GetVClosed write SetVClosed;
119
120 strict private FFdVDimension: TSFInt32;
121 { Internal wrapper for property @code(VDimension). This wrapper API may change, we advise to access simpler @code(VDimension) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
122 public property FdVDimension: TSFInt32 read FFdVDimension;
123 { }
124 property VDimension: Integer read GetVDimension write SetVDimension;
125
126 strict private FFdVKnot: TMFDouble;
127 { Internal wrapper for property @code(VKnot). This wrapper API may change, we advise to access simpler @code(VKnot) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
128 public property FdVKnot: TMFDouble read FFdVKnot;
129 { }
130 procedure SetVKnot(const Value: array of Double); overload;
131 { }
132 procedure SetVKnot(const Value: TDoubleList); overload;
133
134 strict private FFdVOrder: TSFInt32;
135 { Internal wrapper for property @code(VOrder). This wrapper API may change, we advise to access simpler @code(VOrder) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
136 public property FdVOrder: TSFInt32 read FFdVOrder;
137 { }
138 property VOrder: Integer read GetVOrder write SetVOrder;
139
140 {$endif read_interface}
141
142 {$ifdef read_implementation}
143
144 { TAbstractNurbsSurfaceGeometryNode ----------------------------------------------- }
145
146 function TAbstractNurbsSurfaceGeometryNode.GetControlPoint: TAbstractCoordinateNode;
147 begin
148 if FdControlPoint.Value is TAbstractCoordinateNode then
149 Result := TAbstractCoordinateNode(FdControlPoint.Value)
150 else
151 Result := nil;
152 end;
153
154 procedure TAbstractNurbsSurfaceGeometryNode.SetControlPoint(const Value: TAbstractCoordinateNode);
155 begin
156 FdControlPoint.Send(Value);
157 end;
158
159 function TAbstractNurbsSurfaceGeometryNode.GetTexCoord: TX3DNode;
160 begin
161 if FdTexCoord.Value is TX3DNode then
162 Result := TX3DNode(FdTexCoord.Value)
163 else
164 Result := nil;
165 end;
166
167 procedure TAbstractNurbsSurfaceGeometryNode.SetTexCoord(const Value: TX3DNode);
168 begin
169 FdTexCoord.Send(Value);
170 end;
171
172 function TAbstractNurbsSurfaceGeometryNode.GetUTessellation: Integer;
173 begin
174 Result := FdUTessellation.Value;
175 end;
176
177 procedure TAbstractNurbsSurfaceGeometryNode.SetUTessellation(const Value: Integer);
178 begin
179 FdUTessellation.Send(Value);
180 end;
181
182 function TAbstractNurbsSurfaceGeometryNode.GetVTessellation: Integer;
183 begin
184 Result := FdVTessellation.Value;
185 end;
186
187 procedure TAbstractNurbsSurfaceGeometryNode.SetVTessellation(const Value: Integer);
188 begin
189 FdVTessellation.Send(Value);
190 end;
191
192 procedure TAbstractNurbsSurfaceGeometryNode.SetWeight(const Value: array of Double);
193 begin
194 FdWeight.Send(Value);
195 end;
196
197 procedure TAbstractNurbsSurfaceGeometryNode.SetWeight(const Value: TDoubleList);
198 begin
199 FdWeight.Send(Value);
200 end;
201
202 function TAbstractNurbsSurfaceGeometryNode.GetUClosed: Boolean;
203 begin
204 Result := FdUClosed.Value;
205 end;
206
207 procedure TAbstractNurbsSurfaceGeometryNode.SetUClosed(const Value: Boolean);
208 begin
209 FdUClosed.Send(Value);
210 end;
211
212 function TAbstractNurbsSurfaceGeometryNode.GetUDimension: Integer;
213 begin
214 Result := FdUDimension.Value;
215 end;
216
217 procedure TAbstractNurbsSurfaceGeometryNode.SetUDimension(const Value: Integer);
218 begin
219 FdUDimension.Send(Value);
220 end;
221
222 procedure TAbstractNurbsSurfaceGeometryNode.SetUKnot(const Value: array of Double);
223 begin
224 FdUKnot.Send(Value);
225 end;
226
227 procedure TAbstractNurbsSurfaceGeometryNode.SetUKnot(const Value: TDoubleList);
228 begin
229 FdUKnot.Send(Value);
230 end;
231
232 function TAbstractNurbsSurfaceGeometryNode.GetUOrder: Integer;
233 begin
234 Result := FdUOrder.Value;
235 end;
236
237 procedure TAbstractNurbsSurfaceGeometryNode.SetUOrder(const Value: Integer);
238 begin
239 FdUOrder.Send(Value);
240 end;
241
242 function TAbstractNurbsSurfaceGeometryNode.GetVClosed: Boolean;
243 begin
244 Result := FdVClosed.Value;
245 end;
246
247 procedure TAbstractNurbsSurfaceGeometryNode.SetVClosed(const Value: Boolean);
248 begin
249 FdVClosed.Send(Value);
250 end;
251
252 function TAbstractNurbsSurfaceGeometryNode.GetVDimension: Integer;
253 begin
254 Result := FdVDimension.Value;
255 end;
256
257 procedure TAbstractNurbsSurfaceGeometryNode.SetVDimension(const Value: Integer);
258 begin
259 FdVDimension.Send(Value);
260 end;
261
262 procedure TAbstractNurbsSurfaceGeometryNode.SetVKnot(const Value: array of Double);
263 begin
264 FdVKnot.Send(Value);
265 end;
266
267 procedure TAbstractNurbsSurfaceGeometryNode.SetVKnot(const Value: TDoubleList);
268 begin
269 FdVKnot.Send(Value);
270 end;
271
272 function TAbstractNurbsSurfaceGeometryNode.GetVOrder: Integer;
273 begin
274 Result := FdVOrder.Value;
275 end;
276
277 procedure TAbstractNurbsSurfaceGeometryNode.SetVOrder(const Value: Integer);
278 begin
279 FdVOrder.Send(Value);
280 end;
281
282 class function TAbstractNurbsSurfaceGeometryNode.ClassX3DType: String;
283 begin
284 Result := 'X3DNurbsSurfaceGeometryNode';
285 end;
286
287 procedure TAbstractNurbsSurfaceGeometryNode.CreateNode;
288 begin
289 inherited;
290
291 FFdControlPoint := TSFNode.Create(Self, True, 'controlPoint', [TAbstractCoordinateNode]);
292 FdControlPoint.ChangeAlways := chGeometry;
293 AddField(FFdControlPoint);
294
295 FFdTexCoord := TSFNode.Create(Self, True, 'texCoord', [TAbstractTextureCoordinateNode, TNurbsTextureCoordinateNode]);
296 FdTexCoord.ChangeAlways := chGeometry;
297 AddField(FFdTexCoord);
298
299 FFdUTessellation := TSFInt32.Create(Self, True, 'uTessellation', 0);
300 FdUTessellation.ChangeAlways := chGeometry;
301 AddField(FFdUTessellation);
302
303 FFdVTessellation := TSFInt32.Create(Self, True, 'vTessellation', 0);
304 FdVTessellation.ChangeAlways := chGeometry;
305 AddField(FFdVTessellation);
306
307 FFdWeight := TMFDouble.Create(Self, True, 'weight', []);
308 FdWeight.ChangeAlways := chGeometry;
309 AddField(FFdWeight);
310
311 FFdSolid := TSFBool.Create(Self, False, 'solid', true);
312 FdSolid.ChangeAlways := chGeometry;
313 AddField(FFdSolid);
314
315 FFdUClosed := TSFBool.Create(Self, False, 'uClosed', false);
316 FdUClosed.ChangeAlways := chGeometry;
317 AddField(FFdUClosed);
318
319 FFdUDimension := TSFInt32.Create(Self, False, 'uDimension', 0);
320 FdUDimension.ChangeAlways := chGeometry;
321 FdUDimension.MustBeNonnegative := true;
322 AddField(FFdUDimension);
323
324 FFdUKnot := TMFDouble.Create(Self, False, 'uKnot', []);
325 FdUKnot.ChangeAlways := chGeometry;
326 AddField(FFdUKnot);
327
328 FFdUOrder := TSFInt32.Create(Self, False, 'uOrder', 3);
329 FdUOrder.ChangeAlways := chGeometry;
330 AddField(FFdUOrder);
331
332 FFdVClosed := TSFBool.Create(Self, False, 'vClosed', false);
333 FdVClosed.ChangeAlways := chGeometry;
334 AddField(FFdVClosed);
335
336 FFdVDimension := TSFInt32.Create(Self, False, 'vDimension', 0);
337 FdVDimension.ChangeAlways := chGeometry;
338 FdVDimension.MustBeNonnegative := true;
339 AddField(FFdVDimension);
340
341 FFdVKnot := TMFDouble.Create(Self, False, 'vKnot', []);
342 FdVKnot.ChangeAlways := chGeometry;
343 AddField(FFdVKnot);
344
345 FFdVOrder := TSFInt32.Create(Self, False, 'vOrder', 3);
346 FdVOrder.ChangeAlways := chGeometry;
347 AddField(FFdVOrder);
348 end;
349
350 {$endif read_implementation}