Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_nurbsswungsurface.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 GetProfileCurve: TAbstractNurbsControlCurveNode;
28 procedure SetProfileCurve(const Value: TAbstractNurbsControlCurveNode);
29 function GetTrajectoryCurve: TAbstractNurbsControlCurveNode;
30 procedure SetTrajectoryCurve(const Value: TAbstractNurbsControlCurveNode);
31 function GetCcw: Boolean;
32 procedure SetCcw(const Value: Boolean);
33 public
34 { Create node fields and events. }
35 procedure CreateNode; override;
36 class function ClassX3DType: String; override;
37
38 strict private FFdProfileCurve: TSFNode;
39 { Internal wrapper for property @code(ProfileCurve). This wrapper API may change, we advise to access simpler @code(ProfileCurve) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
40 public property FdProfileCurve: TSFNode read FFdProfileCurve;
41 { }
42 property ProfileCurve: TAbstractNurbsControlCurveNode read GetProfileCurve write SetProfileCurve;
43
44 strict private FFdTrajectoryCurve: TSFNode;
45 { Internal wrapper for property @code(TrajectoryCurve). This wrapper API may change, we advise to access simpler @code(TrajectoryCurve) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
46 public property FdTrajectoryCurve: TSFNode read FFdTrajectoryCurve;
47 { }
48 property TrajectoryCurve: TAbstractNurbsControlCurveNode read GetTrajectoryCurve write SetTrajectoryCurve;
49
50 strict private FFdCcw: TSFBool;
51 { Internal wrapper for property @code(Ccw). This wrapper API may change, we advise to access simpler @code(Ccw) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdCcw: TSFBool read FFdCcw;
53 { }
54 property Ccw: Boolean read GetCcw write SetCcw;
55
56 strict private FFdSolid: TSFBool;
57 { 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). }
58 public property FdSolid: TSFBool read FFdSolid;
59
60 {$endif read_interface}
61
62 {$ifdef read_implementation}
63
64 { TNurbsSwungSurfaceNode ----------------------------------------------- }
65
66 function TNurbsSwungSurfaceNode.GetProfileCurve: TAbstractNurbsControlCurveNode;
67 begin
68 if FdProfileCurve.Value is TAbstractNurbsControlCurveNode then
69 Result := TAbstractNurbsControlCurveNode(FdProfileCurve.Value)
70 else
71 Result := nil;
72 end;
73
74 procedure TNurbsSwungSurfaceNode.SetProfileCurve(const Value: TAbstractNurbsControlCurveNode);
75 begin
76 FdProfileCurve.Send(Value);
77 end;
78
79 function TNurbsSwungSurfaceNode.GetTrajectoryCurve: TAbstractNurbsControlCurveNode;
80 begin
81 if FdTrajectoryCurve.Value is TAbstractNurbsControlCurveNode then
82 Result := TAbstractNurbsControlCurveNode(FdTrajectoryCurve.Value)
83 else
84 Result := nil;
85 end;
86
87 procedure TNurbsSwungSurfaceNode.SetTrajectoryCurve(const Value: TAbstractNurbsControlCurveNode);
88 begin
89 FdTrajectoryCurve.Send(Value);
90 end;
91
92 function TNurbsSwungSurfaceNode.GetCcw: Boolean;
93 begin
94 Result := FdCcw.Value;
95 end;
96
97 procedure TNurbsSwungSurfaceNode.SetCcw(const Value: Boolean);
98 begin
99 FdCcw.Send(Value);
100 end;
101
102 class function TNurbsSwungSurfaceNode.ClassX3DType: String;
103 begin
104 Result := 'NurbsSwungSurface';
105 end;
106
107 procedure TNurbsSwungSurfaceNode.CreateNode;
108 begin
109 inherited;
110
111 FFdProfileCurve := TSFNode.Create(Self, True, 'profileCurve', [TAbstractNurbsControlCurveNode]);
112 FdProfileCurve.ChangeAlways := chGeometry;
113 AddField(FFdProfileCurve);
114
115 FFdTrajectoryCurve := TSFNode.Create(Self, True, 'trajectoryCurve', [TAbstractNurbsControlCurveNode]);
116 FdTrajectoryCurve.ChangeAlways := chGeometry;
117 AddField(FFdTrajectoryCurve);
118
119 FFdCcw := TSFBool.Create(Self, False, 'ccw', true);
120 FdCcw.ChangeAlways := chGeometry;
121 AddField(FFdCcw);
122
123 FFdSolid := TSFBool.Create(Self, False, 'solid', true);
124 FdSolid.ChangeAlways := chGeometry;
125 AddField(FFdSolid);
126 end;
127
128 {$endif read_implementation}