Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_fillproperties.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 GetFilled: Boolean;
28 procedure SetFilled(const Value: Boolean);
29 function GetHatchColor: TCastleColorRGB;
30 procedure SetHatchColor(const Value: TCastleColorRGB);
31 function GetHatched: Boolean;
32 procedure SetHatched(const Value: Boolean);
33 function GetHatchStyle: Integer;
34 procedure SetHatchStyle(const Value: Integer);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdFilled: TSFBool;
41 { Internal wrapper for property @code(Filled). This wrapper API may change, we advise to access simpler @code(Filled) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdFilled: TSFBool read FFdFilled;
43 { }
44 property Filled: Boolean read GetFilled write SetFilled;
45
46 strict private FFdHatchColor: TSFColor;
47 { Internal wrapper for property @code(HatchColor). This wrapper API may change, we advise to access simpler @code(HatchColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdHatchColor: TSFColor read FFdHatchColor;
49 { }
50 property HatchColor: TCastleColorRGB read GetHatchColor write SetHatchColor;
51
52 strict private FFdHatched: TSFBool;
53 { Internal wrapper for property @code(Hatched). This wrapper API may change, we advise to access simpler @code(Hatched) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdHatched: TSFBool read FFdHatched;
55 { }
56 property Hatched: Boolean read GetHatched write SetHatched;
57
58 strict private FFdHatchStyle: TSFInt32;
59 { Internal wrapper for property @code(HatchStyle). This wrapper API may change, we advise to access simpler @code(HatchStyle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdHatchStyle: TSFInt32 read FFdHatchStyle;
61 { }
62 property HatchStyle: Integer read GetHatchStyle write SetHatchStyle;
63
64 {$endif read_interface}
65
66 {$ifdef read_implementation}
67
68 { TFillPropertiesNode ----------------------------------------------- }
69
70 function TFillPropertiesNode.GetFilled: Boolean;
71 begin
72 Result := FdFilled.Value;
73 end;
74
75 procedure TFillPropertiesNode.SetFilled(const Value: Boolean);
76 begin
77 FdFilled.Send(Value);
78 end;
79
80 function TFillPropertiesNode.GetHatchColor: TCastleColorRGB;
81 begin
82 Result := FdHatchColor.Value;
83 end;
84
85 procedure TFillPropertiesNode.SetHatchColor(const Value: TCastleColorRGB);
86 begin
87 FdHatchColor.Send(Value);
88 end;
89
90 function TFillPropertiesNode.GetHatched: Boolean;
91 begin
92 Result := FdHatched.Value;
93 end;
94
95 procedure TFillPropertiesNode.SetHatched(const Value: Boolean);
96 begin
97 FdHatched.Send(Value);
98 end;
99
100 function TFillPropertiesNode.GetHatchStyle: Integer;
101 begin
102 Result := FdHatchStyle.Value;
103 end;
104
105 procedure TFillPropertiesNode.SetHatchStyle(const Value: Integer);
106 begin
107 FdHatchStyle.Send(Value);
108 end;
109
110 class function TFillPropertiesNode.ClassX3DType: String;
111 begin
112 Result := 'FillProperties';
113 end;
114
115 procedure TFillPropertiesNode.CreateNode;
116 begin
117 inherited;
118
119 FFdFilled := TSFBool.Create(Self, True, 'filled', true);
120 FdFilled.ChangeAlways := chVisibleNonGeometry;
121 AddField(FFdFilled);
122
123 FFdHatchColor := TSFColor.Create(Self, True, 'hatchColor', Vector3(1, 1, 1));
124 FdHatchColor.ChangeAlways := chVisibleNonGeometry;
125 AddField(FFdHatchColor);
126
127 FFdHatched := TSFBool.Create(Self, True, 'hatched', true);
128 FdHatched.ChangeAlways := chVisibleNonGeometry;
129 AddField(FFdHatched);
130
131 FFdHatchStyle := TSFInt32.Create(Self, True, 'hatchStyle', 1);
132 FdHatchStyle.ChangeAlways := chVisibleNonGeometry;
133 FdHatchStyle.MustBeNonnegative := true;
134 AddField(FFdHatchStyle);
135
136 DefaultContainerField := 'fillProperties';
137 end;
138
139 {$endif read_implementation}