Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3ddampernode.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 GetTau: TFloatTime;
28 procedure SetTau(const Value: TFloatTime);
29 function GetTolerance: Single;
30 procedure SetTolerance(const Value: Single);
31 function GetOrder: Integer;
32 procedure SetOrder(const Value: Integer);
33 public
34 { Create node fields and events. }
35 procedure CreateNode; override;
36 class function ClassX3DType: String; override;
37
38 strict private FFdTau: TSFTime;
39 { Internal wrapper for property @code(Tau). This wrapper API may change, we advise to access simpler @code(Tau) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
40 public property FdTau: TSFTime read FFdTau;
41 { }
42 property Tau: TFloatTime read GetTau write SetTau;
43
44 strict private FFdTolerance: TSFFloat;
45 { Internal wrapper for property @code(Tolerance). This wrapper API may change, we advise to access simpler @code(Tolerance) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
46 public property FdTolerance: TSFFloat read FFdTolerance;
47 { }
48 property Tolerance: Single read GetTolerance write SetTolerance;
49
50 strict private FFdOrder: TSFInt32;
51 { Internal wrapper for property @code(Order). This wrapper API may change, we advise to access simpler @code(Order) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdOrder: TSFInt32 read FFdOrder;
53 { }
54 property Order: Integer read GetOrder write SetOrder;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TAbstractDamperNode ----------------------------------------------- }
61
62 function TAbstractDamperNode.GetTau: TFloatTime;
63 begin
64 Result := FdTau.Value;
65 end;
66
67 procedure TAbstractDamperNode.SetTau(const Value: TFloatTime);
68 begin
69 FdTau.Send(Value);
70 end;
71
72 function TAbstractDamperNode.GetTolerance: Single;
73 begin
74 Result := FdTolerance.Value;
75 end;
76
77 procedure TAbstractDamperNode.SetTolerance(const Value: Single);
78 begin
79 FdTolerance.Send(Value);
80 end;
81
82 function TAbstractDamperNode.GetOrder: Integer;
83 begin
84 Result := FdOrder.Value;
85 end;
86
87 procedure TAbstractDamperNode.SetOrder(const Value: Integer);
88 begin
89 FdOrder.Send(Value);
90 end;
91
92 class function TAbstractDamperNode.ClassX3DType: String;
93 begin
94 Result := 'X3DDamperNode';
95 end;
96
97 procedure TAbstractDamperNode.CreateNode;
98 begin
99 inherited;
100
101 FFdTau := TSFTime.Create(Self, True, 'tau', 0);
102 FdTau.ChangeAlways := chVisibleNonGeometry;
103 AddField(FFdTau);
104
105 FFdTolerance := TSFFloat.Create(Self, True, 'tolerance', -1);
106 FdTolerance.ChangeAlways := chVisibleNonGeometry;
107 AddField(FFdTolerance);
108
109 FFdOrder := TSFInt32.Create(Self, False, 'order', 0);
110 FdOrder.ChangeAlways := chVisibleNonGeometry;
111 AddField(FFdOrder);
112 end;
113
114 {$endif read_implementation}