Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_windphysicsmodel.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 GetDirection: TVector3;
28 procedure SetDirection(const Value: TVector3);
29 function GetGustiness: Single;
30 procedure SetGustiness(const Value: Single);
31 function GetSpeed: Single;
32 procedure SetSpeed(const Value: Single);
33 function GetTurbulence: Single;
34 procedure SetTurbulence(const Value: Single);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdDirection: TSFVec3f;
41 { Internal wrapper for property @code(Direction). This wrapper API may change, we advise to access simpler @code(Direction) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdDirection: TSFVec3f read FFdDirection;
43 { }
44 property Direction: TVector3 read GetDirection write SetDirection;
45
46 strict private FFdGustiness: TSFFloat;
47 { Internal wrapper for property @code(Gustiness). This wrapper API may change, we advise to access simpler @code(Gustiness) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdGustiness: TSFFloat read FFdGustiness;
49 { }
50 property Gustiness: Single read GetGustiness write SetGustiness;
51
52 strict private FFdSpeed: TSFFloat;
53 { 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). }
54 public property FdSpeed: TSFFloat read FFdSpeed;
55 { }
56 property Speed: Single read GetSpeed write SetSpeed;
57
58 strict private FFdTurbulence: TSFFloat;
59 { Internal wrapper for property @code(Turbulence). This wrapper API may change, we advise to access simpler @code(Turbulence) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdTurbulence: TSFFloat read FFdTurbulence;
61 { }
62 property Turbulence: Single read GetTurbulence write SetTurbulence;
63
64 {$endif read_interface}
65
66 {$ifdef read_implementation}
67
68 { TWindPhysicsModelNode ----------------------------------------------- }
69
70 function TWindPhysicsModelNode.GetDirection: TVector3;
71 begin
72 Result := FdDirection.Value;
73 end;
74
75 procedure TWindPhysicsModelNode.SetDirection(const Value: TVector3);
76 begin
77 FdDirection.Send(Value);
78 end;
79
80 function TWindPhysicsModelNode.GetGustiness: Single;
81 begin
82 Result := FdGustiness.Value;
83 end;
84
85 procedure TWindPhysicsModelNode.SetGustiness(const Value: Single);
86 begin
87 FdGustiness.Send(Value);
88 end;
89
90 function TWindPhysicsModelNode.GetSpeed: Single;
91 begin
92 Result := FdSpeed.Value;
93 end;
94
95 procedure TWindPhysicsModelNode.SetSpeed(const Value: Single);
96 begin
97 FdSpeed.Send(Value);
98 end;
99
100 function TWindPhysicsModelNode.GetTurbulence: Single;
101 begin
102 Result := FdTurbulence.Value;
103 end;
104
105 procedure TWindPhysicsModelNode.SetTurbulence(const Value: Single);
106 begin
107 FdTurbulence.Send(Value);
108 end;
109
110 class function TWindPhysicsModelNode.ClassX3DType: String;
111 begin
112 Result := 'WindPhysicsModel';
113 end;
114
115 procedure TWindPhysicsModelNode.CreateNode;
116 begin
117 inherited;
118
119 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 0, 0));
120 FdDirection.ChangeAlways := chVisibleNonGeometry;
121 AddField(FFdDirection);
122
123 FFdGustiness := TSFFloat.Create(Self, True, 'gustiness', 0.1);
124 FdGustiness.ChangeAlways := chVisibleNonGeometry;
125 FdGustiness.MustBeNonnegative := true;
126 AddField(FFdGustiness);
127
128 FFdSpeed := TSFFloat.Create(Self, True, 'speed', 0.1);
129 FdSpeed.ChangeAlways := chVisibleNonGeometry;
130 FdSpeed.MustBeNonnegative := true;
131 AddField(FFdSpeed);
132
133 FFdTurbulence := TSFFloat.Create(Self, True, 'turbulence', 0);
134 FdTurbulence.ChangeAlways := chVisibleNonGeometry;
135 FdTurbulence.MustBeNonnegative := true;
136 AddField(FFdTurbulence);
137 end;
138
139 {$endif read_implementation}