Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_geotouchsensor.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 FEventHitNormal_changed: TSFVec3fEvent;
35 { }
36 public property EventHitNormal_changed: TSFVec3fEvent read FEventHitNormal_changed;
37
38 strict private FEventHitPoint_changed: TSFVec3fEvent;
39 { }
40 public property EventHitPoint_changed: TSFVec3fEvent read FEventHitPoint_changed;
41
42 strict private FEventHitTexCoord_changed: TSFVec2fEvent;
43 { }
44 public property EventHitTexCoord_changed: TSFVec2fEvent read FEventHitTexCoord_changed;
45
46 strict private FEventHitGeoCoord_changed: TSFVec3dEvent;
47 { }
48 public property EventHitGeoCoord_changed: TSFVec3dEvent read FEventHitGeoCoord_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 { TGeoTouchSensorNode ----------------------------------------------- }
69
70 function TGeoTouchSensorNode.GetGeoOrigin: TGeoOriginNode;
71 begin
72 if FdGeoOrigin.Value is TGeoOriginNode then
73 Result := TGeoOriginNode(FdGeoOrigin.Value)
74 else
75 Result := nil;
76 end;
77
78 procedure TGeoTouchSensorNode.SetGeoOrigin(const Value: TGeoOriginNode);
79 begin
80 FdGeoOrigin.Send(Value);
81 end;
82
83 procedure TGeoTouchSensorNode.SetGeoSystem(const Value: array of string);
84 begin
85 FdGeoSystem.Send(Value);
86 end;
87
88 procedure TGeoTouchSensorNode.SetGeoSystem(const Value: TCastleStringList);
89 begin
90 FdGeoSystem.Send(Value);
91 end;
92
93 class function TGeoTouchSensorNode.ClassX3DType: String;
94 begin
95 Result := 'GeoTouchSensor';
96 end;
97
98 procedure TGeoTouchSensorNode.CreateNode;
99 begin
100 inherited;
101
102 FEventHitNormal_changed := TSFVec3fEvent.Create(Self, 'hitNormal_changed', false);
103 AddEvent(FEventHitNormal_changed);
104
105 FEventHitPoint_changed := TSFVec3fEvent.Create(Self, 'hitPoint_changed', false);
106 AddEvent(FEventHitPoint_changed);
107
108 FEventHitTexCoord_changed := TSFVec2fEvent.Create(Self, 'hitTexCoord_changed', false);
109 AddEvent(FEventHitTexCoord_changed);
110
111 FEventHitGeoCoord_changed := TSFVec3dEvent.Create(Self, 'hitGeoCoord_changed', false);
112 AddEvent(FEventHitGeoCoord_changed);
113
114 FFdGeoOrigin := TSFNode.Create(Self, False, 'geoOrigin', [TGeoOriginNode]);
115 FdGeoOrigin.ChangeAlways := chVisibleNonGeometry;
116 AddField(FFdGeoOrigin);
117
118 FFdGeoSystem := TMFString.Create(Self, False, 'geoSystem', ['GD','WE']);
119 FdGeoSystem.ChangeAlways := chVisibleNonGeometry;
120 AddField(FFdGeoSystem);
121 end;
122
123 {$endif read_implementation}