Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_planesensor.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 GetAxisRotation: TVector4;
28 procedure SetAxisRotation(const Value: TVector4);
29 function GetMaxPosition: TVector2;
30 procedure SetMaxPosition(const Value: TVector2);
31 function GetMinPosition: TVector2;
32 procedure SetMinPosition(const Value: TVector2);
33 function GetOffset: TVector3;
34 procedure SetOffset(const Value: TVector3);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdAxisRotation: TSFRotation;
41 { Internal wrapper for property @code(AxisRotation). This wrapper API may change, we advise to access simpler @code(AxisRotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdAxisRotation: TSFRotation read FFdAxisRotation;
43 { }
44 property AxisRotation: TVector4 read GetAxisRotation write SetAxisRotation;
45
46 strict private FFdMaxPosition: TSFVec2f;
47 { Internal wrapper for property @code(MaxPosition). This wrapper API may change, we advise to access simpler @code(MaxPosition) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdMaxPosition: TSFVec2f read FFdMaxPosition;
49 { }
50 property MaxPosition: TVector2 read GetMaxPosition write SetMaxPosition;
51
52 strict private FFdMinPosition: TSFVec2f;
53 { Internal wrapper for property @code(MinPosition). This wrapper API may change, we advise to access simpler @code(MinPosition) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdMinPosition: TSFVec2f read FFdMinPosition;
55 { }
56 property MinPosition: TVector2 read GetMinPosition write SetMinPosition;
57
58 strict private FFdOffset: TSFVec3f;
59 { Internal wrapper for property @code(Offset). This wrapper API may change, we advise to access simpler @code(Offset) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdOffset: TSFVec3f read FFdOffset;
61 { }
62 property Offset: TVector3 read GetOffset write SetOffset;
63
64 strict private FEventTranslation_changed: TSFVec3fEvent;
65 { }
66 public property EventTranslation_changed: TSFVec3fEvent read FEventTranslation_changed;
67
68 {$endif read_interface}
69
70 {$ifdef read_implementation}
71
72 { TPlaneSensorNode ----------------------------------------------- }
73
74 function TPlaneSensorNode.GetAxisRotation: TVector4;
75 begin
76 Result := FdAxisRotation.Value;
77 end;
78
79 procedure TPlaneSensorNode.SetAxisRotation(const Value: TVector4);
80 begin
81 FdAxisRotation.Send(Value);
82 end;
83
84 function TPlaneSensorNode.GetMaxPosition: TVector2;
85 begin
86 Result := FdMaxPosition.Value;
87 end;
88
89 procedure TPlaneSensorNode.SetMaxPosition(const Value: TVector2);
90 begin
91 FdMaxPosition.Send(Value);
92 end;
93
94 function TPlaneSensorNode.GetMinPosition: TVector2;
95 begin
96 Result := FdMinPosition.Value;
97 end;
98
99 procedure TPlaneSensorNode.SetMinPosition(const Value: TVector2);
100 begin
101 FdMinPosition.Send(Value);
102 end;
103
104 function TPlaneSensorNode.GetOffset: TVector3;
105 begin
106 Result := FdOffset.Value;
107 end;
108
109 procedure TPlaneSensorNode.SetOffset(const Value: TVector3);
110 begin
111 FdOffset.Send(Value);
112 end;
113
114 class function TPlaneSensorNode.ClassX3DType: String;
115 begin
116 Result := 'PlaneSensor';
117 end;
118
119 procedure TPlaneSensorNode.CreateNode;
120 begin
121 inherited;
122
123 FFdAxisRotation := TSFRotation.Create(Self, True, 'axisRotation', Vector3(0, 0, 1), 0);
124 FdAxisRotation.ChangeAlways := chVisibleNonGeometry;
125 AddField(FFdAxisRotation);
126
127 FFdMaxPosition := TSFVec2f.Create(Self, True, 'maxPosition', Vector2(-1, -1));
128 FdMaxPosition.ChangeAlways := chVisibleNonGeometry;
129 AddField(FFdMaxPosition);
130
131 FFdMinPosition := TSFVec2f.Create(Self, True, 'minPosition', Vector2(0, 0));
132 FdMinPosition.ChangeAlways := chVisibleNonGeometry;
133 AddField(FFdMinPosition);
134
135 FFdOffset := TSFVec3f.Create(Self, True, 'offset', Vector3(0, 0, 0));
136 FdOffset.ChangeAlways := chVisibleNonGeometry;
137 AddField(FFdOffset);
138
139 FEventTranslation_changed := TSFVec3fEvent.Create(Self, 'translation_changed', false);
140 AddEvent(FEventTranslation_changed);
141 end;
142
143 {$endif read_implementation}