Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_shapehints_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 GetCreaseAngle: Single;
28 procedure SetCreaseAngle(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 FFdVertexOrdering: TSFEnum;
36 { Internal wrapper for property @code(VertexOrdering). This wrapper API may change, we advise to access simpler @code(VertexOrdering) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
37 public property FdVertexOrdering: TSFEnum read FFdVertexOrdering;
38
39 strict private FFdShapeType: TSFEnum;
40 { Internal wrapper for property @code(ShapeType). This wrapper API may change, we advise to access simpler @code(ShapeType) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
41 public property FdShapeType: TSFEnum read FFdShapeType;
42
43 strict private FFdFaceType: TSFEnum;
44 { Internal wrapper for property @code(FaceType). This wrapper API may change, we advise to access simpler @code(FaceType) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
45 public property FdFaceType: TSFEnum read FFdFaceType;
46
47 strict private FFdCreaseAngle: TSFFloat;
48 { Internal wrapper for property @code(CreaseAngle). This wrapper API may change, we advise to access simpler @code(CreaseAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
49 public property FdCreaseAngle: TSFFloat read FFdCreaseAngle;
50 { }
51 property CreaseAngle: Single read GetCreaseAngle write SetCreaseAngle;
52
53 {$endif read_interface}
54
55 {$ifdef read_implementation}
56
57 { TShapeHintsNode_1 ----------------------------------------------- }
58
59 function TShapeHintsNode_1.GetCreaseAngle: Single;
60 begin
61 Result := FdCreaseAngle.Value;
62 end;
63
64 procedure TShapeHintsNode_1.SetCreaseAngle(const Value: Single);
65 begin
66 FdCreaseAngle.Send(Value);
67 end;
68
69 class function TShapeHintsNode_1.ForVRMLVersion(const Version: TX3DVersion): Boolean;
70 begin
71 Result := Version.Major <= 1; // parse this node only in VRML 1.0 and Inventor files
72 end;
73
74 class function TShapeHintsNode_1.ClassX3DType: String;
75 begin
76 Result := 'ShapeHints';
77 end;
78
79 procedure TShapeHintsNode_1.CreateNode;
80 begin
81 inherited;
82
83 FFdVertexOrdering := TSFEnum.Create(Self, True, 'vertexOrdering', @VertexOrderingNames1, Ord(High(VertexOrderingNames1)) + 1, VERTORDER_UNKNOWN);
84 FdVertexOrdering.ChangeAlways := chVisibleVRML1State;
85 AddField(FFdVertexOrdering);
86
87 FFdShapeType := TSFEnum.Create(Self, True, 'shapeType', @ShapeTypeNames1, Ord(High(ShapeTypeNames1)) + 1, SHTYPE_UNKNOWN);
88 FdShapeType.ChangeAlways := chVisibleVRML1State;
89 AddField(FFdShapeType);
90
91 FFdFaceType := TSFEnum.Create(Self, True, 'faceType', @FaceTypeNames1, Ord(High(FaceTypeNames1)) + 1, FACETYPE_CONVEX);
92 FdFaceType.ChangeAlways := chVisibleVRML1State;
93 AddField(FFdFaceType);
94
95 FFdCreaseAngle := TSFFloat.Create(Self, True, 'creaseAngle', DefaultVRML1CreaseAngle);
96 FdCreaseAngle.ChangeAlways := chVisibleVRML1State;
97 FdCreaseAngle.Angle := true;
98 AddField(FFdCreaseAngle);
99 end;
100
101 {$endif read_implementation}