Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3d3dbackgroundnode.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 GetTransparency: Single;
28 procedure SetTransparency(const Value: Single);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FFdGroundAngle: TMFFloat;
35 { Internal wrapper for property @code(GroundAngle). This wrapper API may change, we advise to access simpler @code(GroundAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
36 public property FdGroundAngle: TMFFloat read FFdGroundAngle;
37 { }
38 procedure SetGroundAngle(const Value: array of Single); overload;
39 { }
40 procedure SetGroundAngle(const Value: TSingleList); overload;
41
42 strict private FFdGroundColor: TMFColor;
43 { Internal wrapper for property @code(GroundColor). This wrapper API may change, we advise to access simpler @code(GroundColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdGroundColor: TMFColor read FFdGroundColor;
45 { }
46 procedure SetGroundColor(const Value: array of TCastleColorRGB); overload;
47 { }
48 procedure SetGroundColor(const Value: TVector3List); overload;
49
50 strict private FFdSkyAngle: TMFFloat;
51 { Internal wrapper for property @code(SkyAngle). This wrapper API may change, we advise to access simpler @code(SkyAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdSkyAngle: TMFFloat read FFdSkyAngle;
53 { }
54 procedure SetSkyAngle(const Value: array of Single); overload;
55 { }
56 procedure SetSkyAngle(const Value: TSingleList); overload;
57
58 strict private FFdSkyColor: TMFColor;
59 { Internal wrapper for property @code(SkyColor). This wrapper API may change, we advise to access simpler @code(SkyColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdSkyColor: TMFColor read FFdSkyColor;
61 { }
62 procedure SetSkyColor(const Value: array of TCastleColorRGB); overload;
63 { }
64 procedure SetSkyColor(const Value: TVector3List); overload;
65
66 strict private FFdTransparency: TSFFloat;
67 { Internal wrapper for property @code(Transparency). This wrapper API may change, we advise to access simpler @code(Transparency) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdTransparency: TSFFloat read FFdTransparency;
69 { }
70 property Transparency: Single read GetTransparency write SetTransparency;
71
72 {$endif read_interface}
73
74 {$ifdef read_implementation}
75
76 { TAbstract3DBackgroundNode ----------------------------------------------- }
77
78 procedure TAbstract3DBackgroundNode.SetGroundAngle(const Value: array of Single);
79 begin
80 FdGroundAngle.Send(Value);
81 end;
82
83 procedure TAbstract3DBackgroundNode.SetGroundAngle(const Value: TSingleList);
84 begin
85 FdGroundAngle.Send(Value);
86 end;
87
88 procedure TAbstract3DBackgroundNode.SetGroundColor(const Value: array of TCastleColorRGB);
89 begin
90 FdGroundColor.Send(Value);
91 end;
92
93 procedure TAbstract3DBackgroundNode.SetGroundColor(const Value: TVector3List);
94 begin
95 FdGroundColor.Send(Value);
96 end;
97
98 procedure TAbstract3DBackgroundNode.SetSkyAngle(const Value: array of Single);
99 begin
100 FdSkyAngle.Send(Value);
101 end;
102
103 procedure TAbstract3DBackgroundNode.SetSkyAngle(const Value: TSingleList);
104 begin
105 FdSkyAngle.Send(Value);
106 end;
107
108 procedure TAbstract3DBackgroundNode.SetSkyColor(const Value: array of TCastleColorRGB);
109 begin
110 FdSkyColor.Send(Value);
111 end;
112
113 procedure TAbstract3DBackgroundNode.SetSkyColor(const Value: TVector3List);
114 begin
115 FdSkyColor.Send(Value);
116 end;
117
118 function TAbstract3DBackgroundNode.GetTransparency: Single;
119 begin
120 Result := FdTransparency.Value;
121 end;
122
123 procedure TAbstract3DBackgroundNode.SetTransparency(const Value: Single);
124 begin
125 FdTransparency.Send(Value);
126 end;
127
128 class function TAbstract3DBackgroundNode.ClassX3DType: String;
129 begin
130 Result := 'X3D3DBackgroundNode';
131 end;
132
133 procedure TAbstract3DBackgroundNode.CreateNode;
134 begin
135 inherited;
136
137 FFdGroundAngle := TMFFloat.Create(Self, True, 'groundAngle', []);
138 FdGroundAngle.ChangeAlways := chBackground;
139 FdGroundAngle.Angle := true;
140 AddField(FFdGroundAngle);
141
142 FFdGroundColor := TMFColor.Create(Self, True, 'groundColor', []);
143 FdGroundColor.ChangeAlways := chBackground;
144 AddField(FFdGroundColor);
145
146 FFdSkyAngle := TMFFloat.Create(Self, True, 'skyAngle', []);
147 FdSkyAngle.ChangeAlways := chBackground;
148 FdSkyAngle.Angle := true;
149 AddField(FFdSkyAngle);
150
151 FFdSkyColor := TMFColor.Create(Self, True, 'skyColor', Vector3(0, 0, 0));
152 FdSkyColor.ChangeAlways := chBackground;
153 AddField(FFdSkyColor);
154
155 FFdTransparency := TSFFloat.Create(Self, True, 'transparency', 0);
156 FdTransparency.ChangeAlways := chBackground;
157 FdTransparency.MustBeNonnegative := true;
158 AddField(FFdTransparency);
159 end;
160
161 {$endif read_implementation}