Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3denvironmentalsensornode.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 GetSize: TVector3;
30 procedure SetSize(const Value: TVector3);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FFdCenter: TSFVec3f;
37 { 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). }
38 public property FdCenter: TSFVec3f read FFdCenter;
39 { }
40 property Center: TVector3 read GetCenter write SetCenter;
41
42 strict private FFdSize: TSFVec3f;
43 { Internal wrapper for property @code(Size). This wrapper API may change, we advise to access simpler @code(Size) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdSize: TSFVec3f read FFdSize;
45 { }
46 property Size: TVector3 read GetSize write SetSize;
47
48 strict private FEventEnterTime: TSFTimeEvent;
49 { }
50 public property EventEnterTime: TSFTimeEvent read FEventEnterTime;
51
52 strict private FEventExitTime: TSFTimeEvent;
53 { }
54 public property EventExitTime: TSFTimeEvent read FEventExitTime;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TAbstractEnvironmentalSensorNode ----------------------------------------------- }
61
62 function TAbstractEnvironmentalSensorNode.GetCenter: TVector3;
63 begin
64 Result := FdCenter.Value;
65 end;
66
67 procedure TAbstractEnvironmentalSensorNode.SetCenter(const Value: TVector3);
68 begin
69 FdCenter.Send(Value);
70 end;
71
72 function TAbstractEnvironmentalSensorNode.GetSize: TVector3;
73 begin
74 Result := FdSize.Value;
75 end;
76
77 procedure TAbstractEnvironmentalSensorNode.SetSize(const Value: TVector3);
78 begin
79 FdSize.Send(Value);
80 end;
81
82 class function TAbstractEnvironmentalSensorNode.ClassX3DType: String;
83 begin
84 Result := 'X3DEnvironmentalSensorNode';
85 end;
86
87 procedure TAbstractEnvironmentalSensorNode.CreateNode;
88 begin
89 inherited;
90
91 FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0));
92 FdCenter.ChangeAlways := chEnvironmentalSensorBounds;
93 AddField(FFdCenter);
94
95 FFdSize := TSFVec3f.Create(Self, True, 'size', Vector3(0, 0, 0));
96 FdSize.ChangeAlways := chEnvironmentalSensorBounds;
97 AddField(FFdSize);
98
99 FEventEnterTime := TSFTimeEvent.Create(Self, 'enterTime', false);
100 AddEvent(FEventEnterTime);
101
102 FEventExitTime := TSFTimeEvent.Create(Self, 'exitTime', false);
103 AddEvent(FEventExitTime);
104 end;
105
106 {$endif read_implementation}