Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3ddirectionallightnode.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 GetProjectionRectangle: TVector4;
30 procedure SetProjectionRectangle(const Value: TVector4);
31 function GetProjectionLocation: TVector3;
32 procedure SetProjectionLocation(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 FFdDirection: TSFVec3f;
39 { 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). }
40 public property FdDirection: TSFVec3f read FFdDirection;
41 { }
42 property Direction: TVector3 read GetDirection write SetDirection;
43
44 strict private FFdProjectionRectangle: TSFVec4f;
45 { Internal wrapper for property @code(ProjectionRectangle). This wrapper API may change, we advise to access simpler @code(ProjectionRectangle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
46 public property FdProjectionRectangle: TSFVec4f read FFdProjectionRectangle;
47 { }
48 property ProjectionRectangle: TVector4 read GetProjectionRectangle write SetProjectionRectangle;
49
50 strict private FFdProjectionLocation: TSFVec3f;
51 { Internal wrapper for property @code(ProjectionLocation). This wrapper API may change, we advise to access simpler @code(ProjectionLocation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdProjectionLocation: TSFVec3f read FFdProjectionLocation;
53 { }
54 property ProjectionLocation: TVector3 read GetProjectionLocation write SetProjectionLocation;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TAbstractDirectionalLightNode ----------------------------------------------- }
61
62 function TAbstractDirectionalLightNode.GetDirection: TVector3;
63 begin
64 Result := FdDirection.Value;
65 end;
66
67 procedure TAbstractDirectionalLightNode.SetDirection(const Value: TVector3);
68 begin
69 FdDirection.Send(Value);
70 end;
71
72 function TAbstractDirectionalLightNode.GetProjectionRectangle: TVector4;
73 begin
74 Result := FdProjectionRectangle.Value;
75 end;
76
77 procedure TAbstractDirectionalLightNode.SetProjectionRectangle(const Value: TVector4);
78 begin
79 FdProjectionRectangle.Send(Value);
80 end;
81
82 function TAbstractDirectionalLightNode.GetProjectionLocation: TVector3;
83 begin
84 Result := FdProjectionLocation.Value;
85 end;
86
87 procedure TAbstractDirectionalLightNode.SetProjectionLocation(const Value: TVector3);
88 begin
89 FdProjectionLocation.Send(Value);
90 end;
91
92 class function TAbstractDirectionalLightNode.ClassX3DType: String;
93 begin
94 Result := 'X3DDirectionalLightNode';
95 end;
96
97 procedure TAbstractDirectionalLightNode.CreateNode;
98 begin
99 inherited;
100
101 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 0, -1));
102 FdDirection.ChangeAlways := chLightLocationDirection;
103 AddField(FFdDirection);
104
105 FFdProjectionRectangle := TSFVec4f.Create(Self, True, 'projectionRectangle', Vector4(0, 0, 0, 0));
106 FdProjectionRectangle.ChangeAlways := chVisibleGeometry;
107 AddField(FFdProjectionRectangle);
108
109 FFdProjectionLocation := TSFVec3f.Create(Self, True, 'projectionLocation', Vector3(0, 0, 0));
110 FdProjectionLocation.ChangeAlways := chVisibleGeometry;
111 AddField(FFdProjectionLocation);
112 end;
113
114 {$endif read_implementation}