Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_geoorigin.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 GetGeoCoords: TVector3Double;
28 procedure SetGeoCoords(const Value: TVector3Double);
29 function GetRotateYUp: Boolean;
30 procedure SetRotateYUp(const Value: Boolean);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FFdGeoCoords: TSFVec3d;
37 { Internal wrapper for property @code(GeoCoords). This wrapper API may change, we advise to access simpler @code(GeoCoords) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
38 public property FdGeoCoords: TSFVec3d read FFdGeoCoords;
39 { }
40 property GeoCoords: TVector3Double read GetGeoCoords write SetGeoCoords;
41
42 strict private FFdGeoSystem: TMFString;
43 { Internal wrapper for property @code(GeoSystem). This wrapper API may change, we advise to access simpler @code(GeoSystem) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdGeoSystem: TMFString read FFdGeoSystem;
45 { }
46 procedure SetGeoSystem(const Value: array of string); overload;
47 { }
48 procedure SetGeoSystem(const Value: TCastleStringList); overload;
49
50 strict private FFdRotateYUp: TSFBool;
51 { Internal wrapper for property @code(RotateYUp). This wrapper API may change, we advise to access simpler @code(RotateYUp) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdRotateYUp: TSFBool read FFdRotateYUp;
53 { }
54 property RotateYUp: Boolean read GetRotateYUp write SetRotateYUp;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TGeoOriginNode ----------------------------------------------- }
61
62 function TGeoOriginNode.GetGeoCoords: TVector3Double;
63 begin
64 Result := FdGeoCoords.Value;
65 end;
66
67 procedure TGeoOriginNode.SetGeoCoords(const Value: TVector3Double);
68 begin
69 FdGeoCoords.Send(Value);
70 end;
71
72 procedure TGeoOriginNode.SetGeoSystem(const Value: array of string);
73 begin
74 FdGeoSystem.Send(Value);
75 end;
76
77 procedure TGeoOriginNode.SetGeoSystem(const Value: TCastleStringList);
78 begin
79 FdGeoSystem.Send(Value);
80 end;
81
82 function TGeoOriginNode.GetRotateYUp: Boolean;
83 begin
84 Result := FdRotateYUp.Value;
85 end;
86
87 procedure TGeoOriginNode.SetRotateYUp(const Value: Boolean);
88 begin
89 FdRotateYUp.Send(Value);
90 end;
91
92 class function TGeoOriginNode.ClassX3DType: String;
93 begin
94 Result := 'GeoOrigin';
95 end;
96
97 procedure TGeoOriginNode.CreateNode;
98 begin
99 inherited;
100
101 FFdGeoCoords := TSFVec3d.Create(Self, True, 'geoCoords', Vector3Double(0, 0, 0));
102 FdGeoCoords.ChangeAlways := chVisibleNonGeometry;
103 AddField(FFdGeoCoords);
104
105 FFdGeoSystem := TMFString.Create(Self, False, 'geoSystem', ['GD','WE']);
106 FdGeoSystem.ChangeAlways := chVisibleNonGeometry;
107 AddField(FFdGeoSystem);
108
109 FFdRotateYUp := TSFBool.Create(Self, False, 'rotateYUp', false);
110 FdRotateYUp.ChangeAlways := chVisibleNonGeometry;
111 AddField(FFdRotateYUp);
112
113 DefaultContainerField := 'geoOrigin';
114 end;
115
116 {$endif read_implementation}