Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_cadpart.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 GetNameField: String;
30 procedure SetNameField(const Value: String);
31 function GetRotation: TVector4;
32 procedure SetRotation(const Value: TVector4);
33 function GetScale: TVector3;
34 procedure SetScale(const Value: TVector3);
35 function GetScaleOrientation: TVector4;
36 procedure SetScaleOrientation(const Value: TVector4);
37 function GetTranslation: TVector3;
38 procedure SetTranslation(const Value: TVector3);
39 public
40 { Create node fields and events. }
41 procedure CreateNode; override;
42 class function ClassX3DType: String; override;
43
44 strict private FFdCenter: TSFVec3f;
45 { 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). }
46 public property FdCenter: TSFVec3f read FFdCenter;
47 { }
48 property Center: TVector3 read GetCenter write SetCenter;
49
50 strict private FFdName: TSFString;
51 { 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). }
52 public property FdName: TSFString read FFdName;
53 { }
54 property NameField: String read GetNameField write SetNameField;
55
56 strict private FFdRotation: TSFRotation;
57 { 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). }
58 public property FdRotation: TSFRotation read FFdRotation;
59 { }
60 property Rotation: TVector4 read GetRotation write SetRotation;
61
62 strict private FFdScale: TSFVec3f;
63 { 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). }
64 public property FdScale: TSFVec3f read FFdScale;
65 { }
66 property Scale: TVector3 read GetScale write SetScale;
67
68 strict private FFdScaleOrientation: TSFRotation;
69 { 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). }
70 public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;
71 { }
72 property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation;
73
74 strict private FFdTranslation: TSFVec3f;
75 { 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). }
76 public property FdTranslation: TSFVec3f read FFdTranslation;
77 { }
78 property Translation: TVector3 read GetTranslation write SetTranslation;
79
80 {$endif read_interface}
81
82 {$ifdef read_implementation}
83
84 { TCADPartNode ----------------------------------------------- }
85
86 function TCADPartNode.GetCenter: TVector3;
87 begin
88 Result := FdCenter.Value;
89 end;
90
91 procedure TCADPartNode.SetCenter(const Value: TVector3);
92 begin
93 FdCenter.Send(Value);
94 end;
95
96 function TCADPartNode.GetNameField: String;
97 begin
98 Result := FdName.Value;
99 end;
100
101 procedure TCADPartNode.SetNameField(const Value: String);
102 begin
103 FdName.Send(Value);
104 end;
105
106 function TCADPartNode.GetRotation: TVector4;
107 begin
108 Result := FdRotation.Value;
109 end;
110
111 procedure TCADPartNode.SetRotation(const Value: TVector4);
112 begin
113 FdRotation.Send(Value);
114 end;
115
116 function TCADPartNode.GetScale: TVector3;
117 begin
118 Result := FdScale.Value;
119 end;
120
121 procedure TCADPartNode.SetScale(const Value: TVector3);
122 begin
123 FdScale.Send(Value);
124 end;
125
126 function TCADPartNode.GetScaleOrientation: TVector4;
127 begin
128 Result := FdScaleOrientation.Value;
129 end;
130
131 procedure TCADPartNode.SetScaleOrientation(const Value: TVector4);
132 begin
133 FdScaleOrientation.Send(Value);
134 end;
135
136 function TCADPartNode.GetTranslation: TVector3;
137 begin
138 Result := FdTranslation.Value;
139 end;
140
141 procedure TCADPartNode.SetTranslation(const Value: TVector3);
142 begin
143 FdTranslation.Send(Value);
144 end;
145
146 class function TCADPartNode.ClassX3DType: String;
147 begin
148 Result := 'CADPart';
149 end;
150
151 procedure TCADPartNode.CreateNode;
152 begin
153 inherited;
154
155 FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0));
156 FdCenter.ChangeAlways := chTransform;
157 AddField(FFdCenter);
158
159 FFdName := TSFString.Create(Self, True, 'name', '');
160 FdName.ChangeAlways := chNone;
161 AddField(FFdName);
162
163 FFdRotation := TSFRotation.Create(Self, True, 'rotation', Vector3(0, 0, 1), 0);
164 FdRotation.ChangeAlways := chTransform;
165 AddField(FFdRotation);
166
167 FFdScale := TSFVec3f.Create(Self, True, 'scale', Vector3(1, 1, 1));
168 FdScale.ChangeAlways := chTransform;
169 AddField(FFdScale);
170
171 FFdScaleOrientation := TSFRotation.Create(Self, True, 'scaleOrientation', Vector3(0, 0, 1), 0);
172 FdScaleOrientation.ChangeAlways := chTransform;
173 AddField(FFdScaleOrientation);
174
175 FFdTranslation := TSFVec3f.Create(Self, True, 'translation', Vector3(0, 0, 0));
176 FdTranslation.ChangeAlways := chTransform;
177 AddField(FFdTranslation);
178 end;
179
180 {$endif read_implementation}