Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_arc2d.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 GetEndAngle: Single;
28 procedure SetEndAngle(const Value: Single);
29 function GetRadius: Single;
30 procedure SetRadius(const Value: Single);
31 function GetStartAngle: Single;
32 procedure SetStartAngle(const Value: Single);
33 public
34 { Create node fields and events. }
35 procedure CreateNode; override;
36 class function ClassX3DType: String; override;
37
38 strict private FFdEndAngle: TSFFloat;
39 { 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). }
40 public property FdEndAngle: TSFFloat read FFdEndAngle;
41 { }
42 property EndAngle: Single read GetEndAngle write SetEndAngle;
43
44 strict private FFdRadius: TSFFloat;
45 { 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). }
46 public property FdRadius: TSFFloat read FFdRadius;
47 { }
48 property Radius: Single read GetRadius write SetRadius;
49
50 strict private FFdStartAngle: TSFFloat;
51 { 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). }
52 public property FdStartAngle: TSFFloat read FFdStartAngle;
53 { }
54 property StartAngle: Single read GetStartAngle write SetStartAngle;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TArc2DNode ----------------------------------------------- }
61
62 function TArc2DNode.GetEndAngle: Single;
63 begin
64 Result := FdEndAngle.Value;
65 end;
66
67 procedure TArc2DNode.SetEndAngle(const Value: Single);
68 begin
69 FdEndAngle.Send(Value);
70 end;
71
72 function TArc2DNode.GetRadius: Single;
73 begin
74 Result := FdRadius.Value;
75 end;
76
77 procedure TArc2DNode.SetRadius(const Value: Single);
78 begin
79 FdRadius.Send(Value);
80 end;
81
82 function TArc2DNode.GetStartAngle: Single;
83 begin
84 Result := FdStartAngle.Value;
85 end;
86
87 procedure TArc2DNode.SetStartAngle(const Value: Single);
88 begin
89 FdStartAngle.Send(Value);
90 end;
91
92 class function TArc2DNode.ClassX3DType: String;
93 begin
94 Result := 'Arc2D';
95 end;
96
97 procedure TArc2DNode.CreateNode;
98 begin
99 inherited;
100
101 FFdEndAngle := TSFFloat.Create(Self, False, 'endAngle', Pi/2);
102 FdEndAngle.ChangeAlways := chGeometry;
103 FdEndAngle.Angle := true;
104 AddField(FFdEndAngle);
105
106 FFdRadius := TSFFloat.Create(Self, False, 'radius', 1);
107 FdRadius.ChangeAlways := chGeometry;
108 FdRadius.MustBeNonnegative := true;
109 AddField(FFdRadius);
110
111 FFdStartAngle := TSFFloat.Create(Self, False, 'startAngle', 0);
112 FdStartAngle.ChangeAlways := chGeometry;
113 FdStartAngle.Angle := true;
114 AddField(FFdStartAngle);
115 end;
116
117 {$endif read_implementation}