| 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 GetBackTexture: TAbstractTextureNode; |
| 28 |
procedure SetBackTexture(const Value: TAbstractTextureNode); |
| 29 |
function GetBottomTexture: TAbstractTextureNode; |
| 30 |
procedure SetBottomTexture(const Value: TAbstractTextureNode); |
| 31 |
function GetFrontTexture: TAbstractTextureNode; |
| 32 |
procedure SetFrontTexture(const Value: TAbstractTextureNode); |
| 33 |
function GetLeftTexture: TAbstractTextureNode; |
| 34 |
procedure SetLeftTexture(const Value: TAbstractTextureNode); |
| 35 |
function GetRightTexture: TAbstractTextureNode; |
| 36 |
procedure SetRightTexture(const Value: TAbstractTextureNode); |
| 37 |
function GetTopTexture: TAbstractTextureNode; |
| 38 |
procedure SetTopTexture(const Value: TAbstractTextureNode); |
| 39 |
public |
| 40 |
{ Create node fields and events. } |
| 41 |
procedure CreateNode; override; |
| 42 |
class function ClassX3DType: String; override; |
| 43 |
|
| 44 |
strict private FFdBackTexture: TSFNode; |
| 45 |
{ Internal wrapper for property @code(BackTexture). This wrapper API may change, we advise to access simpler @code(BackTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdBackTexture: TSFNode read FFdBackTexture; |
| 47 |
{ } |
| 48 |
property BackTexture: TAbstractTextureNode read GetBackTexture write SetBackTexture; |
| 49 |
|
| 50 |
strict private FFdBottomTexture: TSFNode; |
| 51 |
{ Internal wrapper for property @code(BottomTexture). This wrapper API may change, we advise to access simpler @code(BottomTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdBottomTexture: TSFNode read FFdBottomTexture; |
| 53 |
{ } |
| 54 |
property BottomTexture: TAbstractTextureNode read GetBottomTexture write SetBottomTexture; |
| 55 |
|
| 56 |
strict private FFdFrontTexture: TSFNode; |
| 57 |
{ Internal wrapper for property @code(FrontTexture). This wrapper API may change, we advise to access simpler @code(FrontTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 58 |
public property FdFrontTexture: TSFNode read FFdFrontTexture; |
| 59 |
{ } |
| 60 |
property FrontTexture: TAbstractTextureNode read GetFrontTexture write SetFrontTexture; |
| 61 |
|
| 62 |
strict private FFdLeftTexture: TSFNode; |
| 63 |
{ Internal wrapper for property @code(LeftTexture). This wrapper API may change, we advise to access simpler @code(LeftTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 64 |
public property FdLeftTexture: TSFNode read FFdLeftTexture; |
| 65 |
{ } |
| 66 |
property LeftTexture: TAbstractTextureNode read GetLeftTexture write SetLeftTexture; |
| 67 |
|
| 68 |
strict private FFdRightTexture: TSFNode; |
| 69 |
{ Internal wrapper for property @code(RightTexture). This wrapper API may change, we advise to access simpler @code(RightTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 70 |
public property FdRightTexture: TSFNode read FFdRightTexture; |
| 71 |
{ } |
| 72 |
property RightTexture: TAbstractTextureNode read GetRightTexture write SetRightTexture; |
| 73 |
|
| 74 |
strict private FFdTopTexture: TSFNode; |
| 75 |
{ Internal wrapper for property @code(TopTexture). This wrapper API may change, we advise to access simpler @code(TopTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 76 |
public property FdTopTexture: TSFNode read FFdTopTexture; |
| 77 |
{ } |
| 78 |
property TopTexture: TAbstractTextureNode read GetTopTexture write SetTopTexture; |
| 79 |
|
| 80 |
{$endif read_interface} |
| 81 |
|
| 82 |
{$ifdef read_implementation} |
| 83 |
|
| 84 |
{ TTextureBackgroundNode ----------------------------------------------- } |
| 85 |
|
| 86 |
function TTextureBackgroundNode.GetBackTexture: TAbstractTextureNode; |
| 87 |
begin |
| 88 |
if FdBackTexture.Value is TAbstractTextureNode then |
| 89 |
Result := TAbstractTextureNode(FdBackTexture.Value) |
| 90 |
else |
| 91 |
Result := nil; |
| 92 |
end; |
| 93 |
|
| 94 |
procedure TTextureBackgroundNode.SetBackTexture(const Value: TAbstractTextureNode); |
| 95 |
begin |
| 96 |
FdBackTexture.Send(Value); |
| 97 |
end; |
| 98 |
|
| 99 |
function TTextureBackgroundNode.GetBottomTexture: TAbstractTextureNode; |
| 100 |
begin |
| 101 |
if FdBottomTexture.Value is TAbstractTextureNode then |
| 102 |
Result := TAbstractTextureNode(FdBottomTexture.Value) |
| 103 |
else |
| 104 |
Result := nil; |
| 105 |
end; |
| 106 |
|
| 107 |
procedure TTextureBackgroundNode.SetBottomTexture(const Value: TAbstractTextureNode); |
| 108 |
begin |
| 109 |
FdBottomTexture.Send(Value); |
| 110 |
end; |
| 111 |
|
| 112 |
function TTextureBackgroundNode.GetFrontTexture: TAbstractTextureNode; |
| 113 |
begin |
| 114 |
if FdFrontTexture.Value is TAbstractTextureNode then |
| 115 |
Result := TAbstractTextureNode(FdFrontTexture.Value) |
| 116 |
else |
| 117 |
Result := nil; |
| 118 |
end; |
| 119 |
|
| 120 |
procedure TTextureBackgroundNode.SetFrontTexture(const Value: TAbstractTextureNode); |
| 121 |
begin |
| 122 |
FdFrontTexture.Send(Value); |
| 123 |
end; |
| 124 |
|
| 125 |
function TTextureBackgroundNode.GetLeftTexture: TAbstractTextureNode; |
| 126 |
begin |
| 127 |
if FdLeftTexture.Value is TAbstractTextureNode then |
| 128 |
Result := TAbstractTextureNode(FdLeftTexture.Value) |
| 129 |
else |
| 130 |
Result := nil; |
| 131 |
end; |
| 132 |
|
| 133 |
procedure TTextureBackgroundNode.SetLeftTexture(const Value: TAbstractTextureNode); |
| 134 |
begin |
| 135 |
FdLeftTexture.Send(Value); |
| 136 |
end; |
| 137 |
|
| 138 |
function TTextureBackgroundNode.GetRightTexture: TAbstractTextureNode; |
| 139 |
begin |
| 140 |
if FdRightTexture.Value is TAbstractTextureNode then |
| 141 |
Result := TAbstractTextureNode(FdRightTexture.Value) |
| 142 |
else |
| 143 |
Result := nil; |
| 144 |
end; |
| 145 |
|
| 146 |
procedure TTextureBackgroundNode.SetRightTexture(const Value: TAbstractTextureNode); |
| 147 |
begin |
| 148 |
FdRightTexture.Send(Value); |
| 149 |
end; |
| 150 |
|
| 151 |
function TTextureBackgroundNode.GetTopTexture: TAbstractTextureNode; |
| 152 |
begin |
| 153 |
if FdTopTexture.Value is TAbstractTextureNode then |
| 154 |
Result := TAbstractTextureNode(FdTopTexture.Value) |
| 155 |
else |
| 156 |
Result := nil; |
| 157 |
end; |
| 158 |
|
| 159 |
procedure TTextureBackgroundNode.SetTopTexture(const Value: TAbstractTextureNode); |
| 160 |
begin |
| 161 |
FdTopTexture.Send(Value); |
| 162 |
end; |
| 163 |
|
| 164 |
class function TTextureBackgroundNode.ClassX3DType: String; |
| 165 |
begin |
| 166 |
Result := 'TextureBackground'; |
| 167 |
end; |
| 168 |
|
| 169 |
procedure TTextureBackgroundNode.CreateNode; |
| 170 |
begin |
| 171 |
inherited; |
| 172 |
|
| 173 |
FFdBackTexture := TSFNode.Create(Self, True, 'backTexture', [TAbstractTextureNode]); |
| 174 |
FdBackTexture.ChangeAlways := chVisibleNonGeometry; |
| 175 |
AddField(FFdBackTexture); |
| 176 |
|
| 177 |
FFdBottomTexture := TSFNode.Create(Self, True, 'bottomTexture', [TAbstractTextureNode]); |
| 178 |
FdBottomTexture.ChangeAlways := chVisibleNonGeometry; |
| 179 |
AddField(FFdBottomTexture); |
| 180 |
|
| 181 |
FFdFrontTexture := TSFNode.Create(Self, True, 'frontTexture', [TAbstractTextureNode]); |
| 182 |
FdFrontTexture.ChangeAlways := chVisibleNonGeometry; |
| 183 |
AddField(FFdFrontTexture); |
| 184 |
|
| 185 |
FFdLeftTexture := TSFNode.Create(Self, True, 'leftTexture', [TAbstractTextureNode]); |
| 186 |
FdLeftTexture.ChangeAlways := chVisibleNonGeometry; |
| 187 |
AddField(FFdLeftTexture); |
| 188 |
|
| 189 |
FFdRightTexture := TSFNode.Create(Self, True, 'rightTexture', [TAbstractTextureNode]); |
| 190 |
FdRightTexture.ChangeAlways := chVisibleNonGeometry; |
| 191 |
AddField(FFdRightTexture); |
| 192 |
|
| 193 |
FFdTopTexture := TSFNode.Create(Self, True, 'topTexture', [TAbstractTextureNode]); |
| 194 |
FdTopTexture.ChangeAlways := chVisibleNonGeometry; |
| 195 |
AddField(FFdTopTexture); |
| 196 |
end; |
| 197 |
|
| 198 |
{$endif read_implementation} |