Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_texture2transform_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 GetTranslation: TVector2;
28 procedure SetTranslation(const Value: TVector2);
29 function GetRotation: Single;
30 procedure SetRotation(const Value: Single);
31 function GetScaleFactor: TVector2;
32 procedure SetScaleFactor(const Value: TVector2);
33 function GetCenter: TVector2;
34 procedure SetCenter(const Value: TVector2);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39 class function ForVRMLVersion(const Version: TX3DVersion): Boolean; override;
40
41 strict private FFdTranslation: TSFVec2f;
42 { Internal wrapper for property @code(Translation). This wrapper API may change, we advise to access simpler @code(Translation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
43 public property FdTranslation: TSFVec2f read FFdTranslation;
44 { }
45 property Translation: TVector2 read GetTranslation write SetTranslation;
46
47 strict private FFdRotation: TSFFloat;
48 { Internal wrapper for property @code(Rotation). This wrapper API may change, we advise to access simpler @code(Rotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
49 public property FdRotation: TSFFloat read FFdRotation;
50 { }
51 property Rotation: Single read GetRotation write SetRotation;
52
53 strict private FFdScaleFactor: TSFVec2f;
54 { Internal wrapper for property @code(ScaleFactor). This wrapper API may change, we advise to access simpler @code(ScaleFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
55 public property FdScaleFactor: TSFVec2f read FFdScaleFactor;
56 { }
57 property ScaleFactor: TVector2 read GetScaleFactor write SetScaleFactor;
58
59 strict private FFdCenter: TSFVec2f;
60 { Internal wrapper for property @code(Center). This wrapper API may change, we advise to access simpler @code(Center) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
61 public property FdCenter: TSFVec2f read FFdCenter;
62 { }
63 property Center: TVector2 read GetCenter write SetCenter;
64
65 {$endif read_interface}
66
67 {$ifdef read_implementation}
68
69 { TTexture2TransformNode_1 ----------------------------------------------- }
70
71 function TTexture2TransformNode_1.GetTranslation: TVector2;
72 begin
73 Result := FdTranslation.Value;
74 end;
75
76 procedure TTexture2TransformNode_1.SetTranslation(const Value: TVector2);
77 begin
78 FdTranslation.Send(Value);
79 end;
80
81 function TTexture2TransformNode_1.GetRotation: Single;
82 begin
83 Result := FdRotation.Value;
84 end;
85
86 procedure TTexture2TransformNode_1.SetRotation(const Value: Single);
87 begin
88 FdRotation.Send(Value);
89 end;
90
91 function TTexture2TransformNode_1.GetScaleFactor: TVector2;
92 begin
93 Result := FdScaleFactor.Value;
94 end;
95
96 procedure TTexture2TransformNode_1.SetScaleFactor(const Value: TVector2);
97 begin
98 FdScaleFactor.Send(Value);
99 end;
100
101 function TTexture2TransformNode_1.GetCenter: TVector2;
102 begin
103 Result := FdCenter.Value;
104 end;
105
106 procedure TTexture2TransformNode_1.SetCenter(const Value: TVector2);
107 begin
108 FdCenter.Send(Value);
109 end;
110
111 class function TTexture2TransformNode_1.ForVRMLVersion(const Version: TX3DVersion): Boolean;
112 begin
113 Result := Version.Major <= 1; // parse this node only in VRML 1.0 and Inventor files
114 end;
115
116 class function TTexture2TransformNode_1.ClassX3DType: String;
117 begin
118 Result := 'Texture2Transform';
119 end;
120
121 procedure TTexture2TransformNode_1.CreateNode;
122 begin
123 inherited;
124
125 FFdTranslation := TSFVec2f.Create(Self, True, 'translation', Vector2(0, 0));
126 FdTranslation.ChangeAlways := chEverything;
127 AddField(FFdTranslation);
128
129 FFdRotation := TSFFloat.Create(Self, True, 'rotation', 0);
130 FdRotation.ChangeAlways := chEverything;
131 AddField(FFdRotation);
132
133 FFdScaleFactor := TSFVec2f.Create(Self, True, 'scaleFactor', Vector2(1, 1));
134 FdScaleFactor.ChangeAlways := chEverything;
135 AddField(FFdScaleFactor);
136
137 FFdCenter := TSFVec2f.Create(Self, True, 'center', Vector2(0, 0));
138 FdCenter.ChangeAlways := chEverything;
139 AddField(FFdCenter);
140 end;
141
142 {$endif read_implementation}