| 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 GetInitialDestination: TVector3; |
| 28 |
procedure SetInitialDestination(const Value: TVector3); |
| 29 |
function GetInitialValue: TVector3; |
| 30 |
procedure SetInitialValue(const Value: TVector3); |
| 31 |
public |
| 32 |
{ Create node fields and events. } |
| 33 |
procedure CreateNode; override; |
| 34 |
class function ClassX3DType: String; override; |
| 35 |
|
| 36 |
strict private FEventSet_destination: TSFVec3fEvent; |
| 37 |
{ } |
| 38 |
public property EventSet_destination: TSFVec3fEvent read FEventSet_destination; |
| 39 |
|
| 40 |
strict private FEventSet_value: TSFVec3fEvent; |
| 41 |
{ } |
| 42 |
public property EventSet_value: TSFVec3fEvent read FEventSet_value; |
| 43 |
|
| 44 |
strict private FEventValue_changed: TSFVec3fEvent; |
| 45 |
{ } |
| 46 |
public property EventValue_changed: TSFVec3fEvent read FEventValue_changed; |
| 47 |
|
| 48 |
strict private FFdInitialDestination: TSFVec3f; |
| 49 |
{ Internal wrapper for property @code(InitialDestination). This wrapper API may change, we advise to access simpler @code(InitialDestination) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 50 |
public property FdInitialDestination: TSFVec3f read FFdInitialDestination; |
| 51 |
{ } |
| 52 |
property InitialDestination: TVector3 read GetInitialDestination write SetInitialDestination; |
| 53 |
|
| 54 |
strict private FFdInitialValue: TSFVec3f; |
| 55 |
{ Internal wrapper for property @code(InitialValue). This wrapper API may change, we advise to access simpler @code(InitialValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdInitialValue: TSFVec3f read FFdInitialValue; |
| 57 |
{ } |
| 58 |
property InitialValue: TVector3 read GetInitialValue write SetInitialValue; |
| 59 |
|
| 60 |
{$endif read_interface} |
| 61 |
|
| 62 |
{$ifdef read_implementation} |
| 63 |
|
| 64 |
{ TPositionDamperNode ----------------------------------------------- } |
| 65 |
|
| 66 |
function TPositionDamperNode.GetInitialDestination: TVector3; |
| 67 |
begin |
| 68 |
Result := FdInitialDestination.Value; |
| 69 |
end; |
| 70 |
|
| 71 |
procedure TPositionDamperNode.SetInitialDestination(const Value: TVector3); |
| 72 |
begin |
| 73 |
FdInitialDestination.Send(Value); |
| 74 |
end; |
| 75 |
|
| 76 |
function TPositionDamperNode.GetInitialValue: TVector3; |
| 77 |
begin |
| 78 |
Result := FdInitialValue.Value; |
| 79 |
end; |
| 80 |
|
| 81 |
procedure TPositionDamperNode.SetInitialValue(const Value: TVector3); |
| 82 |
begin |
| 83 |
FdInitialValue.Send(Value); |
| 84 |
end; |
| 85 |
|
| 86 |
class function TPositionDamperNode.ClassX3DType: String; |
| 87 |
begin |
| 88 |
Result := 'PositionDamper'; |
| 89 |
end; |
| 90 |
|
| 91 |
procedure TPositionDamperNode.CreateNode; |
| 92 |
begin |
| 93 |
inherited; |
| 94 |
|
| 95 |
FEventSet_destination := TSFVec3fEvent.Create(Self, 'set_destination', true); |
| 96 |
AddEvent(FEventSet_destination); |
| 97 |
|
| 98 |
FEventSet_value := TSFVec3fEvent.Create(Self, 'set_value', true); |
| 99 |
AddEvent(FEventSet_value); |
| 100 |
|
| 101 |
FEventValue_changed := TSFVec3fEvent.Create(Self, 'value_changed', false); |
| 102 |
AddEvent(FEventValue_changed); |
| 103 |
|
| 104 |
FFdInitialDestination := TSFVec3f.Create(Self, False, 'initialDestination', Vector3(0, 0, 0)); |
| 105 |
FdInitialDestination.ChangeAlways := chVisibleNonGeometry; |
| 106 |
AddField(FFdInitialDestination); |
| 107 |
|
| 108 |
FFdInitialValue := TSFVec3f.Create(Self, False, 'initialValue', Vector3(0, 0, 0)); |
| 109 |
FdInitialValue.ChangeAlways := chVisibleNonGeometry; |
| 110 |
AddField(FFdInitialValue); |
| 111 |
end; |
| 112 |
|
| 113 |
{$endif read_implementation} |