| 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 GetControlPoint: TAbstractCoordinateNode; |
| 28 |
procedure SetControlPoint(const Value: TAbstractCoordinateNode); |
| 29 |
function GetOrder: Integer; |
| 30 |
procedure SetOrder(const Value: Integer); |
| 31 |
public |
| 32 |
{ Create node fields and events. } |
| 33 |
procedure CreateNode; override; |
| 34 |
class function ClassX3DType: String; override; |
| 35 |
|
| 36 |
strict private FEventSet_fraction: TSFFloatEvent; |
| 37 |
{ } |
| 38 |
public property EventSet_fraction: TSFFloatEvent read FEventSet_fraction; |
| 39 |
|
| 40 |
strict private FFdControlPoint: TSFNode; |
| 41 |
{ Internal wrapper for property @code(ControlPoint). This wrapper API may change, we advise to access simpler @code(ControlPoint) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 42 |
public property FdControlPoint: TSFNode read FFdControlPoint; |
| 43 |
{ } |
| 44 |
property ControlPoint: TAbstractCoordinateNode read GetControlPoint write SetControlPoint; |
| 45 |
|
| 46 |
strict private FFdKnot: TMFDouble; |
| 47 |
{ Internal wrapper for property @code(Knot). This wrapper API may change, we advise to access simpler @code(Knot) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 48 |
public property FdKnot: TMFDouble read FFdKnot; |
| 49 |
{ } |
| 50 |
procedure SetKnot(const Value: array of Double); overload; |
| 51 |
{ } |
| 52 |
procedure SetKnot(const Value: TDoubleList); overload; |
| 53 |
|
| 54 |
strict private FFdOrder: TSFInt32; |
| 55 |
{ Internal wrapper for property @code(Order). This wrapper API may change, we advise to access simpler @code(Order) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdOrder: TSFInt32 read FFdOrder; |
| 57 |
{ } |
| 58 |
property Order: Integer read GetOrder write SetOrder; |
| 59 |
|
| 60 |
strict private FFdWeight: TMFDouble; |
| 61 |
{ 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). } |
| 62 |
public property FdWeight: TMFDouble read FFdWeight; |
| 63 |
{ } |
| 64 |
procedure SetWeight(const Value: array of Double); overload; |
| 65 |
{ } |
| 66 |
procedure SetWeight(const Value: TDoubleList); overload; |
| 67 |
|
| 68 |
strict private FEventValue_changed: TSFRotationEvent; |
| 69 |
{ } |
| 70 |
public property EventValue_changed: TSFRotationEvent read FEventValue_changed; |
| 71 |
|
| 72 |
{$endif read_interface} |
| 73 |
|
| 74 |
{$ifdef read_implementation} |
| 75 |
|
| 76 |
{ TNurbsOrientationInterpolatorNode ----------------------------------------------- } |
| 77 |
|
| 78 |
function TNurbsOrientationInterpolatorNode.GetControlPoint: TAbstractCoordinateNode; |
| 79 |
begin |
| 80 |
if FdControlPoint.Value is TAbstractCoordinateNode then |
| 81 |
Result := TAbstractCoordinateNode(FdControlPoint.Value) |
| 82 |
else |
| 83 |
Result := nil; |
| 84 |
end; |
| 85 |
|
| 86 |
procedure TNurbsOrientationInterpolatorNode.SetControlPoint(const Value: TAbstractCoordinateNode); |
| 87 |
begin |
| 88 |
FdControlPoint.Send(Value); |
| 89 |
end; |
| 90 |
|
| 91 |
procedure TNurbsOrientationInterpolatorNode.SetKnot(const Value: array of Double); |
| 92 |
begin |
| 93 |
FdKnot.Send(Value); |
| 94 |
end; |
| 95 |
|
| 96 |
procedure TNurbsOrientationInterpolatorNode.SetKnot(const Value: TDoubleList); |
| 97 |
begin |
| 98 |
FdKnot.Send(Value); |
| 99 |
end; |
| 100 |
|
| 101 |
function TNurbsOrientationInterpolatorNode.GetOrder: Integer; |
| 102 |
begin |
| 103 |
Result := FdOrder.Value; |
| 104 |
end; |
| 105 |
|
| 106 |
procedure TNurbsOrientationInterpolatorNode.SetOrder(const Value: Integer); |
| 107 |
begin |
| 108 |
FdOrder.Send(Value); |
| 109 |
end; |
| 110 |
|
| 111 |
procedure TNurbsOrientationInterpolatorNode.SetWeight(const Value: array of Double); |
| 112 |
begin |
| 113 |
FdWeight.Send(Value); |
| 114 |
end; |
| 115 |
|
| 116 |
procedure TNurbsOrientationInterpolatorNode.SetWeight(const Value: TDoubleList); |
| 117 |
begin |
| 118 |
FdWeight.Send(Value); |
| 119 |
end; |
| 120 |
|
| 121 |
class function TNurbsOrientationInterpolatorNode.ClassX3DType: String; |
| 122 |
begin |
| 123 |
Result := 'NurbsOrientationInterpolator'; |
| 124 |
end; |
| 125 |
|
| 126 |
procedure TNurbsOrientationInterpolatorNode.CreateNode; |
| 127 |
begin |
| 128 |
inherited; |
| 129 |
|
| 130 |
FEventSet_fraction := TSFFloatEvent.Create(Self, 'set_fraction', true); |
| 131 |
AddEvent(FEventSet_fraction); |
| 132 |
|
| 133 |
FFdControlPoint := TSFNode.Create(Self, True, 'controlPoint', [TAbstractCoordinateNode]); |
| 134 |
FdControlPoint.ChangeAlways := chVisibleNonGeometry; |
| 135 |
AddField(FFdControlPoint); |
| 136 |
|
| 137 |
FFdKnot := TMFDouble.Create(Self, True, 'knot', []); |
| 138 |
FdKnot.ChangeAlways := chVisibleNonGeometry; |
| 139 |
AddField(FFdKnot); |
| 140 |
|
| 141 |
FFdOrder := TSFInt32.Create(Self, True, 'order', 3); |
| 142 |
FdOrder.ChangeAlways := chVisibleNonGeometry; |
| 143 |
AddField(FFdOrder); |
| 144 |
|
| 145 |
FFdWeight := TMFDouble.Create(Self, True, 'weight', []); |
| 146 |
FdWeight.ChangeAlways := chVisibleNonGeometry; |
| 147 |
AddField(FFdWeight); |
| 148 |
|
| 149 |
FEventValue_changed := TSFRotationEvent.Create(Self, 'value_changed', false); |
| 150 |
AddEvent(FEventValue_changed); |
| 151 |
end; |
| 152 |
|
| 153 |
{$endif read_implementation} |