Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_movietexture.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 GetLoop: Boolean;
28 procedure SetLoop(const Value: Boolean);
29 function GetPauseTime: TFloatTime;
30 procedure SetPauseTime(const Value: TFloatTime);
31 function GetResumeTime: TFloatTime;
32 procedure SetResumeTime(const Value: TFloatTime);
33 function GetSpeed: Single;
34 procedure SetSpeed(const Value: Single);
35 function GetStartTime: TFloatTime;
36 procedure SetStartTime(const Value: TFloatTime);
37 function GetStopTime: TFloatTime;
38 procedure SetStopTime(const Value: TFloatTime);
39 function GetFlipVertically: Boolean;
40 procedure SetFlipVertically(const Value: Boolean);
41 public
42 { Create node fields and events. }
43 procedure CreateNode; override;
44 class function ClassX3DType: String; override;
45
46 strict private FFdLoop: TSFBool;
47 { Internal wrapper for property @code(Loop). This wrapper API may change, we advise to access simpler @code(Loop) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdLoop: TSFBool read FFdLoop;
49 { }
50 property Loop: Boolean read GetLoop write SetLoop;
51
52 strict private FFdPauseTime: TSFTime;
53 { Internal wrapper for property @code(PauseTime). This wrapper API may change, we advise to access simpler @code(PauseTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdPauseTime: TSFTime read FFdPauseTime;
55 { }
56 property PauseTime: TFloatTime read GetPauseTime write SetPauseTime;
57
58 strict private FFdResumeTime: TSFTime;
59 { Internal wrapper for property @code(ResumeTime). This wrapper API may change, we advise to access simpler @code(ResumeTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdResumeTime: TSFTime read FFdResumeTime;
61 { }
62 property ResumeTime: TFloatTime read GetResumeTime write SetResumeTime;
63
64 strict private FFdSpeed: TSFFloat;
65 { Internal wrapper for property @code(Speed). This wrapper API may change, we advise to access simpler @code(Speed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdSpeed: TSFFloat read FFdSpeed;
67 { }
68 property Speed: Single read GetSpeed write SetSpeed;
69
70 strict private FFdStartTime: TSFTime;
71 { Internal wrapper for property @code(StartTime). This wrapper API may change, we advise to access simpler @code(StartTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdStartTime: TSFTime read FFdStartTime;
73 { }
74 property StartTime: TFloatTime read GetStartTime write SetStartTime;
75
76 strict private FFdStopTime: TSFTime;
77 { Internal wrapper for property @code(StopTime). This wrapper API may change, we advise to access simpler @code(StopTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdStopTime: TSFTime read FFdStopTime;
79 { }
80 property StopTime: TFloatTime read GetStopTime write SetStopTime;
81
82 strict private FFdUrl: TMFString;
83 { Internal wrapper for property @code(Url). This wrapper API may change, we advise to access simpler @code(Url) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdUrl: TMFString read FFdUrl;
85 { }
86 procedure SetUrl(const Value: array of string); overload;
87 { }
88 procedure SetUrl(const Value: TCastleStringList); overload;
89
90 strict private FFdFlipVertically: TSFBool;
91 { Internal wrapper for property @code(FlipVertically). This wrapper API may change, we advise to access simpler @code(FlipVertically) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdFlipVertically: TSFBool read FFdFlipVertically;
93 { }
94 property FlipVertically: Boolean read GetFlipVertically write SetFlipVertically;
95
96 strict private FEventDuration_changed: TSFTimeEvent;
97 { }
98 public property EventDuration_changed: TSFTimeEvent read FEventDuration_changed;
99
100 strict private FEventElapsedTime: TSFTimeEvent;
101 { }
102 public property EventElapsedTime: TSFTimeEvent read FEventElapsedTime;
103
104 strict private FEventIsActive: TSFBoolEvent;
105 { }
106 public property EventIsActive: TSFBoolEvent read FEventIsActive;
107
108 strict private FEventIsPaused: TSFBoolEvent;
109 { }
110 public property EventIsPaused: TSFBoolEvent read FEventIsPaused;
111
112 {$endif read_interface}
113
114 {$ifdef read_implementation}
115
116 { TMovieTextureNode ----------------------------------------------- }
117
118 function TMovieTextureNode.GetLoop: Boolean;
119 begin
120 Result := FdLoop.Value;
121 end;
122
123 procedure TMovieTextureNode.SetLoop(const Value: Boolean);
124 begin
125 FdLoop.Send(Value);
126 end;
127
128 function TMovieTextureNode.GetPauseTime: TFloatTime;
129 begin
130 Result := FdPauseTime.Value;
131 end;
132
133 procedure TMovieTextureNode.SetPauseTime(const Value: TFloatTime);
134 begin
135 FdPauseTime.Send(Value);
136 end;
137
138 function TMovieTextureNode.GetResumeTime: TFloatTime;
139 begin
140 Result := FdResumeTime.Value;
141 end;
142
143 procedure TMovieTextureNode.SetResumeTime(const Value: TFloatTime);
144 begin
145 FdResumeTime.Send(Value);
146 end;
147
148 function TMovieTextureNode.GetSpeed: Single;
149 begin
150 Result := FdSpeed.Value;
151 end;
152
153 procedure TMovieTextureNode.SetSpeed(const Value: Single);
154 begin
155 FdSpeed.Send(Value);
156 end;
157
158 function TMovieTextureNode.GetStartTime: TFloatTime;
159 begin
160 Result := FdStartTime.Value;
161 end;
162
163 procedure TMovieTextureNode.SetStartTime(const Value: TFloatTime);
164 begin
165 FdStartTime.Send(Value);
166 end;
167
168 function TMovieTextureNode.GetStopTime: TFloatTime;
169 begin
170 Result := FdStopTime.Value;
171 end;
172
173 procedure TMovieTextureNode.SetStopTime(const Value: TFloatTime);
174 begin
175 FdStopTime.Send(Value);
176 end;
177
178 procedure TMovieTextureNode.SetUrl(const Value: array of string);
179 begin
180 FdUrl.Send(Value);
181 end;
182
183 procedure TMovieTextureNode.SetUrl(const Value: TCastleStringList);
184 begin
185 FdUrl.Send(Value);
186 end;
187
188 function TMovieTextureNode.GetFlipVertically: Boolean;
189 begin
190 Result := FdFlipVertically.Value;
191 end;
192
193 procedure TMovieTextureNode.SetFlipVertically(const Value: Boolean);
194 begin
195 FdFlipVertically.Send(Value);
196 end;
197
198 class function TMovieTextureNode.ClassX3DType: String;
199 begin
200 Result := 'MovieTexture';
201 end;
202
203 procedure TMovieTextureNode.CreateNode;
204 begin
205 inherited;
206
207 FFdLoop := TSFBool.Create(Self, True, 'loop', false);
208 FdLoop.ChangeAlways := chVisibleNonGeometry;
209 AddField(FFdLoop);
210
211 FFdPauseTime := TSFTime.Create(Self, True, 'pauseTime', 0);
212 FdPauseTime.ChangeAlways := chTimeStopStart;
213 AddField(FFdPauseTime);
214
215 FFdResumeTime := TSFTime.Create(Self, True, 'resumeTime', 0);
216 FdResumeTime.ChangeAlways := chTimeStopStart;
217 AddField(FFdResumeTime);
218
219 FFdSpeed := TSFFloat.Create(Self, True, 'speed', 1.0);
220 FdSpeed.ChangeAlways := chVisibleNonGeometry;
221 AddField(FFdSpeed);
222
223 FFdStartTime := TSFTime.Create(Self, True, 'startTime', 0);
224 FdStartTime.ChangeAlways := chTimeStopStart;
225 AddField(FFdStartTime);
226
227 FFdStopTime := TSFTime.Create(Self, True, 'stopTime', 0);
228 FdStopTime.ChangeAlways := chTimeStopStart;
229 AddField(FFdStopTime);
230
231 FFdUrl := TMFString.Create(Self, True, 'url', []);
232 FdUrl.ChangeAlways := chTextureImage;
233 AddField(FFdUrl);
234
235 FFdFlipVertically := TSFBool.Create(Self, False, 'flipVertically', false);
236 FdFlipVertically.ChangeAlways := chTextureImage;
237 AddField(FFdFlipVertically);
238
239 FEventDuration_changed := TSFTimeEvent.Create(Self, 'duration_changed', false);
240 AddEvent(FEventDuration_changed);
241
242 FEventElapsedTime := TSFTimeEvent.Create(Self, 'elapsedTime', false);
243 AddEvent(FEventElapsedTime);
244
245 FEventIsActive := TSFBoolEvent.Create(Self, 'isActive', false);
246 AddEvent(FEventIsActive);
247
248 FEventIsPaused := TSFBoolEvent.Create(Self, 'isPaused', false);
249 AddEvent(FEventIsPaused);
250 end;
251
252 {$endif read_implementation}