Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_hanimsite.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 GetCenter: TVector3;
28 procedure SetCenter(const Value: TVector3);
29 function GetDescription: String;
30 procedure SetDescription(const Value: String);
31 function GetNameField: String;
32 procedure SetNameField(const Value: String);
33 function GetRotation: TVector4;
34 procedure SetRotation(const Value: TVector4);
35 function GetScale: TVector3;
36 procedure SetScale(const Value: TVector3);
37 function GetScaleOrientation: TVector4;
38 procedure SetScaleOrientation(const Value: TVector4);
39 function GetTranslation: TVector3;
40 procedure SetTranslation(const Value: TVector3);
41 public
42 { Create node fields and events. }
43 procedure CreateNode; override;
44 class function ClassX3DType: String; override;
45
46 strict private FFdCenter: TSFVec3f;
47 { Internal wrapper for property @code(Center). This wrapper API may change, we advise to access simpler @code(Center) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdCenter: TSFVec3f read FFdCenter;
49 { }
50 property Center: TVector3 read GetCenter write SetCenter;
51
52 strict private FFdDescription: TSFString;
53 { 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). }
54 public property FdDescription: TSFString read FFdDescription;
55 { }
56 property Description: String read GetDescription write SetDescription;
57
58 strict private FFdName: TSFString;
59 { Internal wrapper for property @code(NameField). This wrapper API may change, we advise to access simpler @code(NameField) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdName: TSFString read FFdName;
61 { }
62 property NameField: String read GetNameField write SetNameField;
63
64 strict private FFdRotation: TSFRotation;
65 { Internal wrapper for property @code(Rotation). This wrapper API may change, we advise to access simpler @code(Rotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdRotation: TSFRotation read FFdRotation;
67 { }
68 property Rotation: TVector4 read GetRotation write SetRotation;
69
70 strict private FFdScale: TSFVec3f;
71 { Internal wrapper for property @code(Scale). This wrapper API may change, we advise to access simpler @code(Scale) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
72 public property FdScale: TSFVec3f read FFdScale;
73 { }
74 property Scale: TVector3 read GetScale write SetScale;
75
76 strict private FFdScaleOrientation: TSFRotation;
77 { Internal wrapper for property @code(ScaleOrientation). This wrapper API may change, we advise to access simpler @code(ScaleOrientation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
78 public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;
79 { }
80 property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation;
81
82 strict private FFdTranslation: TSFVec3f;
83 { Internal wrapper for property @code(Translation). This wrapper API may change, we advise to access simpler @code(Translation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
84 public property FdTranslation: TSFVec3f read FFdTranslation;
85 { }
86 property Translation: TVector3 read GetTranslation write SetTranslation;
87
88 {$endif read_interface}
89
90 {$ifdef read_implementation}
91
92 { THAnimSiteNode ----------------------------------------------- }
93
94 function THAnimSiteNode.GetCenter: TVector3;
95 begin
96 Result := FdCenter.Value;
97 end;
98
99 procedure THAnimSiteNode.SetCenter(const Value: TVector3);
100 begin
101 FdCenter.Send(Value);
102 end;
103
104 function THAnimSiteNode.GetDescription: String;
105 begin
106 Result := FdDescription.Value;
107 end;
108
109 procedure THAnimSiteNode.SetDescription(const Value: String);
110 begin
111 FdDescription.Send(Value);
112 end;
113
114 function THAnimSiteNode.GetNameField: String;
115 begin
116 Result := FdName.Value;
117 end;
118
119 procedure THAnimSiteNode.SetNameField(const Value: String);
120 begin
121 FdName.Send(Value);
122 end;
123
124 function THAnimSiteNode.GetRotation: TVector4;
125 begin
126 Result := FdRotation.Value;
127 end;
128
129 procedure THAnimSiteNode.SetRotation(const Value: TVector4);
130 begin
131 FdRotation.Send(Value);
132 end;
133
134 function THAnimSiteNode.GetScale: TVector3;
135 begin
136 Result := FdScale.Value;
137 end;
138
139 procedure THAnimSiteNode.SetScale(const Value: TVector3);
140 begin
141 FdScale.Send(Value);
142 end;
143
144 function THAnimSiteNode.GetScaleOrientation: TVector4;
145 begin
146 Result := FdScaleOrientation.Value;
147 end;
148
149 procedure THAnimSiteNode.SetScaleOrientation(const Value: TVector4);
150 begin
151 FdScaleOrientation.Send(Value);
152 end;
153
154 function THAnimSiteNode.GetTranslation: TVector3;
155 begin
156 Result := FdTranslation.Value;
157 end;
158
159 procedure THAnimSiteNode.SetTranslation(const Value: TVector3);
160 begin
161 FdTranslation.Send(Value);
162 end;
163
164 class function THAnimSiteNode.ClassX3DType: String;
165 begin
166 Result := 'HAnimSite';
167 end;
168
169 procedure THAnimSiteNode.CreateNode;
170 begin
171 inherited;
172
173 FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0));
174 FdCenter.ChangeAlways := chTransform;
175 AddField(FFdCenter);
176
177 FFdDescription := TSFString.Create(Self, True, 'description', '');
178 FdDescription.ChangeAlways := chNone;
179 AddField(FFdDescription);
180
181 FFdName := TSFString.Create(Self, True, 'name', '');
182 FdName.ChangeAlways := chVisibleNonGeometry;
183 AddField(FFdName);
184
185 FFdRotation := TSFRotation.Create(Self, True, 'rotation', Vector3(0, 0, 1), 0);
186 FdRotation.ChangeAlways := chTransform;
187 AddField(FFdRotation);
188
189 FFdScale := TSFVec3f.Create(Self, True, 'scale', Vector3(1, 1, 1));
190 FdScale.ChangeAlways := chTransform;
191 AddField(FFdScale);
192
193 FFdScaleOrientation := TSFRotation.Create(Self, True, 'scaleOrientation', Vector3(0, 0, 1), 0);
194 FdScaleOrientation.ChangeAlways := chTransform;
195 AddField(FFdScaleOrientation);
196
197 FFdTranslation := TSFVec3f.Create(Self, True, 'translation', Vector3(0, 0, 0));
198 FdTranslation.ChangeAlways := chTransform;
199 AddField(FFdTranslation);
200 end;
201
202 {$endif read_implementation}