| 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 GetClosed: Boolean; |
| 28 |
procedure SetClosed(const Value: Boolean); |
| 29 |
function GetNormalizeVelocity: Boolean; |
| 30 |
procedure SetNormalizeVelocity(const Value: Boolean); |
| 31 |
public |
| 32 |
{ Create node fields and events. } |
| 33 |
procedure CreateNode; override; |
| 34 |
class function ClassX3DType: String; override; |
| 35 |
|
| 36 |
strict private FFdClosed: TSFBool; |
| 37 |
{ Internal wrapper for property @code(Closed). This wrapper API may change, we advise to access simpler @code(Closed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 38 |
public property FdClosed: TSFBool read FFdClosed; |
| 39 |
{ } |
| 40 |
property Closed: Boolean read GetClosed write SetClosed; |
| 41 |
|
| 42 |
strict private FFdKeyValue: TMFVec2f; |
| 43 |
{ Internal wrapper for property @code(KeyValue). This wrapper API may change, we advise to access simpler @code(KeyValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 44 |
public property FdKeyValue: TMFVec2f read FFdKeyValue; |
| 45 |
{ } |
| 46 |
procedure SetKeyValue(const Value: array of TVector2); overload; |
| 47 |
{ } |
| 48 |
procedure SetKeyValue(const Value: TVector2List); overload; |
| 49 |
|
| 50 |
strict private FFdKeyVelocity: TMFVec2f; |
| 51 |
{ Internal wrapper for property @code(KeyVelocity). This wrapper API may change, we advise to access simpler @code(KeyVelocity) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdKeyVelocity: TMFVec2f read FFdKeyVelocity; |
| 53 |
{ } |
| 54 |
procedure SetKeyVelocity(const Value: array of TVector2); overload; |
| 55 |
{ } |
| 56 |
procedure SetKeyVelocity(const Value: TVector2List); overload; |
| 57 |
|
| 58 |
strict private FFdNormalizeVelocity: TSFBool; |
| 59 |
{ Internal wrapper for property @code(NormalizeVelocity). This wrapper API may change, we advise to access simpler @code(NormalizeVelocity) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 60 |
public property FdNormalizeVelocity: TSFBool read FFdNormalizeVelocity; |
| 61 |
{ } |
| 62 |
property NormalizeVelocity: Boolean read GetNormalizeVelocity write SetNormalizeVelocity; |
| 63 |
|
| 64 |
strict private FEventValue_changed: TSFVec2fEvent; |
| 65 |
{ } |
| 66 |
public property EventValue_changed: TSFVec2fEvent read FEventValue_changed; |
| 67 |
|
| 68 |
{$endif read_interface} |
| 69 |
|
| 70 |
{$ifdef read_implementation} |
| 71 |
|
| 72 |
{ TSplinePositionInterpolator2DNode ----------------------------------------------- } |
| 73 |
|
| 74 |
function TSplinePositionInterpolator2DNode.GetClosed: Boolean; |
| 75 |
begin |
| 76 |
Result := FdClosed.Value; |
| 77 |
end; |
| 78 |
|
| 79 |
procedure TSplinePositionInterpolator2DNode.SetClosed(const Value: Boolean); |
| 80 |
begin |
| 81 |
FdClosed.Send(Value); |
| 82 |
end; |
| 83 |
|
| 84 |
procedure TSplinePositionInterpolator2DNode.SetKeyValue(const Value: array of TVector2); |
| 85 |
begin |
| 86 |
FdKeyValue.Send(Value); |
| 87 |
end; |
| 88 |
|
| 89 |
procedure TSplinePositionInterpolator2DNode.SetKeyValue(const Value: TVector2List); |
| 90 |
begin |
| 91 |
FdKeyValue.Send(Value); |
| 92 |
end; |
| 93 |
|
| 94 |
procedure TSplinePositionInterpolator2DNode.SetKeyVelocity(const Value: array of TVector2); |
| 95 |
begin |
| 96 |
FdKeyVelocity.Send(Value); |
| 97 |
end; |
| 98 |
|
| 99 |
procedure TSplinePositionInterpolator2DNode.SetKeyVelocity(const Value: TVector2List); |
| 100 |
begin |
| 101 |
FdKeyVelocity.Send(Value); |
| 102 |
end; |
| 103 |
|
| 104 |
function TSplinePositionInterpolator2DNode.GetNormalizeVelocity: Boolean; |
| 105 |
begin |
| 106 |
Result := FdNormalizeVelocity.Value; |
| 107 |
end; |
| 108 |
|
| 109 |
procedure TSplinePositionInterpolator2DNode.SetNormalizeVelocity(const Value: Boolean); |
| 110 |
begin |
| 111 |
FdNormalizeVelocity.Send(Value); |
| 112 |
end; |
| 113 |
|
| 114 |
class function TSplinePositionInterpolator2DNode.ClassX3DType: String; |
| 115 |
begin |
| 116 |
Result := 'SplinePositionInterpolator2D'; |
| 117 |
end; |
| 118 |
|
| 119 |
procedure TSplinePositionInterpolator2DNode.CreateNode; |
| 120 |
begin |
| 121 |
inherited; |
| 122 |
|
| 123 |
FFdClosed := TSFBool.Create(Self, True, 'closed', false); |
| 124 |
FdClosed.ChangeAlways := chNone; |
| 125 |
AddField(FFdClosed); |
| 126 |
|
| 127 |
FFdKeyValue := TMFVec2f.Create(Self, True, 'keyValue', []); |
| 128 |
FdKeyValue.ChangeAlways := chNone; |
| 129 |
AddField(FFdKeyValue); |
| 130 |
|
| 131 |
FFdKeyVelocity := TMFVec2f.Create(Self, True, 'keyVelocity', []); |
| 132 |
FdKeyVelocity.ChangeAlways := chNone; |
| 133 |
AddField(FFdKeyVelocity); |
| 134 |
|
| 135 |
FFdNormalizeVelocity := TSFBool.Create(Self, True, 'normalizeVelocity', false); |
| 136 |
FdNormalizeVelocity.ChangeAlways := chNone; |
| 137 |
AddField(FFdNormalizeVelocity); |
| 138 |
|
| 139 |
FEventValue_changed := TSFVec2fEvent.Create(Self, 'value_changed', false); |
| 140 |
AddEvent(FEventValue_changed); |
| 141 |
end; |
| 142 |
|
| 143 |
{$endif read_implementation} |