Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_arcclose2d.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 GetClosureType: TArcClosureType;
28 procedure SetClosureType(const Value: TArcClosureType);
29 function GetEndAngle: Single;
30 procedure SetEndAngle(const Value: Single);
31 function GetRadius: Single;
32 procedure SetRadius(const Value: Single);
33 function GetStartAngle: Single;
34 procedure SetStartAngle(const Value: Single);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdClosureType: TSFStringEnum;
41 { Internal wrapper for property @code(ClosureType). This wrapper API may change, we advise to access simpler @code(ClosureType) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdClosureType: TSFStringEnum read FFdClosureType;
43 { }
44 property ClosureType: TArcClosureType read GetClosureType write SetClosureType;
45
46 strict private FFdEndAngle: TSFFloat;
47 { Internal wrapper for property @code(EndAngle). This wrapper API may change, we advise to access simpler @code(EndAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdEndAngle: TSFFloat read FFdEndAngle;
49 { }
50 property EndAngle: Single read GetEndAngle write SetEndAngle;
51
52 strict private FFdRadius: TSFFloat;
53 { Internal wrapper for property @code(Radius). This wrapper API may change, we advise to access simpler @code(Radius) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdRadius: TSFFloat read FFdRadius;
55 { }
56 property Radius: Single read GetRadius write SetRadius;
57
58 strict private FFdSolid: TSFBool;
59 { Internal wrapper for property @code(Solid). This wrapper API may change, we advise to access simpler @code(Solid) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdSolid: TSFBool read FFdSolid;
61
62 strict private FFdStartAngle: TSFFloat;
63 { Internal wrapper for property @code(StartAngle). This wrapper API may change, we advise to access simpler @code(StartAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
64 public property FdStartAngle: TSFFloat read FFdStartAngle;
65 { }
66 property StartAngle: Single read GetStartAngle write SetStartAngle;
67
68 {$endif read_interface}
69
70 {$ifdef read_implementation}
71
72 { TArcClose2DNode ----------------------------------------------- }
73
74 function TArcClose2DNode.GetClosureType: TArcClosureType;
75 begin
76 Result := TArcClosureType(FdClosureType.EnumValue);
77 end;
78
79 procedure TArcClose2DNode.SetClosureType(const Value: TArcClosureType);
80 begin
81 FdClosureType.SendEnumValue(Ord(Value));
82 end;
83
84 function TArcClose2DNode.GetEndAngle: Single;
85 begin
86 Result := FdEndAngle.Value;
87 end;
88
89 procedure TArcClose2DNode.SetEndAngle(const Value: Single);
90 begin
91 FdEndAngle.Send(Value);
92 end;
93
94 function TArcClose2DNode.GetRadius: Single;
95 begin
96 Result := FdRadius.Value;
97 end;
98
99 procedure TArcClose2DNode.SetRadius(const Value: Single);
100 begin
101 FdRadius.Send(Value);
102 end;
103
104 function TArcClose2DNode.GetStartAngle: Single;
105 begin
106 Result := FdStartAngle.Value;
107 end;
108
109 procedure TArcClose2DNode.SetStartAngle(const Value: Single);
110 begin
111 FdStartAngle.Send(Value);
112 end;
113
114 class function TArcClose2DNode.ClassX3DType: String;
115 begin
116 Result := 'ArcClose2D';
117 end;
118
119 procedure TArcClose2DNode.CreateNode;
120 begin
121 inherited;
122
123 FFdClosureType := TSFStringEnum.Create(Self, False, 'closureType', @ArcClosureTypeNames, Ord(High(ArcClosureTypeNames)) + 1, Ord(acPie));
124 FdClosureType.ChangeAlways := chGeometry;
125 AddField(FFdClosureType);
126
127 FFdEndAngle := TSFFloat.Create(Self, False, 'endAngle', Pi/2);
128 FdEndAngle.ChangeAlways := chGeometry;
129 FdEndAngle.Angle := true;
130 AddField(FFdEndAngle);
131
132 FFdRadius := TSFFloat.Create(Self, False, 'radius', 1);
133 FdRadius.ChangeAlways := chGeometry;
134 FdRadius.MustBeNonnegative := true;
135 AddField(FFdRadius);
136
137 FFdSolid := TSFBool.Create(Self, False, 'solid', false);
138 FdSolid.ChangeAlways := chGeometry;
139 AddField(FFdSolid);
140
141 FFdStartAngle := TSFFloat.Create(Self, False, 'startAngle', 0);
142 FdStartAngle.ChangeAlways := chGeometry;
143 FdStartAngle.Angle := true;
144 AddField(FFdStartAngle);
145 end;
146
147 {$endif read_implementation}