Debian Codegraph @

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