Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_coneemitter.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 GetAngle: Single;
28 procedure SetAngle(const Value: Single);
29 function GetDirection: TVector3;
30 procedure SetDirection(const Value: TVector3);
31 function GetPosition: TVector3;
32 procedure SetPosition(const Value: TVector3);
33 public
34 { Create node fields and events. }
35 procedure CreateNode; override;
36 class function ClassX3DType: String; override;
37
38 strict private FFdAngle: TSFFloat;
39 { Internal wrapper for property @code(Angle). This wrapper API may change, we advise to access simpler @code(Angle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
40 public property FdAngle: TSFFloat read FFdAngle;
41 { }
42 property Angle: Single read GetAngle write SetAngle;
43
44 strict private FFdDirection: TSFVec3f;
45 { 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). }
46 public property FdDirection: TSFVec3f read FFdDirection;
47 { }
48 property Direction: TVector3 read GetDirection write SetDirection;
49
50 strict private FFdPosition: TSFVec3f;
51 { Internal wrapper for property @code(Position). This wrapper API may change, we advise to access simpler @code(Position) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdPosition: TSFVec3f read FFdPosition;
53 { }
54 property Position: TVector3 read GetPosition write SetPosition;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TConeEmitterNode ----------------------------------------------- }
61
62 function TConeEmitterNode.GetAngle: Single;
63 begin
64 Result := FdAngle.Value;
65 end;
66
67 procedure TConeEmitterNode.SetAngle(const Value: Single);
68 begin
69 FdAngle.Send(Value);
70 end;
71
72 function TConeEmitterNode.GetDirection: TVector3;
73 begin
74 Result := FdDirection.Value;
75 end;
76
77 procedure TConeEmitterNode.SetDirection(const Value: TVector3);
78 begin
79 FdDirection.Send(Value);
80 end;
81
82 function TConeEmitterNode.GetPosition: TVector3;
83 begin
84 Result := FdPosition.Value;
85 end;
86
87 procedure TConeEmitterNode.SetPosition(const Value: TVector3);
88 begin
89 FdPosition.Send(Value);
90 end;
91
92 class function TConeEmitterNode.ClassX3DType: String;
93 begin
94 Result := 'ConeEmitter';
95 end;
96
97 procedure TConeEmitterNode.CreateNode;
98 begin
99 inherited;
100
101 FFdAngle := TSFFloat.Create(Self, True, 'angle', Pi/4);
102 FdAngle.ChangeAlways := chVisibleNonGeometry;
103 AddField(FFdAngle);
104
105 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 1, 0));
106 FdDirection.ChangeAlways := chVisibleNonGeometry;
107 AddField(FFdDirection);
108
109 FFdPosition := TSFVec3f.Create(Self, True, 'position', Vector3(0, 0, 0));
110 FdPosition.ChangeAlways := chVisibleNonGeometry;
111 AddField(FFdPosition);
112 end;
113
114 {$endif read_implementation}