Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtextureprojectornode.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 GetDescription: String;
28 procedure SetDescription(const Value: String);
29 function GetDirection: TVector3;
30 procedure SetDirection(const Value: TVector3);
31 function GetFarDistance: Single;
32 procedure SetFarDistance(const Value: Single);
33 function GetLocation: TVector3;
34 procedure SetLocation(const Value: TVector3);
35 function GetNearDistance: Single;
36 procedure SetNearDistance(const Value: Single);
37 function GetTexture: TAbstractTexture2DNode;
38 procedure SetTexture(const Value: TAbstractTexture2DNode);
39 public
40 { Create node fields and events. }
41 procedure CreateNode; override;
42 class function ClassX3DType: String; override;
43
44 strict private FFdDescription: TSFString;
45 { Internal wrapper for property @code(Description). This wrapper API may change, we advise to access simpler @code(Description) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
46 public property FdDescription: TSFString read FFdDescription;
47 { }
48 property Description: String read GetDescription write SetDescription;
49
50 strict private FFdDirection: TSFVec3f;
51 { 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). }
52 public property FdDirection: TSFVec3f read FFdDirection;
53 { }
54 property Direction: TVector3 read GetDirection write SetDirection;
55
56 strict private FFdFarDistance: TSFFloat;
57 { Internal wrapper for property @code(FarDistance). This wrapper API may change, we advise to access simpler @code(FarDistance) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
58 public property FdFarDistance: TSFFloat read FFdFarDistance;
59 { }
60 property FarDistance: Single read GetFarDistance write SetFarDistance;
61
62 strict private FFdLocation: TSFVec3f;
63 { Internal wrapper for property @code(Location). This wrapper API may change, we advise to access simpler @code(Location) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
64 public property FdLocation: TSFVec3f read FFdLocation;
65 { }
66 property Location: TVector3 read GetLocation write SetLocation;
67
68 strict private FFdNearDistance: TSFFloat;
69 { Internal wrapper for property @code(NearDistance). This wrapper API may change, we advise to access simpler @code(NearDistance) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
70 public property FdNearDistance: TSFFloat read FFdNearDistance;
71 { }
72 property NearDistance: Single read GetNearDistance write SetNearDistance;
73
74 strict private FFdTexture: TSFNode;
75 { Internal wrapper for property @code(Texture). This wrapper API may change, we advise to access simpler @code(Texture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
76 public property FdTexture: TSFNode read FFdTexture;
77 { }
78 property Texture: TAbstractTexture2DNode read GetTexture write SetTexture;
79
80 strict private FEventAspectRatio: TSFFloatEvent;
81 { }
82 public property EventAspectRatio: TSFFloatEvent read FEventAspectRatio;
83
84 {$endif read_interface}
85
86 {$ifdef read_implementation}
87
88 { TAbstractTextureProjectorNode ----------------------------------------------- }
89
90 function TAbstractTextureProjectorNode.GetDescription: String;
91 begin
92 Result := FdDescription.Value;
93 end;
94
95 procedure TAbstractTextureProjectorNode.SetDescription(const Value: String);
96 begin
97 FdDescription.Send(Value);
98 end;
99
100 function TAbstractTextureProjectorNode.GetDirection: TVector3;
101 begin
102 Result := FdDirection.Value;
103 end;
104
105 procedure TAbstractTextureProjectorNode.SetDirection(const Value: TVector3);
106 begin
107 FdDirection.Send(Value);
108 end;
109
110 function TAbstractTextureProjectorNode.GetFarDistance: Single;
111 begin
112 Result := FdFarDistance.Value;
113 end;
114
115 procedure TAbstractTextureProjectorNode.SetFarDistance(const Value: Single);
116 begin
117 FdFarDistance.Send(Value);
118 end;
119
120 function TAbstractTextureProjectorNode.GetLocation: TVector3;
121 begin
122 Result := FdLocation.Value;
123 end;
124
125 procedure TAbstractTextureProjectorNode.SetLocation(const Value: TVector3);
126 begin
127 FdLocation.Send(Value);
128 end;
129
130 function TAbstractTextureProjectorNode.GetNearDistance: Single;
131 begin
132 Result := FdNearDistance.Value;
133 end;
134
135 procedure TAbstractTextureProjectorNode.SetNearDistance(const Value: Single);
136 begin
137 FdNearDistance.Send(Value);
138 end;
139
140 function TAbstractTextureProjectorNode.GetTexture: TAbstractTexture2DNode;
141 begin
142 if FdTexture.Value is TAbstractTexture2DNode then
143 Result := TAbstractTexture2DNode(FdTexture.Value)
144 else
145 Result := nil;
146 end;
147
148 procedure TAbstractTextureProjectorNode.SetTexture(const Value: TAbstractTexture2DNode);
149 begin
150 FdTexture.Send(Value);
151 end;
152
153 class function TAbstractTextureProjectorNode.ClassX3DType: String;
154 begin
155 Result := 'X3DTextureProjectorNode';
156 end;
157
158 procedure TAbstractTextureProjectorNode.CreateNode;
159 begin
160 inherited;
161
162 FFdDescription := TSFString.Create(Self, True, 'description', '');
163 FdDescription.ChangeAlways := chVisibleNonGeometry;
164 AddField(FFdDescription);
165
166 FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 0, 1));
167 FdDirection.ChangeAlways := chVisibleNonGeometry;
168 AddField(FFdDirection);
169
170 FFdFarDistance := TSFFloat.Create(Self, True, 'farDistance', -1);
171 FdFarDistance.ChangeAlways := chVisibleNonGeometry;
172 AddField(FFdFarDistance);
173
174 FFdLocation := TSFVec3f.Create(Self, True, 'location', Vector3(0, 0, 0));
175 FdLocation.ChangeAlways := chVisibleNonGeometry;
176 AddField(FFdLocation);
177
178 FFdNearDistance := TSFFloat.Create(Self, True, 'nearDistance', -1);
179 FdNearDistance.ChangeAlways := chVisibleNonGeometry;
180 AddField(FFdNearDistance);
181
182 FFdTexture := TSFNode.Create(Self, True, 'texture', [TAbstractTexture2DNode]);
183 FdTexture.ChangeAlways := chVisibleNonGeometry;
184 AddField(FFdTexture);
185
186 FEventAspectRatio := TSFFloatEvent.Create(Self, 'aspectRatio', false);
187 AddEvent(FEventAspectRatio);
188 end;
189
190 {$endif read_implementation}