| 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 GetColor: TAbstractColorNode; |
| 28 |
procedure SetColor(const Value: TAbstractColorNode); |
| 29 |
function GetCoord: TAbstractCoordinateNode; |
| 30 |
procedure SetCoord(const Value: TAbstractCoordinateNode); |
| 31 |
{$ifndef CASTLE_SLIM_NODES} |
| 32 |
function GetFogCoord: TFogCoordinateNode; |
| 33 |
procedure SetFogCoord(const Value: TFogCoordinateNode); |
| 34 |
{$endif not CASTLE_SLIM_NODES} |
| 35 |
function GetNormal: TAbstractNormalNode; |
| 36 |
procedure SetNormal(const Value: TAbstractNormalNode); |
| 37 |
function GetTangent: TTangentNode; |
| 38 |
procedure SetTangent(const Value: TTangentNode); |
| 39 |
function GetTexCoord: TAbstractTextureCoordinateNode; |
| 40 |
procedure SetTexCoord(const Value: TAbstractTextureCoordinateNode); |
| 41 |
function GetCcw: Boolean; |
| 42 |
procedure SetCcw(const Value: Boolean); |
| 43 |
function GetColorPerVertex: Boolean; |
| 44 |
procedure SetColorPerVertex(const Value: Boolean); |
| 45 |
function GetNormalPerVertex: Boolean; |
| 46 |
procedure SetNormalPerVertex(const Value: Boolean); |
| 47 |
public |
| 48 |
{ Create node fields and events. } |
| 49 |
procedure CreateNode; override; |
| 50 |
class function ClassX3DType: String; override; |
| 51 |
|
| 52 |
{$ifndef CASTLE_SLIM_NODES} |
| 53 |
strict private FFdAttrib: TMFNode; |
| 54 |
{ Internal wrapper for property @code(Attrib). This wrapper API may change, we advise to access simpler @code(Attrib) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 55 |
public property FdAttrib: TMFNode read FFdAttrib; |
| 56 |
{$endif not CASTLE_SLIM_NODES} |
| 57 |
{$ifndef CASTLE_SLIM_NODES} |
| 58 |
{ } |
| 59 |
procedure SetAttrib(const Value: array of TAbstractVertexAttributeNode); |
| 60 |
{$endif not CASTLE_SLIM_NODES} |
| 61 |
|
| 62 |
strict private FFdColor: TSFNode; |
| 63 |
{ Internal wrapper for property @code(Color). This wrapper API may change, we advise to access simpler @code(Color) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 64 |
public property FdColor: TSFNode read FFdColor; |
| 65 |
{ } |
| 66 |
property Color: TAbstractColorNode read GetColor write SetColor; |
| 67 |
|
| 68 |
strict private FFdCoord: TSFNode; |
| 69 |
{ Internal wrapper for property @code(Coord). This wrapper API may change, we advise to access simpler @code(Coord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 70 |
public property FdCoord: TSFNode read FFdCoord; |
| 71 |
{ } |
| 72 |
property Coord: TAbstractCoordinateNode read GetCoord write SetCoord; |
| 73 |
|
| 74 |
{$ifndef CASTLE_SLIM_NODES} |
| 75 |
strict private FFdFogCoord: TSFNode; |
| 76 |
{ Internal wrapper for property @code(FogCoord). This wrapper API may change, we advise to access simpler @code(FogCoord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 77 |
public property FdFogCoord: TSFNode read FFdFogCoord; |
| 78 |
{$endif not CASTLE_SLIM_NODES} |
| 79 |
{$ifndef CASTLE_SLIM_NODES} |
| 80 |
{ } |
| 81 |
property FogCoord: TFogCoordinateNode read GetFogCoord write SetFogCoord; |
| 82 |
{$endif not CASTLE_SLIM_NODES} |
| 83 |
|
| 84 |
strict private FFdNormal: TSFNode; |
| 85 |
{ Internal wrapper for property @code(Normal). This wrapper API may change, we advise to access simpler @code(Normal) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 86 |
public property FdNormal: TSFNode read FFdNormal; |
| 87 |
{ } |
| 88 |
property Normal: TAbstractNormalNode read GetNormal write SetNormal; |
| 89 |
|
| 90 |
strict private FFdTangent: TSFNode; |
| 91 |
{ Internal wrapper for property @code(Tangent). This wrapper API may change, we advise to access simpler @code(Tangent) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 92 |
public property FdTangent: TSFNode read FFdTangent; |
| 93 |
{ Tangent vectors describe the tangent coordinate-space, used by the bump mapping algorithm. If specified, the ordering of tangents should be the same as normals, i.e. they should follow the NormalPerVertex and such properties. } |
| 94 |
property Tangent: TTangentNode read GetTangent write SetTangent; |
| 95 |
|
| 96 |
strict private FFdTexCoord: TSFNode; |
| 97 |
{ Internal wrapper for property @code(TexCoord). This wrapper API may change, we advise to access simpler @code(TexCoord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 98 |
public property FdTexCoord: TSFNode read FFdTexCoord; |
| 99 |
{ } |
| 100 |
property TexCoord: TAbstractTextureCoordinateNode read GetTexCoord write SetTexCoord; |
| 101 |
|
| 102 |
strict private FFdCcw: TSFBool; |
| 103 |
{ Internal wrapper for property @code(Ccw). This wrapper API may change, we advise to access simpler @code(Ccw) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 104 |
public property FdCcw: TSFBool read FFdCcw; |
| 105 |
{ } |
| 106 |
property Ccw: Boolean read GetCcw write SetCcw; |
| 107 |
|
| 108 |
strict private FFdColorPerVertex: TSFBool; |
| 109 |
{ Internal wrapper for property @code(ColorPerVertex). This wrapper API may change, we advise to access simpler @code(ColorPerVertex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 110 |
public property FdColorPerVertex: TSFBool read FFdColorPerVertex; |
| 111 |
{ } |
| 112 |
property ColorPerVertex: Boolean read GetColorPerVertex write SetColorPerVertex; |
| 113 |
|
| 114 |
strict private FFdNormalPerVertex: TSFBool; |
| 115 |
{ Internal wrapper for property @code(NormalPerVertex). This wrapper API may change, we advise to access simpler @code(NormalPerVertex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 116 |
public property FdNormalPerVertex: TSFBool read FFdNormalPerVertex; |
| 117 |
{ } |
| 118 |
property NormalPerVertex: Boolean read GetNormalPerVertex write SetNormalPerVertex; |
| 119 |
|
| 120 |
strict private FFdSolid: TSFBool; |
| 121 |
{ Internal wrapper for property @code(Solid). This wrapper API may change, we advise to access simpler @code(Solid) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 122 |
public property FdSolid: TSFBool read FFdSolid; |
| 123 |
|
| 124 |
{$ifndef CASTLE_SLIM_NODES} |
| 125 |
strict private FFdRadianceTransfer: TMFVec3f; |
| 126 |
{ Internal wrapper for property @code(RadianceTransfer). This wrapper API may change, we advise to access simpler @code(RadianceTransfer) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 127 |
public property FdRadianceTransfer: TMFVec3f read FFdRadianceTransfer; |
| 128 |
{$endif not CASTLE_SLIM_NODES} |
| 129 |
{$ifndef CASTLE_SLIM_NODES} |
| 130 |
{ } |
| 131 |
procedure SetRadianceTransfer(const Value: array of TVector3); overload; |
| 132 |
{$endif not CASTLE_SLIM_NODES} |
| 133 |
{$ifndef CASTLE_SLIM_NODES} |
| 134 |
{ } |
| 135 |
procedure SetRadianceTransfer(const Value: TVector3List); overload; |
| 136 |
{$endif not CASTLE_SLIM_NODES} |
| 137 |
|
| 138 |
{$endif read_interface} |
| 139 |
|
| 140 |
{$ifdef read_implementation} |
| 141 |
|
| 142 |
{ TAbstractComposedGeometryNode ----------------------------------------------- } |
| 143 |
|
| 144 |
{$ifndef CASTLE_SLIM_NODES} |
| 145 |
procedure TAbstractComposedGeometryNode.SetAttrib(const Value: array of TAbstractVertexAttributeNode); |
| 146 |
var |
| 147 |
L: Integer; |
| 148 |
A: array of TX3DNode; |
| 149 |
begin |
| 150 |
L := High(Value) + 1; |
| 151 |
SetLength(A, L); |
| 152 |
if L > 0 then |
| 153 |
Move(Value[0], A[0], L * SizeOf(TAbstractVertexAttributeNode)); |
| 154 |
FdAttrib.Send(A); |
| 155 |
end; |
| 156 |
|
| 157 |
{$endif not CASTLE_SLIM_NODES} |
| 158 |
function TAbstractComposedGeometryNode.GetColor: TAbstractColorNode; |
| 159 |
begin |
| 160 |
if FdColor.Value is TAbstractColorNode then |
| 161 |
Result := TAbstractColorNode(FdColor.Value) |
| 162 |
else |
| 163 |
Result := nil; |
| 164 |
end; |
| 165 |
|
| 166 |
procedure TAbstractComposedGeometryNode.SetColor(const Value: TAbstractColorNode); |
| 167 |
begin |
| 168 |
FdColor.Send(Value); |
| 169 |
end; |
| 170 |
|
| 171 |
function TAbstractComposedGeometryNode.GetCoord: TAbstractCoordinateNode; |
| 172 |
begin |
| 173 |
if FdCoord.Value is TAbstractCoordinateNode then |
| 174 |
Result := TAbstractCoordinateNode(FdCoord.Value) |
| 175 |
else |
| 176 |
Result := nil; |
| 177 |
end; |
| 178 |
|
| 179 |
procedure TAbstractComposedGeometryNode.SetCoord(const Value: TAbstractCoordinateNode); |
| 180 |
begin |
| 181 |
FdCoord.Send(Value); |
| 182 |
end; |
| 183 |
|
| 184 |
{$ifndef CASTLE_SLIM_NODES} |
| 185 |
function TAbstractComposedGeometryNode.GetFogCoord: TFogCoordinateNode; |
| 186 |
begin |
| 187 |
if FdFogCoord.Value is TFogCoordinateNode then |
| 188 |
Result := TFogCoordinateNode(FdFogCoord.Value) |
| 189 |
else |
| 190 |
Result := nil; |
| 191 |
end; |
| 192 |
|
| 193 |
procedure TAbstractComposedGeometryNode.SetFogCoord(const Value: TFogCoordinateNode); |
| 194 |
begin |
| 195 |
FdFogCoord.Send(Value); |
| 196 |
end; |
| 197 |
|
| 198 |
{$endif not CASTLE_SLIM_NODES} |
| 199 |
function TAbstractComposedGeometryNode.GetNormal: TAbstractNormalNode; |
| 200 |
begin |
| 201 |
if FdNormal.Value is TAbstractNormalNode then |
| 202 |
Result := TAbstractNormalNode(FdNormal.Value) |
| 203 |
else |
| 204 |
Result := nil; |
| 205 |
end; |
| 206 |
|
| 207 |
procedure TAbstractComposedGeometryNode.SetNormal(const Value: TAbstractNormalNode); |
| 208 |
begin |
| 209 |
FdNormal.Send(Value); |
| 210 |
end; |
| 211 |
|
| 212 |
function TAbstractComposedGeometryNode.GetTangent: TTangentNode; |
| 213 |
begin |
| 214 |
if FdTangent.Value is TTangentNode then |
| 215 |
Result := TTangentNode(FdTangent.Value) |
| 216 |
else |
| 217 |
Result := nil; |
| 218 |
end; |
| 219 |
|
| 220 |
procedure TAbstractComposedGeometryNode.SetTangent(const Value: TTangentNode); |
| 221 |
begin |
| 222 |
FdTangent.Send(Value); |
| 223 |
end; |
| 224 |
|
| 225 |
function TAbstractComposedGeometryNode.GetTexCoord: TAbstractTextureCoordinateNode; |
| 226 |
begin |
| 227 |
if FdTexCoord.Value is TAbstractTextureCoordinateNode then |
| 228 |
Result := TAbstractTextureCoordinateNode(FdTexCoord.Value) |
| 229 |
else |
| 230 |
Result := nil; |
| 231 |
end; |
| 232 |
|
| 233 |
procedure TAbstractComposedGeometryNode.SetTexCoord(const Value: TAbstractTextureCoordinateNode); |
| 234 |
begin |
| 235 |
FdTexCoord.Send(Value); |
| 236 |
end; |
| 237 |
|
| 238 |
function TAbstractComposedGeometryNode.GetCcw: Boolean; |
| 239 |
begin |
| 240 |
Result := FdCcw.Value; |
| 241 |
end; |
| 242 |
|
| 243 |
procedure TAbstractComposedGeometryNode.SetCcw(const Value: Boolean); |
| 244 |
begin |
| 245 |
FdCcw.Send(Value); |
| 246 |
end; |
| 247 |
|
| 248 |
function TAbstractComposedGeometryNode.GetColorPerVertex: Boolean; |
| 249 |
begin |
| 250 |
Result := FdColorPerVertex.Value; |
| 251 |
end; |
| 252 |
|
| 253 |
procedure TAbstractComposedGeometryNode.SetColorPerVertex(const Value: Boolean); |
| 254 |
begin |
| 255 |
FdColorPerVertex.Send(Value); |
| 256 |
end; |
| 257 |
|
| 258 |
function TAbstractComposedGeometryNode.GetNormalPerVertex: Boolean; |
| 259 |
begin |
| 260 |
Result := FdNormalPerVertex.Value; |
| 261 |
end; |
| 262 |
|
| 263 |
procedure TAbstractComposedGeometryNode.SetNormalPerVertex(const Value: Boolean); |
| 264 |
begin |
| 265 |
FdNormalPerVertex.Send(Value); |
| 266 |
end; |
| 267 |
|
| 268 |
{$ifndef CASTLE_SLIM_NODES} |
| 269 |
procedure TAbstractComposedGeometryNode.SetRadianceTransfer(const Value: array of TVector3); |
| 270 |
begin |
| 271 |
FdRadianceTransfer.Send(Value); |
| 272 |
end; |
| 273 |
|
| 274 |
{$endif not CASTLE_SLIM_NODES} |
| 275 |
{$ifndef CASTLE_SLIM_NODES} |
| 276 |
procedure TAbstractComposedGeometryNode.SetRadianceTransfer(const Value: TVector3List); |
| 277 |
begin |
| 278 |
FdRadianceTransfer.Send(Value); |
| 279 |
end; |
| 280 |
|
| 281 |
{$endif not CASTLE_SLIM_NODES} |
| 282 |
class function TAbstractComposedGeometryNode.ClassX3DType: String; |
| 283 |
begin |
| 284 |
Result := 'X3DComposedGeometryNode'; |
| 285 |
end; |
| 286 |
|
| 287 |
procedure TAbstractComposedGeometryNode.CreateNode; |
| 288 |
begin |
| 289 |
inherited; |
| 290 |
|
| 291 |
{$ifndef CASTLE_SLIM_NODES} |
| 292 |
FFdAttrib := TMFNode.Create(Self, True, 'attrib', [TAbstractVertexAttributeNode]); |
| 293 |
FdAttrib.ChangeAlways := chGeometry; |
| 294 |
AddField(FFdAttrib); |
| 295 |
{$endif not CASTLE_SLIM_NODES} |
| 296 |
|
| 297 |
FFdColor := TSFNode.Create(Self, True, 'color', [TAbstractColorNode]); |
| 298 |
FdColor.ChangeAlways := chGeometry; |
| 299 |
FdColor.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations; |
| 300 |
AddField(FFdColor); |
| 301 |
|
| 302 |
FFdCoord := TSFNode.Create(Self, True, 'coord', [TAbstractCoordinateNode]); |
| 303 |
FdCoord.ChangeAlways := chGeometry; |
| 304 |
FdCoord.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations; |
| 305 |
AddField(FFdCoord); |
| 306 |
|
| 307 |
{$ifndef CASTLE_SLIM_NODES} |
| 308 |
FFdFogCoord := TSFNode.Create(Self, True, 'fogCoord', [TFogCoordinateNode]); |
| 309 |
FdFogCoord.ChangeAlways := chGeometry; |
| 310 |
AddField(FFdFogCoord); |
| 311 |
{$endif not CASTLE_SLIM_NODES} |
| 312 |
|
| 313 |
FFdNormal := TSFNode.Create(Self, True, 'normal', [TAbstractNormalNode]); |
| 314 |
FdNormal.ChangeAlways := chGeometry; |
| 315 |
FdNormal.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations; |
| 316 |
AddField(FFdNormal); |
| 317 |
|
| 318 |
FFdTangent := TSFNode.Create(Self, True, 'tangent', [TTangentNode]); |
| 319 |
FdTangent.ChangeAlways := chGeometry; |
| 320 |
FdTangent.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations; |
| 321 |
AddField(FFdTangent); |
| 322 |
|
| 323 |
FFdTexCoord := TSFNode.Create(Self, True, 'texCoord', [TAbstractTextureCoordinateNode]); |
| 324 |
FdTexCoord.ChangeAlways := chGeometry; |
| 325 |
FdTexCoord.OnBeforeValueChange := {$ifdef FPC}@{$endif}MoveShapeAssociations; |
| 326 |
AddField(FFdTexCoord); |
| 327 |
|
| 328 |
FFdCcw := TSFBool.Create(Self, False, 'ccw', true); |
| 329 |
FdCcw.ChangeAlways := chGeometry; |
| 330 |
AddField(FFdCcw); |
| 331 |
|
| 332 |
FFdColorPerVertex := TSFBool.Create(Self, False, 'colorPerVertex', true); |
| 333 |
FdColorPerVertex.ChangeAlways := chGeometry; |
| 334 |
AddField(FFdColorPerVertex); |
| 335 |
|
| 336 |
FFdNormalPerVertex := TSFBool.Create(Self, False, 'normalPerVertex', true); |
| 337 |
FdNormalPerVertex.ChangeAlways := chGeometry; |
| 338 |
AddField(FFdNormalPerVertex); |
| 339 |
|
| 340 |
FFdSolid := TSFBool.Create(Self, False, 'solid', true); |
| 341 |
FdSolid.ChangeAlways := chGeometry; |
| 342 |
AddField(FFdSolid); |
| 343 |
|
| 344 |
{$ifndef CASTLE_SLIM_NODES} |
| 345 |
FFdRadianceTransfer := TMFVec3f.Create(Self, True, 'radianceTransfer', []); |
| 346 |
FdRadianceTransfer.ChangeAlways := chGeometry; |
| 347 |
AddField(FFdRadianceTransfer); |
| 348 |
{$endif not CASTLE_SLIM_NODES} |
| 349 |
end; |
| 350 |
|
| 351 |
{$endif read_implementation} |