Debian Codegraph @

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