| 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 GetNormal: TAbstractNormalNode; |
| 30 |
procedure SetNormal(const Value: TAbstractNormalNode); |
| 31 |
function GetTexCoord: TAbstractTextureCoordinateNode; |
| 32 |
procedure SetTexCoord(const Value: TAbstractTextureCoordinateNode); |
| 33 |
function GetYScale: Single; |
| 34 |
procedure SetYScale(const Value: Single); |
| 35 |
function GetCcw: Boolean; |
| 36 |
procedure SetCcw(const Value: Boolean); |
| 37 |
function GetColorPerVertex: Boolean; |
| 38 |
procedure SetColorPerVertex(const Value: Boolean); |
| 39 |
function GetCreaseAngle: Double; |
| 40 |
procedure SetCreaseAngle(const Value: Double); |
| 41 |
function GetGeoGridOrigin: TVector3Double; |
| 42 |
procedure SetGeoGridOrigin(const Value: TVector3Double); |
| 43 |
function GetGeoOrigin: TGeoOriginNode; |
| 44 |
procedure SetGeoOrigin(const Value: TGeoOriginNode); |
| 45 |
function GetNormalPerVertex: Boolean; |
| 46 |
procedure SetNormalPerVertex(const Value: Boolean); |
| 47 |
function GetXDimension: Integer; |
| 48 |
procedure SetXDimension(const Value: Integer); |
| 49 |
function GetXSpacing: Double; |
| 50 |
procedure SetXSpacing(const Value: Double); |
| 51 |
function GetZDimension: Integer; |
| 52 |
procedure SetZDimension(const Value: Integer); |
| 53 |
function GetZSpacing: Double; |
| 54 |
procedure SetZSpacing(const Value: Double); |
| 55 |
public |
| 56 |
{ Create node fields and events. } |
| 57 |
procedure CreateNode; override; |
| 58 |
class function ClassX3DType: String; override; |
| 59 |
|
| 60 |
strict private FEventSet_height: TMFDoubleEvent; |
| 61 |
{ } |
| 62 |
public property EventSet_height: TMFDoubleEvent read FEventSet_height; |
| 63 |
|
| 64 |
strict private FFdColor: TSFNode; |
| 65 |
{ 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). } |
| 66 |
public property FdColor: TSFNode read FFdColor; |
| 67 |
{ } |
| 68 |
property Color: TAbstractColorNode read GetColor write SetColor; |
| 69 |
|
| 70 |
strict private FFdNormal: TSFNode; |
| 71 |
{ 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). } |
| 72 |
public property FdNormal: TSFNode read FFdNormal; |
| 73 |
{ } |
| 74 |
property Normal: TAbstractNormalNode read GetNormal write SetNormal; |
| 75 |
|
| 76 |
strict private FFdTexCoord: TSFNode; |
| 77 |
{ 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). } |
| 78 |
public property FdTexCoord: TSFNode read FFdTexCoord; |
| 79 |
{ } |
| 80 |
property TexCoord: TAbstractTextureCoordinateNode read GetTexCoord write SetTexCoord; |
| 81 |
|
| 82 |
strict private FFdYScale: TSFFloat; |
| 83 |
{ Internal wrapper for property @code(YScale). This wrapper API may change, we advise to access simpler @code(YScale) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 84 |
public property FdYScale: TSFFloat read FFdYScale; |
| 85 |
{ } |
| 86 |
property YScale: Single read GetYScale write SetYScale; |
| 87 |
|
| 88 |
strict private FFdCcw: TSFBool; |
| 89 |
{ 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). } |
| 90 |
public property FdCcw: TSFBool read FFdCcw; |
| 91 |
{ } |
| 92 |
property Ccw: Boolean read GetCcw write SetCcw; |
| 93 |
|
| 94 |
strict private FFdColorPerVertex: TSFBool; |
| 95 |
{ 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). } |
| 96 |
public property FdColorPerVertex: TSFBool read FFdColorPerVertex; |
| 97 |
{ } |
| 98 |
property ColorPerVertex: Boolean read GetColorPerVertex write SetColorPerVertex; |
| 99 |
|
| 100 |
strict private FFdCreaseAngle: TSFDouble; |
| 101 |
{ Internal wrapper for property @code(CreaseAngle). This wrapper API may change, we advise to access simpler @code(CreaseAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 102 |
public property FdCreaseAngle: TSFDouble read FFdCreaseAngle; |
| 103 |
{ } |
| 104 |
property CreaseAngle: Double read GetCreaseAngle write SetCreaseAngle; |
| 105 |
|
| 106 |
strict private FFdGeoGridOrigin: TSFVec3d; |
| 107 |
{ Internal wrapper for property @code(GeoGridOrigin). This wrapper API may change, we advise to access simpler @code(GeoGridOrigin) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 108 |
public property FdGeoGridOrigin: TSFVec3d read FFdGeoGridOrigin; |
| 109 |
{ } |
| 110 |
property GeoGridOrigin: TVector3Double read GetGeoGridOrigin write SetGeoGridOrigin; |
| 111 |
|
| 112 |
strict private FFdGeoOrigin: TSFNode; |
| 113 |
{ 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). } |
| 114 |
public property FdGeoOrigin: TSFNode read FFdGeoOrigin; |
| 115 |
{ } |
| 116 |
property GeoOrigin: TGeoOriginNode read GetGeoOrigin write SetGeoOrigin; |
| 117 |
|
| 118 |
strict private FFdGeoSystem: TMFString; |
| 119 |
{ 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). } |
| 120 |
public property FdGeoSystem: TMFString read FFdGeoSystem; |
| 121 |
{ } |
| 122 |
procedure SetGeoSystem(const Value: array of string); overload; |
| 123 |
{ } |
| 124 |
procedure SetGeoSystem(const Value: TCastleStringList); overload; |
| 125 |
|
| 126 |
strict private FFdHeight: TMFDouble; |
| 127 |
{ Internal wrapper for property @code(Height). This wrapper API may change, we advise to access simpler @code(Height) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 128 |
public property FdHeight: TMFDouble read FFdHeight; |
| 129 |
{ } |
| 130 |
procedure SetHeight(const Value: array of Double); overload; |
| 131 |
{ } |
| 132 |
procedure SetHeight(const Value: TDoubleList); overload; |
| 133 |
|
| 134 |
strict private FFdNormalPerVertex: TSFBool; |
| 135 |
{ 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). } |
| 136 |
public property FdNormalPerVertex: TSFBool read FFdNormalPerVertex; |
| 137 |
{ } |
| 138 |
property NormalPerVertex: Boolean read GetNormalPerVertex write SetNormalPerVertex; |
| 139 |
|
| 140 |
strict private FFdSolid: TSFBool; |
| 141 |
{ 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). } |
| 142 |
public property FdSolid: TSFBool read FFdSolid; |
| 143 |
|
| 144 |
strict private FFdXDimension: TSFInt32; |
| 145 |
{ Internal wrapper for property @code(XDimension). This wrapper API may change, we advise to access simpler @code(XDimension) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 146 |
public property FdXDimension: TSFInt32 read FFdXDimension; |
| 147 |
{ } |
| 148 |
property XDimension: Integer read GetXDimension write SetXDimension; |
| 149 |
|
| 150 |
strict private FFdXSpacing: TSFDouble; |
| 151 |
{ Internal wrapper for property @code(XSpacing). This wrapper API may change, we advise to access simpler @code(XSpacing) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 152 |
public property FdXSpacing: TSFDouble read FFdXSpacing; |
| 153 |
{ } |
| 154 |
property XSpacing: Double read GetXSpacing write SetXSpacing; |
| 155 |
|
| 156 |
strict private FFdZDimension: TSFInt32; |
| 157 |
{ Internal wrapper for property @code(ZDimension). This wrapper API may change, we advise to access simpler @code(ZDimension) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 158 |
public property FdZDimension: TSFInt32 read FFdZDimension; |
| 159 |
{ } |
| 160 |
property ZDimension: Integer read GetZDimension write SetZDimension; |
| 161 |
|
| 162 |
strict private FFdZSpacing: TSFDouble; |
| 163 |
{ Internal wrapper for property @code(ZSpacing). This wrapper API may change, we advise to access simpler @code(ZSpacing) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 164 |
public property FdZSpacing: TSFDouble read FFdZSpacing; |
| 165 |
{ } |
| 166 |
property ZSpacing: Double read GetZSpacing write SetZSpacing; |
| 167 |
|
| 168 |
{$endif read_interface} |
| 169 |
|
| 170 |
{$ifdef read_implementation} |
| 171 |
|
| 172 |
{ TGeoElevationGridNode ----------------------------------------------- } |
| 173 |
|
| 174 |
function TGeoElevationGridNode.GetColor: TAbstractColorNode; |
| 175 |
begin |
| 176 |
if FdColor.Value is TAbstractColorNode then |
| 177 |
Result := TAbstractColorNode(FdColor.Value) |
| 178 |
else |
| 179 |
Result := nil; |
| 180 |
end; |
| 181 |
|
| 182 |
procedure TGeoElevationGridNode.SetColor(const Value: TAbstractColorNode); |
| 183 |
begin |
| 184 |
FdColor.Send(Value); |
| 185 |
end; |
| 186 |
|
| 187 |
function TGeoElevationGridNode.GetNormal: TAbstractNormalNode; |
| 188 |
begin |
| 189 |
if FdNormal.Value is TAbstractNormalNode then |
| 190 |
Result := TAbstractNormalNode(FdNormal.Value) |
| 191 |
else |
| 192 |
Result := nil; |
| 193 |
end; |
| 194 |
|
| 195 |
procedure TGeoElevationGridNode.SetNormal(const Value: TAbstractNormalNode); |
| 196 |
begin |
| 197 |
FdNormal.Send(Value); |
| 198 |
end; |
| 199 |
|
| 200 |
function TGeoElevationGridNode.GetTexCoord: TAbstractTextureCoordinateNode; |
| 201 |
begin |
| 202 |
if FdTexCoord.Value is TAbstractTextureCoordinateNode then |
| 203 |
Result := TAbstractTextureCoordinateNode(FdTexCoord.Value) |
| 204 |
else |
| 205 |
Result := nil; |
| 206 |
end; |
| 207 |
|
| 208 |
procedure TGeoElevationGridNode.SetTexCoord(const Value: TAbstractTextureCoordinateNode); |
| 209 |
begin |
| 210 |
FdTexCoord.Send(Value); |
| 211 |
end; |
| 212 |
|
| 213 |
function TGeoElevationGridNode.GetYScale: Single; |
| 214 |
begin |
| 215 |
Result := FdYScale.Value; |
| 216 |
end; |
| 217 |
|
| 218 |
procedure TGeoElevationGridNode.SetYScale(const Value: Single); |
| 219 |
begin |
| 220 |
FdYScale.Send(Value); |
| 221 |
end; |
| 222 |
|
| 223 |
function TGeoElevationGridNode.GetCcw: Boolean; |
| 224 |
begin |
| 225 |
Result := FdCcw.Value; |
| 226 |
end; |
| 227 |
|
| 228 |
procedure TGeoElevationGridNode.SetCcw(const Value: Boolean); |
| 229 |
begin |
| 230 |
FdCcw.Send(Value); |
| 231 |
end; |
| 232 |
|
| 233 |
function TGeoElevationGridNode.GetColorPerVertex: Boolean; |
| 234 |
begin |
| 235 |
Result := FdColorPerVertex.Value; |
| 236 |
end; |
| 237 |
|
| 238 |
procedure TGeoElevationGridNode.SetColorPerVertex(const Value: Boolean); |
| 239 |
begin |
| 240 |
FdColorPerVertex.Send(Value); |
| 241 |
end; |
| 242 |
|
| 243 |
function TGeoElevationGridNode.GetCreaseAngle: Double; |
| 244 |
begin |
| 245 |
Result := FdCreaseAngle.Value; |
| 246 |
end; |
| 247 |
|
| 248 |
procedure TGeoElevationGridNode.SetCreaseAngle(const Value: Double); |
| 249 |
begin |
| 250 |
FdCreaseAngle.Send(Value); |
| 251 |
end; |
| 252 |
|
| 253 |
function TGeoElevationGridNode.GetGeoGridOrigin: TVector3Double; |
| 254 |
begin |
| 255 |
Result := FdGeoGridOrigin.Value; |
| 256 |
end; |
| 257 |
|
| 258 |
procedure TGeoElevationGridNode.SetGeoGridOrigin(const Value: TVector3Double); |
| 259 |
begin |
| 260 |
FdGeoGridOrigin.Send(Value); |
| 261 |
end; |
| 262 |
|
| 263 |
function TGeoElevationGridNode.GetGeoOrigin: TGeoOriginNode; |
| 264 |
begin |
| 265 |
if FdGeoOrigin.Value is TGeoOriginNode then |
| 266 |
Result := TGeoOriginNode(FdGeoOrigin.Value) |
| 267 |
else |
| 268 |
Result := nil; |
| 269 |
end; |
| 270 |
|
| 271 |
procedure TGeoElevationGridNode.SetGeoOrigin(const Value: TGeoOriginNode); |
| 272 |
begin |
| 273 |
FdGeoOrigin.Send(Value); |
| 274 |
end; |
| 275 |
|
| 276 |
procedure TGeoElevationGridNode.SetGeoSystem(const Value: array of string); |
| 277 |
begin |
| 278 |
FdGeoSystem.Send(Value); |
| 279 |
end; |
| 280 |
|
| 281 |
procedure TGeoElevationGridNode.SetGeoSystem(const Value: TCastleStringList); |
| 282 |
begin |
| 283 |
FdGeoSystem.Send(Value); |
| 284 |
end; |
| 285 |
|
| 286 |
procedure TGeoElevationGridNode.SetHeight(const Value: array of Double); |
| 287 |
begin |
| 288 |
FdHeight.Send(Value); |
| 289 |
end; |
| 290 |
|
| 291 |
procedure TGeoElevationGridNode.SetHeight(const Value: TDoubleList); |
| 292 |
begin |
| 293 |
FdHeight.Send(Value); |
| 294 |
end; |
| 295 |
|
| 296 |
function TGeoElevationGridNode.GetNormalPerVertex: Boolean; |
| 297 |
begin |
| 298 |
Result := FdNormalPerVertex.Value; |
| 299 |
end; |
| 300 |
|
| 301 |
procedure TGeoElevationGridNode.SetNormalPerVertex(const Value: Boolean); |
| 302 |
begin |
| 303 |
FdNormalPerVertex.Send(Value); |
| 304 |
end; |
| 305 |
|
| 306 |
function TGeoElevationGridNode.GetXDimension: Integer; |
| 307 |
begin |
| 308 |
Result := FdXDimension.Value; |
| 309 |
end; |
| 310 |
|
| 311 |
procedure TGeoElevationGridNode.SetXDimension(const Value: Integer); |
| 312 |
begin |
| 313 |
FdXDimension.Send(Value); |
| 314 |
end; |
| 315 |
|
| 316 |
function TGeoElevationGridNode.GetXSpacing: Double; |
| 317 |
begin |
| 318 |
Result := FdXSpacing.Value; |
| 319 |
end; |
| 320 |
|
| 321 |
procedure TGeoElevationGridNode.SetXSpacing(const Value: Double); |
| 322 |
begin |
| 323 |
FdXSpacing.Send(Value); |
| 324 |
end; |
| 325 |
|
| 326 |
function TGeoElevationGridNode.GetZDimension: Integer; |
| 327 |
begin |
| 328 |
Result := FdZDimension.Value; |
| 329 |
end; |
| 330 |
|
| 331 |
procedure TGeoElevationGridNode.SetZDimension(const Value: Integer); |
| 332 |
begin |
| 333 |
FdZDimension.Send(Value); |
| 334 |
end; |
| 335 |
|
| 336 |
function TGeoElevationGridNode.GetZSpacing: Double; |
| 337 |
begin |
| 338 |
Result := FdZSpacing.Value; |
| 339 |
end; |
| 340 |
|
| 341 |
procedure TGeoElevationGridNode.SetZSpacing(const Value: Double); |
| 342 |
begin |
| 343 |
FdZSpacing.Send(Value); |
| 344 |
end; |
| 345 |
|
| 346 |
class function TGeoElevationGridNode.ClassX3DType: String; |
| 347 |
begin |
| 348 |
Result := 'GeoElevationGrid'; |
| 349 |
end; |
| 350 |
|
| 351 |
procedure TGeoElevationGridNode.CreateNode; |
| 352 |
begin |
| 353 |
inherited; |
| 354 |
|
| 355 |
FEventSet_height := TMFDoubleEvent.Create(Self, 'set_height', true); |
| 356 |
AddEvent(FEventSet_height); |
| 357 |
|
| 358 |
FFdColor := TSFNode.Create(Self, True, 'color', [TAbstractColorNode]); |
| 359 |
FdColor.ChangeAlways := chGeometry; |
| 360 |
AddField(FFdColor); |
| 361 |
|
| 362 |
FFdNormal := TSFNode.Create(Self, True, 'normal', [TAbstractNormalNode]); |
| 363 |
FdNormal.ChangeAlways := chGeometry; |
| 364 |
AddField(FFdNormal); |
| 365 |
|
| 366 |
FFdTexCoord := TSFNode.Create(Self, True, 'texCoord', [TAbstractTextureCoordinateNode]); |
| 367 |
FdTexCoord.ChangeAlways := chGeometry; |
| 368 |
AddField(FFdTexCoord); |
| 369 |
|
| 370 |
FFdYScale := TSFFloat.Create(Self, True, 'yScale', 1.0); |
| 371 |
FdYScale.ChangeAlways := chGeometry; |
| 372 |
FdYScale.MustBeNonnegative := true; |
| 373 |
AddField(FFdYScale); |
| 374 |
|
| 375 |
FFdCcw := TSFBool.Create(Self, False, 'ccw', true); |
| 376 |
FdCcw.ChangeAlways := chGeometry; |
| 377 |
AddField(FFdCcw); |
| 378 |
|
| 379 |
FFdColorPerVertex := TSFBool.Create(Self, False, 'colorPerVertex', true); |
| 380 |
FdColorPerVertex.ChangeAlways := chGeometry; |
| 381 |
AddField(FFdColorPerVertex); |
| 382 |
|
| 383 |
FFdCreaseAngle := TSFDouble.Create(Self, False, 'creaseAngle', 0); |
| 384 |
FdCreaseAngle.ChangeAlways := chGeometry; |
| 385 |
FdCreaseAngle.Angle := true; |
| 386 |
AddField(FFdCreaseAngle); |
| 387 |
|
| 388 |
FFdGeoGridOrigin := TSFVec3d.Create(Self, False, 'geoGridOrigin', Vector3Double(0, 0, 0)); |
| 389 |
FdGeoGridOrigin.ChangeAlways := chGeometry; |
| 390 |
AddField(FFdGeoGridOrigin); |
| 391 |
|
| 392 |
FFdGeoOrigin := TSFNode.Create(Self, False, 'geoOrigin', [TGeoOriginNode]); |
| 393 |
FdGeoOrigin.ChangeAlways := chGeometry; |
| 394 |
AddField(FFdGeoOrigin); |
| 395 |
|
| 396 |
FFdGeoSystem := TMFString.Create(Self, False, 'geoSystem', ['GD','WE']); |
| 397 |
FdGeoSystem.ChangeAlways := chGeometry; |
| 398 |
AddField(FFdGeoSystem); |
| 399 |
|
| 400 |
FFdHeight := TMFDouble.Create(Self, False, 'height', [0, 0]); |
| 401 |
FdHeight.ChangeAlways := chGeometry; |
| 402 |
AddField(FFdHeight); |
| 403 |
|
| 404 |
FFdNormalPerVertex := TSFBool.Create(Self, False, 'normalPerVertex', true); |
| 405 |
FdNormalPerVertex.ChangeAlways := chGeometry; |
| 406 |
AddField(FFdNormalPerVertex); |
| 407 |
|
| 408 |
FFdSolid := TSFBool.Create(Self, False, 'solid', true); |
| 409 |
FdSolid.ChangeAlways := chGeometry; |
| 410 |
AddField(FFdSolid); |
| 411 |
|
| 412 |
FFdXDimension := TSFInt32.Create(Self, False, 'xDimension', 0); |
| 413 |
FdXDimension.ChangeAlways := chGeometry; |
| 414 |
FdXDimension.MustBeNonnegative := true; |
| 415 |
AddField(FFdXDimension); |
| 416 |
|
| 417 |
FFdXSpacing := TSFDouble.Create(Self, False, 'xSpacing', 1.0); |
| 418 |
FdXSpacing.ChangeAlways := chGeometry; |
| 419 |
AddField(FFdXSpacing); |
| 420 |
|
| 421 |
FFdZDimension := TSFInt32.Create(Self, False, 'zDimension', 0); |
| 422 |
FdZDimension.ChangeAlways := chGeometry; |
| 423 |
FdZDimension.MustBeNonnegative := true; |
| 424 |
AddField(FFdZDimension); |
| 425 |
|
| 426 |
FFdZSpacing := TSFDouble.Create(Self, False, 'zSpacing', 1.0); |
| 427 |
FdZSpacing.ChangeAlways := chGeometry; |
| 428 |
AddField(FFdZSpacing); |
| 429 |
end; |
| 430 |
|
| 431 |
{$endif read_implementation} |