Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dparticleemitternode.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 GetSpeed: Single;
28 procedure SetSpeed(const Value: Single);
29 function GetVariation: Single;
30 procedure SetVariation(const Value: Single);
31 function GetMass: Single;
32 procedure SetMass(const Value: Single);
33 function GetSurfaceArea: Single;
34 procedure SetSurfaceArea(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 FFdSpeed: TSFFloat;
41 { 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). }
42 public property FdSpeed: TSFFloat read FFdSpeed;
43 { }
44 property Speed: Single read GetSpeed write SetSpeed;
45
46 strict private FFdVariation: TSFFloat;
47 { Internal wrapper for property @code(Variation). This wrapper API may change, we advise to access simpler @code(Variation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdVariation: TSFFloat read FFdVariation;
49 { }
50 property Variation: Single read GetVariation write SetVariation;
51
52 strict private FFdMass: TSFFloat;
53 { Internal wrapper for property @code(Mass). This wrapper API may change, we advise to access simpler @code(Mass) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdMass: TSFFloat read FFdMass;
55 { }
56 property Mass: Single read GetMass write SetMass;
57
58 strict private FFdSurfaceArea: TSFFloat;
59 { Internal wrapper for property @code(SurfaceArea). This wrapper API may change, we advise to access simpler @code(SurfaceArea) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdSurfaceArea: TSFFloat read FFdSurfaceArea;
61 { }
62 property SurfaceArea: Single read GetSurfaceArea write SetSurfaceArea;
63
64 {$endif read_interface}
65
66 {$ifdef read_implementation}
67
68 { TAbstractParticleEmitterNode ----------------------------------------------- }
69
70 function TAbstractParticleEmitterNode.GetSpeed: Single;
71 begin
72 Result := FdSpeed.Value;
73 end;
74
75 procedure TAbstractParticleEmitterNode.SetSpeed(const Value: Single);
76 begin
77 FdSpeed.Send(Value);
78 end;
79
80 function TAbstractParticleEmitterNode.GetVariation: Single;
81 begin
82 Result := FdVariation.Value;
83 end;
84
85 procedure TAbstractParticleEmitterNode.SetVariation(const Value: Single);
86 begin
87 FdVariation.Send(Value);
88 end;
89
90 function TAbstractParticleEmitterNode.GetMass: Single;
91 begin
92 Result := FdMass.Value;
93 end;
94
95 procedure TAbstractParticleEmitterNode.SetMass(const Value: Single);
96 begin
97 FdMass.Send(Value);
98 end;
99
100 function TAbstractParticleEmitterNode.GetSurfaceArea: Single;
101 begin
102 Result := FdSurfaceArea.Value;
103 end;
104
105 procedure TAbstractParticleEmitterNode.SetSurfaceArea(const Value: Single);
106 begin
107 FdSurfaceArea.Send(Value);
108 end;
109
110 class function TAbstractParticleEmitterNode.ClassX3DType: String;
111 begin
112 Result := 'X3DParticleEmitterNode';
113 end;
114
115 procedure TAbstractParticleEmitterNode.CreateNode;
116 begin
117 inherited;
118
119 FFdSpeed := TSFFloat.Create(Self, True, 'speed', 0);
120 FdSpeed.ChangeAlways := chVisibleNonGeometry;
121 FdSpeed.MustBeNonnegative := true;
122 AddField(FFdSpeed);
123
124 FFdVariation := TSFFloat.Create(Self, True, 'variation', 0.25);
125 FdVariation.ChangeAlways := chVisibleNonGeometry;
126 FdVariation.MustBeNonnegative := true;
127 AddField(FFdVariation);
128
129 FFdMass := TSFFloat.Create(Self, False, 'mass', 0);
130 FdMass.ChangeAlways := chVisibleNonGeometry;
131 FdMass.MustBeNonnegative := true;
132 AddField(FFdMass);
133
134 FFdSurfaceArea := TSFFloat.Create(Self, False, 'surfaceArea', 0);
135 FdSurfaceArea.ChangeAlways := chVisibleNonGeometry;
136 FdSurfaceArea.MustBeNonnegative := true;
137 AddField(FFdSurfaceArea);
138
139 DefaultContainerField := 'emitter';
140 end;
141
142 {$endif read_implementation}