Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_texturetransform3d.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: TVector3;
28 procedure SetCenter(const Value: TVector3);
29 function GetRotation: TVector4;
30 procedure SetRotation(const Value: TVector4);
31 function GetScale: TVector3;
32 procedure SetScale(const Value: TVector3);
33 function GetTranslation: TVector3;
34 procedure SetTranslation(const Value: TVector3);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdCenter: TSFVec3f;
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: TSFVec3f read FFdCenter;
43 { }
44 property Center: TVector3 read GetCenter write SetCenter;
45
46 strict private FFdRotation: TSFRotation;
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: TSFRotation read FFdRotation;
49 { }
50 property Rotation: TVector4 read GetRotation write SetRotation;
51
52 strict private FFdScale: TSFVec3f;
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: TSFVec3f read FFdScale;
55 { }
56 property Scale: TVector3 read GetScale write SetScale;
57
58 strict private FFdTranslation: TSFVec3f;
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: TSFVec3f read FFdTranslation;
61 { }
62 property Translation: TVector3 read GetTranslation write SetTranslation;
63
64 {$endif read_interface}
65
66 {$ifdef read_implementation}
67
68 { TTextureTransform3DNode ----------------------------------------------- }
69
70 function TTextureTransform3DNode.GetCenter: TVector3;
71 begin
72 Result := FdCenter.Value;
73 end;
74
75 procedure TTextureTransform3DNode.SetCenter(const Value: TVector3);
76 begin
77 FdCenter.Send(Value);
78 end;
79
80 function TTextureTransform3DNode.GetRotation: TVector4;
81 begin
82 Result := FdRotation.Value;
83 end;
84
85 procedure TTextureTransform3DNode.SetRotation(const Value: TVector4);
86 begin
87 FdRotation.Send(Value);
88 end;
89
90 function TTextureTransform3DNode.GetScale: TVector3;
91 begin
92 Result := FdScale.Value;
93 end;
94
95 procedure TTextureTransform3DNode.SetScale(const Value: TVector3);
96 begin
97 FdScale.Send(Value);
98 end;
99
100 function TTextureTransform3DNode.GetTranslation: TVector3;
101 begin
102 Result := FdTranslation.Value;
103 end;
104
105 procedure TTextureTransform3DNode.SetTranslation(const Value: TVector3);
106 begin
107 FdTranslation.Send(Value);
108 end;
109
110 class function TTextureTransform3DNode.ClassX3DType: String;
111 begin
112 Result := 'TextureTransform3D';
113 end;
114
115 procedure TTextureTransform3DNode.CreateNode;
116 begin
117 inherited;
118
119 FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0));
120 FdCenter.ChangeAlways := chTextureTransform;
121 AddField(FFdCenter);
122
123 FFdRotation := TSFRotation.Create(Self, True, 'rotation', Vector3(0, 0, 1), 0);
124 FdRotation.ChangeAlways := chTextureTransform;
125 AddField(FFdRotation);
126
127 FFdScale := TSFVec3f.Create(Self, True, 'scale', Vector3(1, 1, 1));
128 FdScale.ChangeAlways := chTextureTransform;
129 AddField(FFdScale);
130
131 FFdTranslation := TSFVec3f.Create(Self, True, 'translation', Vector3(0, 0, 0));
132 FdTranslation.ChangeAlways := chTextureTransform;
133 AddField(FFdTranslation);
134 end;
135
136 {$endif read_implementation}