| 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 GetDescription: String; |
| 30 |
procedure SetDescription(const Value: String); |
| 31 |
function GetDisplayed: Boolean; |
| 32 |
procedure SetDisplayed(const Value: Boolean); |
| 33 |
function GetRetainUserOffsets: Boolean; |
| 34 |
procedure SetRetainUserOffsets(const Value: Boolean); |
| 35 |
function GetSize: TVector3; |
| 36 |
procedure SetSize(const Value: TVector3); |
| 37 |
public |
| 38 |
{ Create node fields and events. } |
| 39 |
procedure CreateNode; override; |
| 40 |
class function ClassX3DType: String; override; |
| 41 |
|
| 42 |
strict private FFdCenter: TSFVec3f; |
| 43 |
{ 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). } |
| 44 |
public property FdCenter: TSFVec3f read FFdCenter; |
| 45 |
{ } |
| 46 |
property Center: TVector3 read GetCenter write SetCenter; |
| 47 |
|
| 48 |
strict private FFdChildren: TMFNode; |
| 49 |
{ Internal wrapper for property @code(Children). This wrapper API may change, we advise to access simpler @code(Children) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 50 |
public property FdChildren: TMFNode read FFdChildren; |
| 51 |
{ } |
| 52 |
procedure SetChildren(const Value: array of TX3DNode); |
| 53 |
|
| 54 |
strict private FFdDescription: TSFString; |
| 55 |
{ Internal wrapper for property @code(Description). This wrapper API may change, we advise to access simpler @code(Description) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdDescription: TSFString read FFdDescription; |
| 57 |
{ } |
| 58 |
property Description: String read GetDescription write SetDescription; |
| 59 |
|
| 60 |
strict private FFdDisplayed: TSFBool; |
| 61 |
{ Internal wrapper for property @code(Displayed). This wrapper API may change, we advise to access simpler @code(Displayed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 62 |
public property FdDisplayed: TSFBool read FFdDisplayed; |
| 63 |
{ } |
| 64 |
property Displayed: Boolean read GetDisplayed write SetDisplayed; |
| 65 |
|
| 66 |
strict private FFdRetainUserOffsets: TSFBool; |
| 67 |
{ Internal wrapper for property @code(RetainUserOffsets). This wrapper API may change, we advise to access simpler @code(RetainUserOffsets) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 68 |
public property FdRetainUserOffsets: TSFBool read FFdRetainUserOffsets; |
| 69 |
{ } |
| 70 |
property RetainUserOffsets: Boolean read GetRetainUserOffsets write SetRetainUserOffsets; |
| 71 |
|
| 72 |
strict private FFdSize: TSFVec3f; |
| 73 |
{ Internal wrapper for property @code(Size). This wrapper API may change, we advise to access simpler @code(Size) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 74 |
public property FdSize: TSFVec3f read FFdSize; |
| 75 |
{ } |
| 76 |
property Size: TVector3 read GetSize write SetSize; |
| 77 |
|
| 78 |
{$endif read_interface} |
| 79 |
|
| 80 |
{$ifdef read_implementation} |
| 81 |
|
| 82 |
{ TViewpointGroupNode ----------------------------------------------- } |
| 83 |
|
| 84 |
function TViewpointGroupNode.GetCenter: TVector3; |
| 85 |
begin |
| 86 |
Result := FdCenter.Value; |
| 87 |
end; |
| 88 |
|
| 89 |
procedure TViewpointGroupNode.SetCenter(const Value: TVector3); |
| 90 |
begin |
| 91 |
FdCenter.Send(Value); |
| 92 |
end; |
| 93 |
|
| 94 |
procedure TViewpointGroupNode.SetChildren(const Value: array of TX3DNode); |
| 95 |
var |
| 96 |
L: Integer; |
| 97 |
A: array of TX3DNode; |
| 98 |
begin |
| 99 |
L := High(Value) + 1; |
| 100 |
SetLength(A, L); |
| 101 |
if L > 0 then |
| 102 |
Move(Value[0], A[0], L * SizeOf(TX3DNode)); |
| 103 |
FdChildren.Send(A); |
| 104 |
end; |
| 105 |
|
| 106 |
function TViewpointGroupNode.GetDescription: String; |
| 107 |
begin |
| 108 |
Result := FdDescription.Value; |
| 109 |
end; |
| 110 |
|
| 111 |
procedure TViewpointGroupNode.SetDescription(const Value: String); |
| 112 |
begin |
| 113 |
FdDescription.Send(Value); |
| 114 |
end; |
| 115 |
|
| 116 |
function TViewpointGroupNode.GetDisplayed: Boolean; |
| 117 |
begin |
| 118 |
Result := FdDisplayed.Value; |
| 119 |
end; |
| 120 |
|
| 121 |
procedure TViewpointGroupNode.SetDisplayed(const Value: Boolean); |
| 122 |
begin |
| 123 |
FdDisplayed.Send(Value); |
| 124 |
end; |
| 125 |
|
| 126 |
function TViewpointGroupNode.GetRetainUserOffsets: Boolean; |
| 127 |
begin |
| 128 |
Result := FdRetainUserOffsets.Value; |
| 129 |
end; |
| 130 |
|
| 131 |
procedure TViewpointGroupNode.SetRetainUserOffsets(const Value: Boolean); |
| 132 |
begin |
| 133 |
FdRetainUserOffsets.Send(Value); |
| 134 |
end; |
| 135 |
|
| 136 |
function TViewpointGroupNode.GetSize: TVector3; |
| 137 |
begin |
| 138 |
Result := FdSize.Value; |
| 139 |
end; |
| 140 |
|
| 141 |
procedure TViewpointGroupNode.SetSize(const Value: TVector3); |
| 142 |
begin |
| 143 |
FdSize.Send(Value); |
| 144 |
end; |
| 145 |
|
| 146 |
class function TViewpointGroupNode.ClassX3DType: String; |
| 147 |
begin |
| 148 |
Result := 'ViewpointGroup'; |
| 149 |
end; |
| 150 |
|
| 151 |
procedure TViewpointGroupNode.CreateNode; |
| 152 |
begin |
| 153 |
inherited; |
| 154 |
|
| 155 |
FFdCenter := TSFVec3f.Create(Self, True, 'center', Vector3(0, 0, 0)); |
| 156 |
FdCenter.ChangeAlways := chVisibleNonGeometry; |
| 157 |
AddField(FFdCenter); |
| 158 |
|
| 159 |
FFdChildren := TMFNode.Create(Self, True, 'children', [TAbstractViewpointNode, TViewpointGroupNode]); |
| 160 |
FdChildren.ChangeAlways := chVisibleNonGeometry; |
| 161 |
AddField(FFdChildren); |
| 162 |
|
| 163 |
FFdDescription := TSFString.Create(Self, True, 'description', ''); |
| 164 |
FdDescription.ChangeAlways := chNone; |
| 165 |
AddField(FFdDescription); |
| 166 |
|
| 167 |
FFdDisplayed := TSFBool.Create(Self, True, 'displayed', true); |
| 168 |
FdDisplayed.ChangeAlways := chVisibleNonGeometry; |
| 169 |
AddField(FFdDisplayed); |
| 170 |
|
| 171 |
FFdRetainUserOffsets := TSFBool.Create(Self, True, 'retainUserOffsets', false); |
| 172 |
FdRetainUserOffsets.ChangeAlways := chVisibleNonGeometry; |
| 173 |
AddField(FFdRetainUserOffsets); |
| 174 |
|
| 175 |
FFdSize := TSFVec3f.Create(Self, True, 'size', Vector3(0, 0, 0)); |
| 176 |
FdSize.ChangeAlways := chVisibleNonGeometry; |
| 177 |
AddField(FFdSize); |
| 178 |
end; |
| 179 |
|
| 180 |
{$endif read_implementation} |