| 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 |
public |
| 27 |
{ Create node fields and events. } |
| 28 |
procedure CreateNode; override; |
| 29 |
class function ClassX3DType: String; override; |
| 30 |
|
| 31 |
strict private FFdData: TMFNode; |
| 32 |
{ Internal wrapper for property @code(Data). This wrapper API may change, we advise to access simpler @code(Data) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 33 |
public property FdData: TMFNode read FFdData; |
| 34 |
{ } |
| 35 |
procedure SetData(const Value: array of TAbstractNode); |
| 36 |
|
| 37 |
strict private FFdSummary: TMFString; |
| 38 |
{ Internal wrapper for property @code(Summary). This wrapper API may change, we advise to access simpler @code(Summary) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 39 |
public property FdSummary: TMFString read FFdSummary; |
| 40 |
{ } |
| 41 |
procedure SetSummary(const Value: array of string); overload; |
| 42 |
{ } |
| 43 |
procedure SetSummary(const Value: TCastleStringList); overload; |
| 44 |
|
| 45 |
strict private FFdUrl: TMFString; |
| 46 |
{ Internal wrapper for property @code(Url). This wrapper API may change, we advise to access simpler @code(Url) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 47 |
public property FdUrl: TMFString read FFdUrl; |
| 48 |
{ } |
| 49 |
procedure SetUrl(const Value: array of string); overload; |
| 50 |
{ } |
| 51 |
procedure SetUrl(const Value: TCastleStringList); overload; |
| 52 |
|
| 53 |
{$endif read_interface} |
| 54 |
|
| 55 |
{$ifdef read_implementation} |
| 56 |
|
| 57 |
{ TGeoMetadataNode ----------------------------------------------- } |
| 58 |
|
| 59 |
procedure TGeoMetadataNode.SetData(const Value: array of TAbstractNode); |
| 60 |
var |
| 61 |
L: Integer; |
| 62 |
A: array of TX3DNode; |
| 63 |
begin |
| 64 |
L := High(Value) + 1; |
| 65 |
SetLength(A, L); |
| 66 |
if L > 0 then |
| 67 |
Move(Value[0], A[0], L * SizeOf(TAbstractNode)); |
| 68 |
FdData.Send(A); |
| 69 |
end; |
| 70 |
|
| 71 |
procedure TGeoMetadataNode.SetSummary(const Value: array of string); |
| 72 |
begin |
| 73 |
FdSummary.Send(Value); |
| 74 |
end; |
| 75 |
|
| 76 |
procedure TGeoMetadataNode.SetSummary(const Value: TCastleStringList); |
| 77 |
begin |
| 78 |
FdSummary.Send(Value); |
| 79 |
end; |
| 80 |
|
| 81 |
procedure TGeoMetadataNode.SetUrl(const Value: array of string); |
| 82 |
begin |
| 83 |
FdUrl.Send(Value); |
| 84 |
end; |
| 85 |
|
| 86 |
procedure TGeoMetadataNode.SetUrl(const Value: TCastleStringList); |
| 87 |
begin |
| 88 |
FdUrl.Send(Value); |
| 89 |
end; |
| 90 |
|
| 91 |
class function TGeoMetadataNode.ClassX3DType: String; |
| 92 |
begin |
| 93 |
Result := 'GeoMetadata'; |
| 94 |
end; |
| 95 |
|
| 96 |
procedure TGeoMetadataNode.CreateNode; |
| 97 |
begin |
| 98 |
inherited; |
| 99 |
|
| 100 |
FFdData := TMFNode.Create(Self, True, 'data', [TAbstractNode]); |
| 101 |
FdData.ChangeAlways := chNone; |
| 102 |
AddField(FFdData); |
| 103 |
|
| 104 |
FFdSummary := TMFString.Create(Self, True, 'summary', []); |
| 105 |
FdSummary.ChangeAlways := chNone; |
| 106 |
AddField(FFdSummary); |
| 107 |
|
| 108 |
FFdUrl := TMFString.Create(Self, True, 'url', []); |
| 109 |
FdUrl.ChangeAlways := chNone; |
| 110 |
AddField(FFdUrl); |
| 111 |
end; |
| 112 |
|
| 113 |
{$endif read_implementation} |