Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_nurbstrimmedsurface.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 public
27 { Create node fields and events. }
28 procedure CreateNode; override;
29 class function ClassX3DType: String; override;
30
31 strict private FEventAddTrimmingContour: TMFNodeEvent;
32 { }
33 public property EventAddTrimmingContour: TMFNodeEvent read FEventAddTrimmingContour;
34
35 strict private FEventRemoveTrimmingContour: TMFNodeEvent;
36 { }
37 public property EventRemoveTrimmingContour: TMFNodeEvent read FEventRemoveTrimmingContour;
38
39 strict private FFdTrimmingContour: TMFNode;
40 { Internal wrapper for property @code(TrimmingContour). This wrapper API may change, we advise to access simpler @code(TrimmingContour) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
41 public property FdTrimmingContour: TMFNode read FFdTrimmingContour;
42 { }
43 procedure SetTrimmingContour(const Value: array of TContour2DNode);
44
45 {$endif read_interface}
46
47 {$ifdef read_implementation}
48
49 { TNurbsTrimmedSurfaceNode ----------------------------------------------- }
50
51 procedure TNurbsTrimmedSurfaceNode.SetTrimmingContour(const Value: array of TContour2DNode);
52 var
53 L: Integer;
54 A: array of TX3DNode;
55 begin
56 L := High(Value) + 1;
57 SetLength(A, L);
58 if L > 0 then
59 Move(Value[0], A[0], L * SizeOf(TContour2DNode));
60 FdTrimmingContour.Send(A);
61 end;
62
63 class function TNurbsTrimmedSurfaceNode.ClassX3DType: String;
64 begin
65 Result := 'NurbsTrimmedSurface';
66 end;
67
68 procedure TNurbsTrimmedSurfaceNode.CreateNode;
69 begin
70 inherited;
71
72 FEventAddTrimmingContour := TMFNodeEvent.Create(Self, 'addTrimmingContour', true);
73 AddEvent(FEventAddTrimmingContour);
74
75 FEventRemoveTrimmingContour := TMFNodeEvent.Create(Self, 'removeTrimmingContour', true);
76 AddEvent(FEventRemoveTrimmingContour);
77
78 FFdTrimmingContour := TMFNode.Create(Self, True, 'trimmingContour', [TContour2DNode]);
79 FdTrimmingContour.ChangeAlways := chGeometry;
80 AddField(FFdTrimmingContour);
81 end;
82
83 {$endif read_implementation}