Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_scalarchaser.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 GetInitialDestination: Single;
28 procedure SetInitialDestination(const Value: Single);
29 function GetInitialValue: Single;
30 procedure SetInitialValue(const Value: Single);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FEventSet_destination: TSFFloatEvent;
37 { }
38 public property EventSet_destination: TSFFloatEvent read FEventSet_destination;
39
40 strict private FEventSet_value: TSFFloatEvent;
41 { }
42 public property EventSet_value: TSFFloatEvent read FEventSet_value;
43
44 strict private FEventValue_changed: TSFFloatEvent;
45 { }
46 public property EventValue_changed: TSFFloatEvent read FEventValue_changed;
47
48 strict private FFdInitialDestination: TSFFloat;
49 { Internal wrapper for property @code(InitialDestination). This wrapper API may change, we advise to access simpler @code(InitialDestination) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdInitialDestination: TSFFloat read FFdInitialDestination;
51 { }
52 property InitialDestination: Single read GetInitialDestination write SetInitialDestination;
53
54 strict private FFdInitialValue: TSFFloat;
55 { Internal wrapper for property @code(InitialValue). This wrapper API may change, we advise to access simpler @code(InitialValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdInitialValue: TSFFloat read FFdInitialValue;
57 { }
58 property InitialValue: Single read GetInitialValue write SetInitialValue;
59
60 {$endif read_interface}
61
62 {$ifdef read_implementation}
63
64 { TScalarChaserNode ----------------------------------------------- }
65
66 function TScalarChaserNode.GetInitialDestination: Single;
67 begin
68 Result := FdInitialDestination.Value;
69 end;
70
71 procedure TScalarChaserNode.SetInitialDestination(const Value: Single);
72 begin
73 FdInitialDestination.Send(Value);
74 end;
75
76 function TScalarChaserNode.GetInitialValue: Single;
77 begin
78 Result := FdInitialValue.Value;
79 end;
80
81 procedure TScalarChaserNode.SetInitialValue(const Value: Single);
82 begin
83 FdInitialValue.Send(Value);
84 end;
85
86 class function TScalarChaserNode.ClassX3DType: String;
87 begin
88 Result := 'ScalarChaser';
89 end;
90
91 procedure TScalarChaserNode.CreateNode;
92 begin
93 inherited;
94
95 FEventSet_destination := TSFFloatEvent.Create(Self, 'set_destination', true);
96 AddEvent(FEventSet_destination);
97
98 FEventSet_value := TSFFloatEvent.Create(Self, 'set_value', true);
99 AddEvent(FEventSet_value);
100
101 FEventValue_changed := TSFFloatEvent.Create(Self, 'value_changed', false);
102 AddEvent(FEventValue_changed);
103
104 FFdInitialDestination := TSFFloat.Create(Self, False, 'initialDestination', 0);
105 FdInitialDestination.ChangeAlways := chVisibleNonGeometry;
106 AddField(FFdInitialDestination);
107
108 FFdInitialValue := TSFFloat.Create(Self, False, 'initialValue', 0);
109 FdInitialValue.ChangeAlways := chVisibleNonGeometry;
110 AddField(FFdInitialValue);
111 end;
112
113 {$endif read_implementation}