Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_indexedfaceset.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 GetConvex: Boolean;
28 procedure SetConvex(const Value: Boolean);
29 function GetCreaseAngle: Single;
30 procedure SetCreaseAngle(const Value: Single);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 {$ifndef CASTLE_SLIM_NODES}
37 strict private FEventSet_colorIndex: TMFInt32Event;
38 { }
39 public property EventSet_colorIndex: TMFInt32Event read FEventSet_colorIndex;
40 {$endif not CASTLE_SLIM_NODES}
41
42 {$ifndef CASTLE_SLIM_NODES}
43 strict private FEventSet_coordIndex: TMFInt32Event;
44 { }
45 public property EventSet_coordIndex: TMFInt32Event read FEventSet_coordIndex;
46 {$endif not CASTLE_SLIM_NODES}
47
48 {$ifndef CASTLE_SLIM_NODES}
49 strict private FEventSet_normalIndex: TMFInt32Event;
50 { }
51 public property EventSet_normalIndex: TMFInt32Event read FEventSet_normalIndex;
52 {$endif not CASTLE_SLIM_NODES}
53
54 {$ifndef CASTLE_SLIM_NODES}
55 strict private FEventSet_texCoordIndex: TMFInt32Event;
56 { }
57 public property EventSet_texCoordIndex: TMFInt32Event read FEventSet_texCoordIndex;
58 {$endif not CASTLE_SLIM_NODES}
59
60 strict private FFdColorIndex: TMFInt32;
61 { Internal wrapper for property @code(ColorIndex). This wrapper API may change, we advise to access simpler @code(ColorIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdColorIndex: TMFInt32 read FFdColorIndex;
63 { }
64 procedure SetColorIndex(const Value: array of Int32); overload;
65 { }
66 procedure SetColorIndex(const Value: TInt32List); overload;
67
68 strict private FFdConvex: TSFBool;
69 { Internal wrapper for property @code(Convex). This wrapper API may change, we advise to access simpler @code(Convex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
70 public property FdConvex: TSFBool read FFdConvex;
71 { }
72 property Convex: Boolean read GetConvex write SetConvex;
73
74 strict private FFdCoordIndex: TMFInt32;
75 { Internal wrapper for property @code(CoordIndex). This wrapper API may change, we advise to access simpler @code(CoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
76 public property FdCoordIndex: TMFInt32 read FFdCoordIndex;
77 { }
78 procedure SetCoordIndex(const Value: array of Int32); overload;
79 { }
80 procedure SetCoordIndex(const Value: TInt32List); overload;
81
82 strict private FFdCreaseAngle: TSFFloat;
83 { Internal wrapper for property @code(CreaseAngle). This wrapper API may change, we advise to access simpler @code(CreaseAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdCreaseAngle: TSFFloat read FFdCreaseAngle;
85 { }
86 property CreaseAngle: Single read GetCreaseAngle write SetCreaseAngle;
87
88 strict private FFdNormalIndex: TMFInt32;
89 { Internal wrapper for property @code(NormalIndex). This wrapper API may change, we advise to access simpler @code(NormalIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
90 public property FdNormalIndex: TMFInt32 read FFdNormalIndex;
91 { }
92 procedure SetNormalIndex(const Value: array of Int32); overload;
93 { }
94 procedure SetNormalIndex(const Value: TInt32List); overload;
95
96 strict private FFdTexCoordIndex: TMFInt32;
97 { Internal wrapper for property @code(TexCoordIndex). This wrapper API may change, we advise to access simpler @code(TexCoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
98 public property FdTexCoordIndex: TMFInt32 read FFdTexCoordIndex;
99 { }
100 procedure SetTexCoordIndex(const Value: array of Int32); overload;
101 { }
102 procedure SetTexCoordIndex(const Value: TInt32List); overload;
103
104 {$endif read_interface}
105
106 {$ifdef read_implementation}
107
108 { TIndexedFaceSetNode ----------------------------------------------- }
109
110 procedure TIndexedFaceSetNode.SetColorIndex(const Value: array of Int32);
111 begin
112 FdColorIndex.Send(Value);
113 end;
114
115 procedure TIndexedFaceSetNode.SetColorIndex(const Value: TInt32List);
116 begin
117 FdColorIndex.Send(Value);
118 end;
119
120 function TIndexedFaceSetNode.GetConvex: Boolean;
121 begin
122 Result := FdConvex.Value;
123 end;
124
125 procedure TIndexedFaceSetNode.SetConvex(const Value: Boolean);
126 begin
127 FdConvex.Send(Value);
128 end;
129
130 procedure TIndexedFaceSetNode.SetCoordIndex(const Value: array of Int32);
131 begin
132 FdCoordIndex.Send(Value);
133 end;
134
135 procedure TIndexedFaceSetNode.SetCoordIndex(const Value: TInt32List);
136 begin
137 FdCoordIndex.Send(Value);
138 end;
139
140 function TIndexedFaceSetNode.GetCreaseAngle: Single;
141 begin
142 Result := FdCreaseAngle.Value;
143 end;
144
145 procedure TIndexedFaceSetNode.SetCreaseAngle(const Value: Single);
146 begin
147 FdCreaseAngle.Send(Value);
148 end;
149
150 procedure TIndexedFaceSetNode.SetNormalIndex(const Value: array of Int32);
151 begin
152 FdNormalIndex.Send(Value);
153 end;
154
155 procedure TIndexedFaceSetNode.SetNormalIndex(const Value: TInt32List);
156 begin
157 FdNormalIndex.Send(Value);
158 end;
159
160 procedure TIndexedFaceSetNode.SetTexCoordIndex(const Value: array of Int32);
161 begin
162 FdTexCoordIndex.Send(Value);
163 end;
164
165 procedure TIndexedFaceSetNode.SetTexCoordIndex(const Value: TInt32List);
166 begin
167 FdTexCoordIndex.Send(Value);
168 end;
169
170 class function TIndexedFaceSetNode.ClassX3DType: String;
171 begin
172 Result := 'IndexedFaceSet';
173 end;
174
175 procedure TIndexedFaceSetNode.CreateNode;
176 begin
177 inherited;
178
179 {$ifndef CASTLE_SLIM_NODES}
180 FEventSet_colorIndex := TMFInt32Event.Create(Self, 'set_colorIndex', true);
181 AddEvent(FEventSet_colorIndex);
182 {$endif not CASTLE_SLIM_NODES}
183
184 {$ifndef CASTLE_SLIM_NODES}
185 FEventSet_coordIndex := TMFInt32Event.Create(Self, 'set_coordIndex', true);
186 AddEvent(FEventSet_coordIndex);
187 {$endif not CASTLE_SLIM_NODES}
188
189 {$ifndef CASTLE_SLIM_NODES}
190 FEventSet_normalIndex := TMFInt32Event.Create(Self, 'set_normalIndex', true);
191 AddEvent(FEventSet_normalIndex);
192 {$endif not CASTLE_SLIM_NODES}
193
194 {$ifndef CASTLE_SLIM_NODES}
195 FEventSet_texCoordIndex := TMFInt32Event.Create(Self, 'set_texCoordIndex', true);
196 AddEvent(FEventSet_texCoordIndex);
197 {$endif not CASTLE_SLIM_NODES}
198
199 FFdColorIndex := TMFInt32.Create(Self, False, 'colorIndex', []);
200 FdColorIndex.ChangeAlways := chGeometry;
201 AddField(FFdColorIndex);
202
203 FFdConvex := TSFBool.Create(Self, False, 'convex', true);
204 FdConvex.ChangeAlways := chGeometry;
205 AddField(FFdConvex);
206
207 FFdCoordIndex := TMFInt32.Create(Self, False, 'coordIndex', []);
208 FdCoordIndex.ChangeAlways := chGeometry;
209 AddField(FFdCoordIndex);
210
211 FFdCreaseAngle := TSFFloat.Create(Self, False, 'creaseAngle', 0);
212 FdCreaseAngle.ChangeAlways := chGeometry;
213 FdCreaseAngle.Angle := true;
214 FdCreaseAngle.MustBeNonnegative := true;
215 AddField(FFdCreaseAngle);
216
217 FFdNormalIndex := TMFInt32.Create(Self, False, 'normalIndex', []);
218 FdNormalIndex.ChangeAlways := chGeometry;
219 AddField(FFdNormalIndex);
220
221 FFdTexCoordIndex := TMFInt32.Create(Self, False, 'texCoordIndex', []);
222 FdTexCoordIndex.ChangeAlways := chGeometry;
223 AddField(FFdTexCoordIndex);
224 end;
225
226 {$endif read_implementation}