Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_rotationxyz_1.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 GetAngle: Single;
28 procedure SetAngle(const Value: Single);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33 class function ForVRMLVersion(const Version: TX3DVersion): Boolean; override;
34
35 strict private FFdAxis: TSFEnum;
36 { Internal wrapper for property @code(Axis). This wrapper API may change, we advise to access simpler @code(Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
37 public property FdAxis: TSFEnum read FFdAxis;
38
39 strict private FFdAngle: TSFFloat;
40 { Internal wrapper for property @code(Angle). This wrapper API may change, we advise to access simpler @code(Angle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
41 public property FdAngle: TSFFloat read FFdAngle;
42 { }
43 property Angle: Single read GetAngle write SetAngle;
44
45 {$endif read_interface}
46
47 {$ifdef read_implementation}
48
49 { TRotationXYZNode_1 ----------------------------------------------- }
50
51 function TRotationXYZNode_1.GetAngle: Single;
52 begin
53 Result := FdAngle.Value;
54 end;
55
56 procedure TRotationXYZNode_1.SetAngle(const Value: Single);
57 begin
58 FdAngle.Send(Value);
59 end;
60
61 class function TRotationXYZNode_1.ForVRMLVersion(const Version: TX3DVersion): Boolean;
62 begin
63 Result := Version.Major <= 1; // parse this node only in VRML 1.0 and Inventor files
64 end;
65
66 class function TRotationXYZNode_1.ClassX3DType: String;
67 begin
68 Result := 'RotationXYZ';
69 end;
70
71 procedure TRotationXYZNode_1.CreateNode;
72 begin
73 inherited;
74
75 FFdAxis := TSFEnum.Create(Self, True, 'axis', @AxisNames, Ord(High(AxisNames)) + 1, 0);
76 FdAxis.ChangeAlways := chEverything;
77 AddField(FFdAxis);
78
79 FFdAngle := TSFFloat.Create(Self, True, 'angle', 0);
80 FdAngle.ChangeAlways := chEverything;
81 FdAngle.Angle := true;
82 AddField(FFdAngle);
83 end;
84
85 {$endif read_implementation}