Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_nurbssurfaceinterpolator.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 GetUDimension: Integer;
30 procedure SetUDimension(const Value: Integer);
31 function GetUOrder: Integer;
32 procedure SetUOrder(const Value: Integer);
33 function GetVDimension: Integer;
34 procedure SetVDimension(const Value: Integer);
35 function GetVOrder: Integer;
36 procedure SetVOrder(const Value: Integer);
37 public
38 { Create node fields and events. }
39 procedure CreateNode; override;
40 class function ClassX3DType: String; override;
41
42 strict private FEventSet_fraction: TSFVec2fEvent;
43 { }
44 public property EventSet_fraction: TSFVec2fEvent read FEventSet_fraction;
45
46 strict private FFdControlPoint: TSFNode;
47 { 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). }
48 public property FdControlPoint: TSFNode read FFdControlPoint;
49 { }
50 property ControlPoint: TAbstractCoordinateNode read GetControlPoint write SetControlPoint;
51
52 strict private FFdWeight: TMFDouble;
53 { 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). }
54 public property FdWeight: TMFDouble read FFdWeight;
55 { }
56 procedure SetWeight(const Value: array of Double); overload;
57 { }
58 procedure SetWeight(const Value: TDoubleList); overload;
59
60 strict private FEventPosition_changed: TSFVec3fEvent;
61 { }
62 public property EventPosition_changed: TSFVec3fEvent read FEventPosition_changed;
63
64 strict private FEventNormal_changed: TSFVec3fEvent;
65 { }
66 public property EventNormal_changed: TSFVec3fEvent read FEventNormal_changed;
67
68 strict private FFdUDimension: TSFInt32;
69 { 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). }
70 public property FdUDimension: TSFInt32 read FFdUDimension;
71 { }
72 property UDimension: Integer read GetUDimension write SetUDimension;
73
74 strict private FFdUKnot: TMFDouble;
75 { 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). }
76 public property FdUKnot: TMFDouble read FFdUKnot;
77 { }
78 procedure SetUKnot(const Value: array of Double); overload;
79 { }
80 procedure SetUKnot(const Value: TDoubleList); overload;
81
82 strict private FFdUOrder: TSFInt32;
83 { 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). }
84 public property FdUOrder: TSFInt32 read FFdUOrder;
85 { }
86 property UOrder: Integer read GetUOrder write SetUOrder;
87
88 strict private FFdVDimension: TSFInt32;
89 { 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). }
90 public property FdVDimension: TSFInt32 read FFdVDimension;
91 { }
92 property VDimension: Integer read GetVDimension write SetVDimension;
93
94 strict private FFdVKnot: TMFDouble;
95 { 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). }
96 public property FdVKnot: TMFDouble read FFdVKnot;
97 { }
98 procedure SetVKnot(const Value: array of Double); overload;
99 { }
100 procedure SetVKnot(const Value: TDoubleList); overload;
101
102 strict private FFdVOrder: TSFInt32;
103 { 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). }
104 public property FdVOrder: TSFInt32 read FFdVOrder;
105 { }
106 property VOrder: Integer read GetVOrder write SetVOrder;
107
108 {$endif read_interface}
109
110 {$ifdef read_implementation}
111
112 { TNurbsSurfaceInterpolatorNode ----------------------------------------------- }
113
114 function TNurbsSurfaceInterpolatorNode.GetControlPoint: TAbstractCoordinateNode;
115 begin
116 if FdControlPoint.Value is TAbstractCoordinateNode then
117 Result := TAbstractCoordinateNode(FdControlPoint.Value)
118 else
119 Result := nil;
120 end;
121
122 procedure TNurbsSurfaceInterpolatorNode.SetControlPoint(const Value: TAbstractCoordinateNode);
123 begin
124 FdControlPoint.Send(Value);
125 end;
126
127 procedure TNurbsSurfaceInterpolatorNode.SetWeight(const Value: array of Double);
128 begin
129 FdWeight.Send(Value);
130 end;
131
132 procedure TNurbsSurfaceInterpolatorNode.SetWeight(const Value: TDoubleList);
133 begin
134 FdWeight.Send(Value);
135 end;
136
137 function TNurbsSurfaceInterpolatorNode.GetUDimension: Integer;
138 begin
139 Result := FdUDimension.Value;
140 end;
141
142 procedure TNurbsSurfaceInterpolatorNode.SetUDimension(const Value: Integer);
143 begin
144 FdUDimension.Send(Value);
145 end;
146
147 procedure TNurbsSurfaceInterpolatorNode.SetUKnot(const Value: array of Double);
148 begin
149 FdUKnot.Send(Value);
150 end;
151
152 procedure TNurbsSurfaceInterpolatorNode.SetUKnot(const Value: TDoubleList);
153 begin
154 FdUKnot.Send(Value);
155 end;
156
157 function TNurbsSurfaceInterpolatorNode.GetUOrder: Integer;
158 begin
159 Result := FdUOrder.Value;
160 end;
161
162 procedure TNurbsSurfaceInterpolatorNode.SetUOrder(const Value: Integer);
163 begin
164 FdUOrder.Send(Value);
165 end;
166
167 function TNurbsSurfaceInterpolatorNode.GetVDimension: Integer;
168 begin
169 Result := FdVDimension.Value;
170 end;
171
172 procedure TNurbsSurfaceInterpolatorNode.SetVDimension(const Value: Integer);
173 begin
174 FdVDimension.Send(Value);
175 end;
176
177 procedure TNurbsSurfaceInterpolatorNode.SetVKnot(const Value: array of Double);
178 begin
179 FdVKnot.Send(Value);
180 end;
181
182 procedure TNurbsSurfaceInterpolatorNode.SetVKnot(const Value: TDoubleList);
183 begin
184 FdVKnot.Send(Value);
185 end;
186
187 function TNurbsSurfaceInterpolatorNode.GetVOrder: Integer;
188 begin
189 Result := FdVOrder.Value;
190 end;
191
192 procedure TNurbsSurfaceInterpolatorNode.SetVOrder(const Value: Integer);
193 begin
194 FdVOrder.Send(Value);
195 end;
196
197 class function TNurbsSurfaceInterpolatorNode.ClassX3DType: String;
198 begin
199 Result := 'NurbsSurfaceInterpolator';
200 end;
201
202 procedure TNurbsSurfaceInterpolatorNode.CreateNode;
203 begin
204 inherited;
205
206 FEventSet_fraction := TSFVec2fEvent.Create(Self, 'set_fraction', true);
207 AddEvent(FEventSet_fraction);
208
209 FFdControlPoint := TSFNode.Create(Self, True, 'controlPoint', [TAbstractCoordinateNode]);
210 FdControlPoint.ChangeAlways := chVisibleNonGeometry;
211 AddField(FFdControlPoint);
212
213 FFdWeight := TMFDouble.Create(Self, True, 'weight', []);
214 FdWeight.ChangeAlways := chVisibleNonGeometry;
215 AddField(FFdWeight);
216
217 FEventPosition_changed := TSFVec3fEvent.Create(Self, 'position_changed', false);
218 AddEvent(FEventPosition_changed);
219
220 FEventNormal_changed := TSFVec3fEvent.Create(Self, 'normal_changed', false);
221 AddEvent(FEventNormal_changed);
222
223 FFdUDimension := TSFInt32.Create(Self, False, 'uDimension', 0);
224 FdUDimension.ChangeAlways := chVisibleNonGeometry;
225 FdUDimension.MustBeNonnegative := true;
226 AddField(FFdUDimension);
227
228 FFdUKnot := TMFDouble.Create(Self, False, 'uKnot', []);
229 FdUKnot.ChangeAlways := chVisibleNonGeometry;
230 AddField(FFdUKnot);
231
232 FFdUOrder := TSFInt32.Create(Self, False, 'uOrder', 3);
233 FdUOrder.ChangeAlways := chVisibleNonGeometry;
234 AddField(FFdUOrder);
235
236 FFdVDimension := TSFInt32.Create(Self, False, 'vDimension', 0);
237 FdVDimension.ChangeAlways := chVisibleNonGeometry;
238 FdVDimension.MustBeNonnegative := true;
239 AddField(FFdVDimension);
240
241 FFdVKnot := TMFDouble.Create(Self, False, 'vKnot', []);
242 FdVKnot.ChangeAlways := chVisibleNonGeometry;
243 AddField(FFdVKnot);
244
245 FFdVOrder := TSFInt32.Create(Self, False, 'vOrder', 3);
246 FdVOrder.ChangeAlways := chVisibleNonGeometry;
247 AddField(FFdVOrder);
248 end;
249
250 {$endif read_implementation}