| 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 GetGeoCenter: TVector3Double; |
| 28 |
procedure SetGeoCenter(const Value: TVector3Double); |
| 29 |
function GetRotation: TVector4; |
| 30 |
procedure SetRotation(const Value: TVector4); |
| 31 |
function GetScale: TVector3; |
| 32 |
procedure SetScale(const Value: TVector3); |
| 33 |
function GetScaleOrientation: TVector4; |
| 34 |
procedure SetScaleOrientation(const Value: TVector4); |
| 35 |
function GetTranslation: TVector3; |
| 36 |
procedure SetTranslation(const Value: TVector3); |
| 37 |
function GetGeoOrigin: TGeoOriginNode; |
| 38 |
procedure SetGeoOrigin(const Value: TGeoOriginNode); |
| 39 |
public |
| 40 |
{ Create node fields and events. } |
| 41 |
procedure CreateNode; override; |
| 42 |
class function ClassX3DType: String; override; |
| 43 |
|
| 44 |
strict private FFdGeoCenter: TSFVec3d; |
| 45 |
{ Internal wrapper for property @code(GeoCenter). This wrapper API may change, we advise to access simpler @code(GeoCenter) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdGeoCenter: TSFVec3d read FFdGeoCenter; |
| 47 |
{ } |
| 48 |
property GeoCenter: TVector3Double read GetGeoCenter write SetGeoCenter; |
| 49 |
|
| 50 |
strict private FFdRotation: TSFRotation; |
| 51 |
{ Internal wrapper for property @code(Rotation). This wrapper API may change, we advise to access simpler @code(Rotation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdRotation: TSFRotation read FFdRotation; |
| 53 |
{ } |
| 54 |
property Rotation: TVector4 read GetRotation write SetRotation; |
| 55 |
|
| 56 |
strict private FFdScale: TSFVec3f; |
| 57 |
{ Internal wrapper for property @code(Scale). This wrapper API may change, we advise to access simpler @code(Scale) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 58 |
public property FdScale: TSFVec3f read FFdScale; |
| 59 |
{ } |
| 60 |
property Scale: TVector3 read GetScale write SetScale; |
| 61 |
|
| 62 |
strict private FFdScaleOrientation: TSFRotation; |
| 63 |
{ Internal wrapper for property @code(ScaleOrientation). This wrapper API may change, we advise to access simpler @code(ScaleOrientation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 64 |
public property FdScaleOrientation: TSFRotation read FFdScaleOrientation; |
| 65 |
{ } |
| 66 |
property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation; |
| 67 |
|
| 68 |
strict private FFdTranslation: TSFVec3f; |
| 69 |
{ Internal wrapper for property @code(Translation). This wrapper API may change, we advise to access simpler @code(Translation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 70 |
public property FdTranslation: TSFVec3f read FFdTranslation; |
| 71 |
{ } |
| 72 |
property Translation: TVector3 read GetTranslation write SetTranslation; |
| 73 |
|
| 74 |
strict private FFdGeoOrigin: TSFNode; |
| 75 |
{ Internal wrapper for property @code(GeoOrigin). This wrapper API may change, we advise to access simpler @code(GeoOrigin) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 76 |
public property FdGeoOrigin: TSFNode read FFdGeoOrigin; |
| 77 |
{ } |
| 78 |
property GeoOrigin: TGeoOriginNode read GetGeoOrigin write SetGeoOrigin; |
| 79 |
|
| 80 |
strict private FFdGeoSystem: TMFString; |
| 81 |
{ Internal wrapper for property @code(GeoSystem). This wrapper API may change, we advise to access simpler @code(GeoSystem) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 82 |
public property FdGeoSystem: TMFString read FFdGeoSystem; |
| 83 |
{ } |
| 84 |
procedure SetGeoSystem(const Value: array of string); overload; |
| 85 |
{ } |
| 86 |
procedure SetGeoSystem(const Value: TCastleStringList); overload; |
| 87 |
|
| 88 |
{$endif read_interface} |
| 89 |
|
| 90 |
{$ifdef read_implementation} |
| 91 |
|
| 92 |
{ TGeoTransformNode ----------------------------------------------- } |
| 93 |
|
| 94 |
function TGeoTransformNode.GetGeoCenter: TVector3Double; |
| 95 |
begin |
| 96 |
Result := FdGeoCenter.Value; |
| 97 |
end; |
| 98 |
|
| 99 |
procedure TGeoTransformNode.SetGeoCenter(const Value: TVector3Double); |
| 100 |
begin |
| 101 |
FdGeoCenter.Send(Value); |
| 102 |
end; |
| 103 |
|
| 104 |
function TGeoTransformNode.GetRotation: TVector4; |
| 105 |
begin |
| 106 |
Result := FdRotation.Value; |
| 107 |
end; |
| 108 |
|
| 109 |
procedure TGeoTransformNode.SetRotation(const Value: TVector4); |
| 110 |
begin |
| 111 |
FdRotation.Send(Value); |
| 112 |
end; |
| 113 |
|
| 114 |
function TGeoTransformNode.GetScale: TVector3; |
| 115 |
begin |
| 116 |
Result := FdScale.Value; |
| 117 |
end; |
| 118 |
|
| 119 |
procedure TGeoTransformNode.SetScale(const Value: TVector3); |
| 120 |
begin |
| 121 |
FdScale.Send(Value); |
| 122 |
end; |
| 123 |
|
| 124 |
function TGeoTransformNode.GetScaleOrientation: TVector4; |
| 125 |
begin |
| 126 |
Result := FdScaleOrientation.Value; |
| 127 |
end; |
| 128 |
|
| 129 |
procedure TGeoTransformNode.SetScaleOrientation(const Value: TVector4); |
| 130 |
begin |
| 131 |
FdScaleOrientation.Send(Value); |
| 132 |
end; |
| 133 |
|
| 134 |
function TGeoTransformNode.GetTranslation: TVector3; |
| 135 |
begin |
| 136 |
Result := FdTranslation.Value; |
| 137 |
end; |
| 138 |
|
| 139 |
procedure TGeoTransformNode.SetTranslation(const Value: TVector3); |
| 140 |
begin |
| 141 |
FdTranslation.Send(Value); |
| 142 |
end; |
| 143 |
|
| 144 |
function TGeoTransformNode.GetGeoOrigin: TGeoOriginNode; |
| 145 |
begin |
| 146 |
if FdGeoOrigin.Value is TGeoOriginNode then |
| 147 |
Result := TGeoOriginNode(FdGeoOrigin.Value) |
| 148 |
else |
| 149 |
Result := nil; |
| 150 |
end; |
| 151 |
|
| 152 |
procedure TGeoTransformNode.SetGeoOrigin(const Value: TGeoOriginNode); |
| 153 |
begin |
| 154 |
FdGeoOrigin.Send(Value); |
| 155 |
end; |
| 156 |
|
| 157 |
procedure TGeoTransformNode.SetGeoSystem(const Value: array of string); |
| 158 |
begin |
| 159 |
FdGeoSystem.Send(Value); |
| 160 |
end; |
| 161 |
|
| 162 |
procedure TGeoTransformNode.SetGeoSystem(const Value: TCastleStringList); |
| 163 |
begin |
| 164 |
FdGeoSystem.Send(Value); |
| 165 |
end; |
| 166 |
|
| 167 |
class function TGeoTransformNode.ClassX3DType: String; |
| 168 |
begin |
| 169 |
Result := 'GeoTransform'; |
| 170 |
end; |
| 171 |
|
| 172 |
procedure TGeoTransformNode.CreateNode; |
| 173 |
begin |
| 174 |
inherited; |
| 175 |
|
| 176 |
FFdGeoCenter := TSFVec3d.Create(Self, True, 'geoCenter', Vector3Double(0, 0, 0)); |
| 177 |
FdGeoCenter.ChangeAlways := chVisibleNonGeometry; |
| 178 |
AddField(FFdGeoCenter); |
| 179 |
|
| 180 |
FFdRotation := TSFRotation.Create(Self, True, 'rotation', Vector3(0, 0, 1), 0); |
| 181 |
FdRotation.ChangeAlways := chVisibleNonGeometry; |
| 182 |
AddField(FFdRotation); |
| 183 |
|
| 184 |
FFdScale := TSFVec3f.Create(Self, True, 'scale', Vector3(1, 1, 1)); |
| 185 |
FdScale.ChangeAlways := chVisibleNonGeometry; |
| 186 |
AddField(FFdScale); |
| 187 |
|
| 188 |
FFdScaleOrientation := TSFRotation.Create(Self, True, 'scaleOrientation', Vector3(0, 0, 1), 0); |
| 189 |
FdScaleOrientation.ChangeAlways := chVisibleNonGeometry; |
| 190 |
AddField(FFdScaleOrientation); |
| 191 |
|
| 192 |
FFdTranslation := TSFVec3f.Create(Self, True, 'translation', Vector3(0, 0, 0)); |
| 193 |
FdTranslation.ChangeAlways := chVisibleNonGeometry; |
| 194 |
AddField(FFdTranslation); |
| 195 |
|
| 196 |
FFdGeoOrigin := TSFNode.Create(Self, False, 'geoOrigin', [TGeoOriginNode]); |
| 197 |
FdGeoOrigin.ChangeAlways := chVisibleNonGeometry; |
| 198 |
AddField(FFdGeoOrigin); |
| 199 |
|
| 200 |
FFdGeoSystem := TMFString.Create(Self, False, 'geoSystem', ['GD','WE']); |
| 201 |
FdGeoSystem.ChangeAlways := chVisibleNonGeometry; |
| 202 |
AddField(FFdGeoSystem); |
| 203 |
end; |
| 204 |
|
| 205 |
{$endif read_implementation} |