Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_composedcubemaptexture.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 GetBack: TAbstractTexture2DNode;
28 procedure SetBack(const Value: TAbstractTexture2DNode);
29 function GetBottom: TAbstractTexture2DNode;
30 procedure SetBottom(const Value: TAbstractTexture2DNode);
31 function GetFront: TAbstractTexture2DNode;
32 procedure SetFront(const Value: TAbstractTexture2DNode);
33 function GetLeft: TAbstractTexture2DNode;
34 procedure SetLeft(const Value: TAbstractTexture2DNode);
35 function GetRight: TAbstractTexture2DNode;
36 procedure SetRight(const Value: TAbstractTexture2DNode);
37 function GetTop: TAbstractTexture2DNode;
38 procedure SetTop(const Value: TAbstractTexture2DNode);
39 function GetTextureProperties: TTexturePropertiesNode;
40 procedure SetTextureProperties(const Value: TTexturePropertiesNode);
41 public
42 { Create node fields and events. }
43 procedure CreateNode; override;
44 class function ClassX3DType: String; override;
45
46 strict private FFdBack: TSFNode;
47 { Internal wrapper for property @code(Back). This wrapper API may change, we advise to access simpler @code(Back) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdBack: TSFNode read FFdBack;
49 { }
50 property Back: TAbstractTexture2DNode read GetBack write SetBack;
51
52 strict private FFdBottom: TSFNode;
53 { Internal wrapper for property @code(Bottom). This wrapper API may change, we advise to access simpler @code(Bottom) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdBottom: TSFNode read FFdBottom;
55 { }
56 property Bottom: TAbstractTexture2DNode read GetBottom write SetBottom;
57
58 strict private FFdFront: TSFNode;
59 { Internal wrapper for property @code(Front). This wrapper API may change, we advise to access simpler @code(Front) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdFront: TSFNode read FFdFront;
61 { }
62 property Front: TAbstractTexture2DNode read GetFront write SetFront;
63
64 strict private FFdLeft: TSFNode;
65 { Internal wrapper for property @code(Left). This wrapper API may change, we advise to access simpler @code(Left) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdLeft: TSFNode read FFdLeft;
67 { }
68 property Left: TAbstractTexture2DNode read GetLeft write SetLeft;
69
70 strict private FFdRight: TSFNode;
71 { Internal wrapper for property @code(Right). This wrapper API may change, we advise to access simpler @code(Right) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdRight: TSFNode read FFdRight;
73 { }
74 property Right: TAbstractTexture2DNode read GetRight write SetRight;
75
76 strict private FFdTop: TSFNode;
77 { Internal wrapper for property @code(Top). This wrapper API may change, we advise to access simpler @code(Top) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdTop: TSFNode read FFdTop;
79 { }
80 property Top: TAbstractTexture2DNode read GetTop write SetTop;
81
82 strict private FFdTextureProperties: TSFNode;
83 { Internal wrapper for property @code(TextureProperties). This wrapper API may change, we advise to access simpler @code(TextureProperties) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdTextureProperties: TSFNode read FFdTextureProperties;
85 { }
86 property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;
87
88 {$endif read_interface}
89
90 {$ifdef read_implementation}
91
92 { TComposedCubeMapTextureNode ----------------------------------------------- }
93
94 function TComposedCubeMapTextureNode.GetBack: TAbstractTexture2DNode;
95 begin
96 if FdBack.Value is TAbstractTexture2DNode then
97 Result := TAbstractTexture2DNode(FdBack.Value)
98 else
99 Result := nil;
100 end;
101
102 procedure TComposedCubeMapTextureNode.SetBack(const Value: TAbstractTexture2DNode);
103 begin
104 FdBack.Send(Value);
105 end;
106
107 function TComposedCubeMapTextureNode.GetBottom: TAbstractTexture2DNode;
108 begin
109 if FdBottom.Value is TAbstractTexture2DNode then
110 Result := TAbstractTexture2DNode(FdBottom.Value)
111 else
112 Result := nil;
113 end;
114
115 procedure TComposedCubeMapTextureNode.SetBottom(const Value: TAbstractTexture2DNode);
116 begin
117 FdBottom.Send(Value);
118 end;
119
120 function TComposedCubeMapTextureNode.GetFront: TAbstractTexture2DNode;
121 begin
122 if FdFront.Value is TAbstractTexture2DNode then
123 Result := TAbstractTexture2DNode(FdFront.Value)
124 else
125 Result := nil;
126 end;
127
128 procedure TComposedCubeMapTextureNode.SetFront(const Value: TAbstractTexture2DNode);
129 begin
130 FdFront.Send(Value);
131 end;
132
133 function TComposedCubeMapTextureNode.GetLeft: TAbstractTexture2DNode;
134 begin
135 if FdLeft.Value is TAbstractTexture2DNode then
136 Result := TAbstractTexture2DNode(FdLeft.Value)
137 else
138 Result := nil;
139 end;
140
141 procedure TComposedCubeMapTextureNode.SetLeft(const Value: TAbstractTexture2DNode);
142 begin
143 FdLeft.Send(Value);
144 end;
145
146 function TComposedCubeMapTextureNode.GetRight: TAbstractTexture2DNode;
147 begin
148 if FdRight.Value is TAbstractTexture2DNode then
149 Result := TAbstractTexture2DNode(FdRight.Value)
150 else
151 Result := nil;
152 end;
153
154 procedure TComposedCubeMapTextureNode.SetRight(const Value: TAbstractTexture2DNode);
155 begin
156 FdRight.Send(Value);
157 end;
158
159 function TComposedCubeMapTextureNode.GetTop: TAbstractTexture2DNode;
160 begin
161 if FdTop.Value is TAbstractTexture2DNode then
162 Result := TAbstractTexture2DNode(FdTop.Value)
163 else
164 Result := nil;
165 end;
166
167 procedure TComposedCubeMapTextureNode.SetTop(const Value: TAbstractTexture2DNode);
168 begin
169 FdTop.Send(Value);
170 end;
171
172 function TComposedCubeMapTextureNode.GetTextureProperties: TTexturePropertiesNode;
173 begin
174 if FdTextureProperties.Value is TTexturePropertiesNode then
175 Result := TTexturePropertiesNode(FdTextureProperties.Value)
176 else
177 Result := nil;
178 end;
179
180 procedure TComposedCubeMapTextureNode.SetTextureProperties(const Value: TTexturePropertiesNode);
181 begin
182 FdTextureProperties.Send(Value);
183 end;
184
185 class function TComposedCubeMapTextureNode.ClassX3DType: String;
186 begin
187 Result := 'ComposedCubeMapTexture';
188 end;
189
190 procedure TComposedCubeMapTextureNode.CreateNode;
191 begin
192 inherited;
193
194 FFdBack := TSFNode.Create(Self, True, 'back', [TAbstractTexture2DNode]);
195 FdBack.ChangeAlways := chTextureRendererProperties;
196 AddField(FFdBack);
197
198 FFdBottom := TSFNode.Create(Self, True, 'bottom', [TAbstractTexture2DNode]);
199 FdBottom.ChangeAlways := chTextureRendererProperties;
200 AddField(FFdBottom);
201
202 FFdFront := TSFNode.Create(Self, True, 'front', [TAbstractTexture2DNode]);
203 FdFront.ChangeAlways := chTextureRendererProperties;
204 AddField(FFdFront);
205
206 FFdLeft := TSFNode.Create(Self, True, 'left', [TAbstractTexture2DNode]);
207 FdLeft.ChangeAlways := chTextureRendererProperties;
208 AddField(FFdLeft);
209
210 FFdRight := TSFNode.Create(Self, True, 'right', [TAbstractTexture2DNode]);
211 FdRight.ChangeAlways := chTextureRendererProperties;
212 AddField(FFdRight);
213
214 FFdTop := TSFNode.Create(Self, True, 'top', [TAbstractTexture2DNode]);
215 FdTop.ChangeAlways := chTextureRendererProperties;
216 AddField(FFdTop);
217
218 FFdTextureProperties := TSFNode.Create(Self, False, 'textureProperties', [TTexturePropertiesNode]);
219 FdTextureProperties.ChangeAlways := chTextureRendererProperties;
220 AddField(FFdTextureProperties);
221 end;
222
223 {$endif read_implementation}