| 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 GetDescription: String; |
| 28 |
procedure SetDescription(const Value: String); |
| 29 |
function GetNameField: String; |
| 30 |
procedure SetNameField(const Value: String); |
| 31 |
function GetWeight: Single; |
| 32 |
procedure SetWeight(const Value: Single); |
| 33 |
public |
| 34 |
{ Create node fields and events. } |
| 35 |
procedure CreateNode; override; |
| 36 |
class function ClassX3DType: String; override; |
| 37 |
|
| 38 |
strict private FFdCoordIndex: TMFInt32; |
| 39 |
{ Internal wrapper for property @code(CoordIndex). This wrapper API may change, we advise to access simpler @code(CoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 40 |
public property FdCoordIndex: TMFInt32 read FFdCoordIndex; |
| 41 |
{ } |
| 42 |
procedure SetCoordIndex(const Value: array of Int32); overload; |
| 43 |
{ } |
| 44 |
procedure SetCoordIndex(const Value: TInt32List); overload; |
| 45 |
|
| 46 |
strict private FFdDescription: TSFString; |
| 47 |
{ 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). } |
| 48 |
public property FdDescription: TSFString read FFdDescription; |
| 49 |
{ } |
| 50 |
property Description: String read GetDescription write SetDescription; |
| 51 |
|
| 52 |
strict private FFdDisplacements: TMFVec3f; |
| 53 |
{ Internal wrapper for property @code(Displacements). This wrapper API may change, we advise to access simpler @code(Displacements) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 54 |
public property FdDisplacements: TMFVec3f read FFdDisplacements; |
| 55 |
{ } |
| 56 |
procedure SetDisplacements(const Value: array of TVector3); overload; |
| 57 |
{ } |
| 58 |
procedure SetDisplacements(const Value: TVector3List); overload; |
| 59 |
|
| 60 |
strict private FFdName: TSFString; |
| 61 |
{ Internal wrapper for property @code(NameField). This wrapper API may change, we advise to access simpler @code(NameField) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 62 |
public property FdName: TSFString read FFdName; |
| 63 |
{ } |
| 64 |
property NameField: String read GetNameField write SetNameField; |
| 65 |
|
| 66 |
strict private FFdWeight: TSFFloat; |
| 67 |
{ Internal wrapper for property @code(Weight). This wrapper API may change, we advise to access simpler @code(Weight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 68 |
public property FdWeight: TSFFloat read FFdWeight; |
| 69 |
{ } |
| 70 |
property Weight: Single read GetWeight write SetWeight; |
| 71 |
|
| 72 |
{$endif read_interface} |
| 73 |
|
| 74 |
{$ifdef read_implementation} |
| 75 |
|
| 76 |
{ THAnimDisplacerNode ----------------------------------------------- } |
| 77 |
|
| 78 |
procedure THAnimDisplacerNode.SetCoordIndex(const Value: array of Int32); |
| 79 |
begin |
| 80 |
FdCoordIndex.Send(Value); |
| 81 |
end; |
| 82 |
|
| 83 |
procedure THAnimDisplacerNode.SetCoordIndex(const Value: TInt32List); |
| 84 |
begin |
| 85 |
FdCoordIndex.Send(Value); |
| 86 |
end; |
| 87 |
|
| 88 |
function THAnimDisplacerNode.GetDescription: String; |
| 89 |
begin |
| 90 |
Result := FdDescription.Value; |
| 91 |
end; |
| 92 |
|
| 93 |
procedure THAnimDisplacerNode.SetDescription(const Value: String); |
| 94 |
begin |
| 95 |
FdDescription.Send(Value); |
| 96 |
end; |
| 97 |
|
| 98 |
procedure THAnimDisplacerNode.SetDisplacements(const Value: array of TVector3); |
| 99 |
begin |
| 100 |
FdDisplacements.Send(Value); |
| 101 |
end; |
| 102 |
|
| 103 |
procedure THAnimDisplacerNode.SetDisplacements(const Value: TVector3List); |
| 104 |
begin |
| 105 |
FdDisplacements.Send(Value); |
| 106 |
end; |
| 107 |
|
| 108 |
function THAnimDisplacerNode.GetNameField: String; |
| 109 |
begin |
| 110 |
Result := FdName.Value; |
| 111 |
end; |
| 112 |
|
| 113 |
procedure THAnimDisplacerNode.SetNameField(const Value: String); |
| 114 |
begin |
| 115 |
FdName.Send(Value); |
| 116 |
end; |
| 117 |
|
| 118 |
function THAnimDisplacerNode.GetWeight: Single; |
| 119 |
begin |
| 120 |
Result := FdWeight.Value; |
| 121 |
end; |
| 122 |
|
| 123 |
procedure THAnimDisplacerNode.SetWeight(const Value: Single); |
| 124 |
begin |
| 125 |
FdWeight.Send(Value); |
| 126 |
end; |
| 127 |
|
| 128 |
class function THAnimDisplacerNode.ClassX3DType: String; |
| 129 |
begin |
| 130 |
Result := 'HAnimDisplacer'; |
| 131 |
end; |
| 132 |
|
| 133 |
procedure THAnimDisplacerNode.CreateNode; |
| 134 |
begin |
| 135 |
inherited; |
| 136 |
|
| 137 |
FFdCoordIndex := TMFInt32.Create(Self, True, 'coordIndex', []); |
| 138 |
FdCoordIndex.ChangeAlways := chVisibleNonGeometry; |
| 139 |
AddField(FFdCoordIndex); |
| 140 |
|
| 141 |
FFdDescription := TSFString.Create(Self, True, 'description', ''); |
| 142 |
FdDescription.ChangeAlways := chNone; |
| 143 |
AddField(FFdDescription); |
| 144 |
|
| 145 |
FFdDisplacements := TMFVec3f.Create(Self, True, 'displacements', []); |
| 146 |
FdDisplacements.ChangeAlways := chVisibleNonGeometry; |
| 147 |
AddField(FFdDisplacements); |
| 148 |
|
| 149 |
FFdName := TSFString.Create(Self, True, 'name', ''); |
| 150 |
FdName.ChangeAlways := chVisibleNonGeometry; |
| 151 |
AddField(FFdName); |
| 152 |
|
| 153 |
FFdWeight := TSFFloat.Create(Self, True, 'weight', 0.0); |
| 154 |
FdWeight.ChangeAlways := chVisibleNonGeometry; |
| 155 |
AddField(FFdWeight); |
| 156 |
|
| 157 |
DefaultContainerField := 'displacers'; |
| 158 |
end; |
| 159 |
|
| 160 |
{$endif read_implementation} |