Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dsequencernode.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 GetForceContinuousValue_changed: Boolean;
28 procedure SetForceContinuousValue_changed(const Value: Boolean);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FEventNext: TSFBoolEvent;
35 { }
36 public property EventNext: TSFBoolEvent read FEventNext;
37
38 strict private FEventPrevious: TSFBoolEvent;
39 { }
40 public property EventPrevious: TSFBoolEvent read FEventPrevious;
41
42 strict private FEventSet_fraction: TSFFloatEvent;
43 { }
44 public property EventSet_fraction: TSFFloatEvent read FEventSet_fraction;
45
46 strict private FFdKey: TMFFloat;
47 { Internal wrapper for property @code(Key). This wrapper API may change, we advise to access simpler @code(Key) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdKey: TMFFloat read FFdKey;
49 { }
50 procedure SetKey(const Value: array of Single); overload;
51 { }
52 procedure SetKey(const Value: TSingleList); overload;
53
54 strict private FFdForceContinuousValue_changed: TSFBool;
55 { Internal wrapper for property @code(ForceContinuousValue_changed). This wrapper API may change, we advise to access simpler @code(ForceContinuousValue_changed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdForceContinuousValue_changed: TSFBool read FFdForceContinuousValue_changed;
57 { Send value_changed event on any input, even you receive set_fraction that does not change previous key range. This means that sequencer node generates output event (value_changed) more often, even if internal node knowledge says that "no change occurred". See https://castle-engine.io/x3d_implementation_eventutilities_extensions.php }
58 property ForceContinuousValue_changed: Boolean read GetForceContinuousValue_changed write SetForceContinuousValue_changed;
59
60 {$endif read_interface}
61
62 {$ifdef read_implementation}
63
64 { TAbstractSequencerNode ----------------------------------------------- }
65
66 procedure TAbstractSequencerNode.SetKey(const Value: array of Single);
67 begin
68 FdKey.Send(Value);
69 end;
70
71 procedure TAbstractSequencerNode.SetKey(const Value: TSingleList);
72 begin
73 FdKey.Send(Value);
74 end;
75
76 function TAbstractSequencerNode.GetForceContinuousValue_changed: Boolean;
77 begin
78 Result := FdForceContinuousValue_changed.Value;
79 end;
80
81 procedure TAbstractSequencerNode.SetForceContinuousValue_changed(const Value: Boolean);
82 begin
83 FdForceContinuousValue_changed.Send(Value);
84 end;
85
86 class function TAbstractSequencerNode.ClassX3DType: String;
87 begin
88 Result := 'X3DSequencerNode';
89 end;
90
91 procedure TAbstractSequencerNode.CreateNode;
92 begin
93 inherited;
94
95 FEventNext := TSFBoolEvent.Create(Self, 'next', true);
96 AddEvent(FEventNext);
97
98 FEventPrevious := TSFBoolEvent.Create(Self, 'previous', true);
99 AddEvent(FEventPrevious);
100
101 FEventSet_fraction := TSFFloatEvent.Create(Self, 'set_fraction', true);
102 AddEvent(FEventSet_fraction);
103
104 FFdKey := TMFFloat.Create(Self, True, 'key', []);
105 FdKey.ChangeAlways := chVisibleNonGeometry;
106 AddField(FFdKey);
107
108 FFdForceContinuousValue_changed := TSFBool.Create(Self, True, 'forceContinuousValue_changed', false);
109 FdForceContinuousValue_changed.ChangeAlways := chVisibleNonGeometry;
110 AddField(FFdForceContinuousValue_changed);
111 end;
112
113 {$endif read_implementation}