Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_geopositioninterpolator.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 GetGeoOrigin: TGeoOriginNode;
28 procedure SetGeoOrigin(const Value: TGeoOriginNode);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FFdKeyValue: TMFVec3d;
35 { Internal wrapper for property @code(KeyValue). This wrapper API may change, we advise to access simpler @code(KeyValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
36 public property FdKeyValue: TMFVec3d read FFdKeyValue;
37 { }
38 procedure SetKeyValue(const Value: array of TVector3Double); overload;
39 { }
40 procedure SetKeyValue(const Value: TVector3DoubleList); overload;
41
42 strict private FEventGeovalue_changed: TSFVec3dEvent;
43 { }
44 public property EventGeovalue_changed: TSFVec3dEvent read FEventGeovalue_changed;
45
46 strict private FEventValue_changed: TSFVec3fEvent;
47 { }
48 public property EventValue_changed: TSFVec3fEvent read FEventValue_changed;
49
50 strict private FFdGeoOrigin: TSFNode;
51 { Internal wrapper for property @code(GeoOrigin). This wrapper API may change, we advise to access simpler @code(GeoOrigin) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdGeoOrigin: TSFNode read FFdGeoOrigin;
53 { }
54 property GeoOrigin: TGeoOriginNode read GetGeoOrigin write SetGeoOrigin;
55
56 strict private FFdGeoSystem: TMFString;
57 { 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). }
58 public property FdGeoSystem: TMFString read FFdGeoSystem;
59 { }
60 procedure SetGeoSystem(const Value: array of string); overload;
61 { }
62 procedure SetGeoSystem(const Value: TCastleStringList); overload;
63
64 {$endif read_interface}
65
66 {$ifdef read_implementation}
67
68 { TGeoPositionInterpolatorNode ----------------------------------------------- }
69
70 procedure TGeoPositionInterpolatorNode.SetKeyValue(const Value: array of TVector3Double);
71 begin
72 FdKeyValue.Send(Value);
73 end;
74
75 procedure TGeoPositionInterpolatorNode.SetKeyValue(const Value: TVector3DoubleList);
76 begin
77 FdKeyValue.Send(Value);
78 end;
79
80 function TGeoPositionInterpolatorNode.GetGeoOrigin: TGeoOriginNode;
81 begin
82 if FdGeoOrigin.Value is TGeoOriginNode then
83 Result := TGeoOriginNode(FdGeoOrigin.Value)
84 else
85 Result := nil;
86 end;
87
88 procedure TGeoPositionInterpolatorNode.SetGeoOrigin(const Value: TGeoOriginNode);
89 begin
90 FdGeoOrigin.Send(Value);
91 end;
92
93 procedure TGeoPositionInterpolatorNode.SetGeoSystem(const Value: array of string);
94 begin
95 FdGeoSystem.Send(Value);
96 end;
97
98 procedure TGeoPositionInterpolatorNode.SetGeoSystem(const Value: TCastleStringList);
99 begin
100 FdGeoSystem.Send(Value);
101 end;
102
103 class function TGeoPositionInterpolatorNode.ClassX3DType: String;
104 begin
105 Result := 'GeoPositionInterpolator';
106 end;
107
108 procedure TGeoPositionInterpolatorNode.CreateNode;
109 begin
110 inherited;
111
112 FFdKeyValue := TMFVec3d.Create(Self, True, 'keyValue', []);
113 FdKeyValue.ChangeAlways := chVisibleNonGeometry;
114 AddField(FFdKeyValue);
115
116 FEventGeovalue_changed := TSFVec3dEvent.Create(Self, 'geovalue_changed', false);
117 AddEvent(FEventGeovalue_changed);
118
119 FEventValue_changed := TSFVec3fEvent.Create(Self, 'value_changed', false);
120 AddEvent(FEventValue_changed);
121
122 FFdGeoOrigin := TSFNode.Create(Self, False, 'geoOrigin', [TGeoOriginNode]);
123 FdGeoOrigin.ChangeAlways := chVisibleNonGeometry;
124 AddField(FFdGeoOrigin);
125
126 FFdGeoSystem := TMFString.Create(Self, False, 'geoSystem', ['GD','WE']);
127 FdGeoSystem.ChangeAlways := chVisibleNonGeometry;
128 AddField(FFdGeoSystem);
129 end;
130
131 {$endif read_implementation}