| 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 GetRepeatS: Boolean; |
| 28 |
procedure SetRepeatS(const Value: Boolean); |
| 29 |
function GetRepeatT: Boolean; |
| 30 |
procedure SetRepeatT(const Value: Boolean); |
| 31 |
function GetRepeatR: Boolean; |
| 32 |
procedure SetRepeatR(const Value: Boolean); |
| 33 |
function GetTextureProperties: TTexturePropertiesNode; |
| 34 |
procedure SetTextureProperties(const Value: TTexturePropertiesNode); |
| 35 |
public |
| 36 |
{ Create node fields and events. } |
| 37 |
procedure CreateNode; override; |
| 38 |
class function ClassX3DType: String; override; |
| 39 |
|
| 40 |
strict private FFdRepeatS: TSFBool; |
| 41 |
{ Internal wrapper for property @code(RepeatS). This wrapper API may change, we advise to access simpler @code(RepeatS) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 42 |
public property FdRepeatS: TSFBool read FFdRepeatS; |
| 43 |
{ } |
| 44 |
property RepeatS: Boolean read GetRepeatS write SetRepeatS; |
| 45 |
|
| 46 |
strict private FFdRepeatT: TSFBool; |
| 47 |
{ Internal wrapper for property @code(RepeatT). This wrapper API may change, we advise to access simpler @code(RepeatT) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 48 |
public property FdRepeatT: TSFBool read FFdRepeatT; |
| 49 |
{ } |
| 50 |
property RepeatT: Boolean read GetRepeatT write SetRepeatT; |
| 51 |
|
| 52 |
strict private FFdRepeatR: TSFBool; |
| 53 |
{ Internal wrapper for property @code(RepeatR). This wrapper API may change, we advise to access simpler @code(RepeatR) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 54 |
public property FdRepeatR: TSFBool read FFdRepeatR; |
| 55 |
{ } |
| 56 |
property RepeatR: Boolean read GetRepeatR write SetRepeatR; |
| 57 |
|
| 58 |
strict private FFdTextureProperties: TSFNode; |
| 59 |
{ Internal wrapper for property @code(TextureProperties). This wrapper API may change, we advise to access simpler @code(TextureProperties) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 60 |
public property FdTextureProperties: TSFNode read FFdTextureProperties; |
| 61 |
{ } |
| 62 |
property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties; |
| 63 |
|
| 64 |
{$endif read_interface} |
| 65 |
|
| 66 |
{$ifdef read_implementation} |
| 67 |
|
| 68 |
{ TAbstractTexture3DNode ----------------------------------------------- } |
| 69 |
|
| 70 |
function TAbstractTexture3DNode.GetRepeatS: Boolean; |
| 71 |
begin |
| 72 |
Result := FdRepeatS.Value; |
| 73 |
end; |
| 74 |
|
| 75 |
procedure TAbstractTexture3DNode.SetRepeatS(const Value: Boolean); |
| 76 |
begin |
| 77 |
FdRepeatS.Send(Value); |
| 78 |
end; |
| 79 |
|
| 80 |
function TAbstractTexture3DNode.GetRepeatT: Boolean; |
| 81 |
begin |
| 82 |
Result := FdRepeatT.Value; |
| 83 |
end; |
| 84 |
|
| 85 |
procedure TAbstractTexture3DNode.SetRepeatT(const Value: Boolean); |
| 86 |
begin |
| 87 |
FdRepeatT.Send(Value); |
| 88 |
end; |
| 89 |
|
| 90 |
function TAbstractTexture3DNode.GetRepeatR: Boolean; |
| 91 |
begin |
| 92 |
Result := FdRepeatR.Value; |
| 93 |
end; |
| 94 |
|
| 95 |
procedure TAbstractTexture3DNode.SetRepeatR(const Value: Boolean); |
| 96 |
begin |
| 97 |
FdRepeatR.Send(Value); |
| 98 |
end; |
| 99 |
|
| 100 |
function TAbstractTexture3DNode.GetTextureProperties: TTexturePropertiesNode; |
| 101 |
begin |
| 102 |
if FdTextureProperties.Value is TTexturePropertiesNode then |
| 103 |
Result := TTexturePropertiesNode(FdTextureProperties.Value) |
| 104 |
else |
| 105 |
Result := nil; |
| 106 |
end; |
| 107 |
|
| 108 |
procedure TAbstractTexture3DNode.SetTextureProperties(const Value: TTexturePropertiesNode); |
| 109 |
begin |
| 110 |
FdTextureProperties.Send(Value); |
| 111 |
end; |
| 112 |
|
| 113 |
class function TAbstractTexture3DNode.ClassX3DType: String; |
| 114 |
begin |
| 115 |
Result := 'X3DTexture3DNode'; |
| 116 |
end; |
| 117 |
|
| 118 |
procedure TAbstractTexture3DNode.CreateNode; |
| 119 |
begin |
| 120 |
inherited; |
| 121 |
|
| 122 |
FFdRepeatS := TSFBool.Create(Self, False, 'repeatS', false); |
| 123 |
FdRepeatS.ChangeAlways := chTextureRendererProperties; |
| 124 |
AddField(FFdRepeatS); |
| 125 |
|
| 126 |
FFdRepeatT := TSFBool.Create(Self, False, 'repeatT', false); |
| 127 |
FdRepeatT.ChangeAlways := chTextureRendererProperties; |
| 128 |
AddField(FFdRepeatT); |
| 129 |
|
| 130 |
FFdRepeatR := TSFBool.Create(Self, False, 'repeatR', false); |
| 131 |
FdRepeatR.ChangeAlways := chTextureRendererProperties; |
| 132 |
AddField(FFdRepeatR); |
| 133 |
|
| 134 |
FFdTextureProperties := TSFNode.Create(Self, False, 'textureProperties', [TTexturePropertiesNode]); |
| 135 |
FdTextureProperties.ChangeAlways := chTextureRendererProperties; |
| 136 |
AddField(FFdTextureProperties); |
| 137 |
end; |
| 138 |
|
| 139 |
{$endif read_implementation} |